[illumos-Developer] webrev & design change: blkdev should support dump

Alexey Zaytsev alexey.zaytsev at gmail.com
Sun Jul 3 00:36:39 PDT 2011


On Thu, Jun 30, 2011 at 05:19, Garrett D'Amore <garrett at nexenta.com> wrote:
> On Thu, 2011-06-30 at 04:44 +0400, Alexey Zaytsev wrote:
>> On Thu, Jun 30, 2011 at 01:13, Garrett D'Amore <garrett at nexenta.com> wrote:
>> > As part of some some future support coming (virtio block device
>> > support), I've added support for dump(9e) to blkdev.  This necessitated
>> > some changes to the blkdev API, as it turns out that I need to be able
>> > to *read* a label from a blkdev device even with interrupts disabled.
>> >
>> > The webrev is here:
>> >
>> > http://mexico.purplecow.org/gdamore/webrev/blkdevdump/
>>
>> Hey.
>>
>> I think you forgot to remove the
>> +           (P2PHASE(nblk, 1U << bd->d_blkshift) != 0)) {
>> from bd_dump().
>
> Oh crap.  I forgot about that.  I'll fix it.

As Garrett seems to be a bit busy, I've fixed the patch.
Webrev available here: http://zaytsev.su/webrevs/blkdev-dump

Not sure if it's acceptable by the procedure, but I guess it won't hurt.



More information about the Developer mailing list