[dm-devel] Sending reads/writes to a userspace program?
Dan Smith
danms at us.ibm.com
Wed May 16 11:46:41 UTC 2007
NJ> Does dm provide any way for a custom target type to redirect a read or
NJ> write to a userspace program? Or even for it to notify the program of
NJ> the read/write and wait until it gives the goahead, somewhat like the
NJ> way page faulting works?
I have been working on a userspace target, which allows you to do just
what you describe. I have an hg tree up with some userspace tools, as
well as an out-of-body version of the kernel module:
http://static.danplanet.com/hg/dm-userspace.ring/
I also have an actual kernel tree with dm-userspace support, from
which I could generate a patch if the above does not work well for
you.
NJ> I'm wondering if it's possible to create a target type that
NJ> implements a 'remote' block device with blocks stored on something
NJ> like Amazon S3, keeping only a local cache of mapped blocks, and
NJ> fetching / writing blocks as needed.
Yep, I have done similar things with dm-userspace.
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20070516/e966a6de/attachment.sig>
More information about the dm-devel
mailing list