[dm-devel] [RFC] File backed target for device-mapper

Christophe Saout christophe at saout.de
Tue Jul 22 16:18:09 UTC 2003


Hi!

I just wrote a dm target uses a file as backend instead of another block
device.

It's heavily based on the linux 2.5 loop device (so it uses the inode
operation sendfile for read operations and the address space operations
prepare_write and commit_write for write operations).

A dm device can be created with the target options "filename offset"
where offset is given in bytes.

--
Christophe Saout <christophe at saout.de>
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dm-file.c
Type: text/x-c
Size: 10905 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20030722/26176f1c/attachment.bin>


More information about the dm-devel mailing list