Sending BIO_GETATTR to disks
Andrew Turner
andrew at fubar.geek.nz
Mon Jun 1 00:03:33 UTC 2009
While working on a NAND flash driver I noticed a BIO_GETATTR request
will not make it to the disk. It would be useful to support attributes
in a NAND layer, eg. to get the size of the OOB region.
I've attached a patch to pass the disk driver BIO_GETATTR when
the new DISKFLAG_CANGETATTR is set. When DISKFLAG_CANGETATTR is unset
it will act the same as currently and deliver ENOIOCTL.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freebsd-geom_disk.diff
Type: text/x-patch
Size: 1328 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20090601/7638f795/freebsd-geom_disk.bin
More information about the freebsd-geom
mailing list