On Fri, Aug 28, 2009 at 2:55 AM, Russ Weeks<rweeks at polarblue.com>
wrote:> Hi, All.
>
> I have a custom storage device. ?I would like to write a simple device
driver for it (the simplest possible) and add it to a ZFS storage pool as a
vdev. ?Performance is not a concern (yet). ?My question is, does ZFS require
vdevs to be block devices, or are character devices OK?
>
> That is, do I have to implement strategy(9E), which seems very daunting, or
can I get away with read(9E) and write(9E)?
Russ,
You may wish to explore blk2scsa(7D) API. It allows you to concentrate
on implementing your actual IO, while leaving all the details of
generic block/character interface to existing SCSI driver.
--
Regards,
Cyril