tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: DIOCGDISKINFO support for vnd



In article <20140311130940.GA456@quark>,
Patrick Welche  <prlw1%cam.ac.uk@localhost> wrote:
>-=-=-=-=-=-
>
>The attached trivial patch allows vnd(4) to support generic disk ioctls.
>The only one in kern/subr_disk.c at the moment is DIOCGDISKINFO.
>
>Before:
>$ ./vndtest /dev/vnd0a 
>vndtest: DIOCGDISKINFO: Inappropriate ioctl for device
>
>After:
>$ ./vndtest /dev/vnd0a
>size of /dev/vnd0a: 524288 bytes
>
>Thanks to pooka@ for help in creating librumpdev_vnd.so which made finding
>the root of the problem easy.
>
>Comments?

LGTM.

christos



Home | Main Index | Thread Index | Old Index