In article <20140311130940.GA456@quark>,
Patrick Welche 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 ioct
On Tue, 11 Mar 2014, Patrick Welche 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/vn
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 t