On 05/07/2010 07:34 PM, Steven Dake wrote:
RE code, I am working on a simple fuse FS and tools to convert qemu
images to the fuse db (which use a DB backing store). I mostly have
this working ;) and hope to automake-ize it soon to seed the source
tree.
IMO, as an alternative or in addition to FUSE, consider implementing a
STGT backing store module. Take a look at how easy it is by reading
bs_rdwr.c -- much simpler than FUSE, even, I wager.
git clone
git://git.kernel.org/pub/scm/linux/kernel/git/tomo/tgt.git
less tgt/usr/bs_rdwr.c
Homepage:
http://stgt.sourceforge.net/
Your D1HT backing store would appear as a SCSI device, useable in all
ways that a SCSI disk may be used/mounted/mmap'd/dd'd/etc.
You really only need three operations:
read (offset, length)
write (offset, length)
flush cache
There are other administrative functions, but these compromise the
entirety of the data path. Slap a D1HT on top of that, and instant
block storage.
Regards,
Jeff