Skip to contentSkip to conversation

DMLoop

DISCUSSION Mikulas Patocka 1 participant 1 message Feb 10, 2012 2 messages not in the archive Device mapper

lore
Share & tools
lore

Mikulas Patocka

author maintainer
#2 lore raw
In reply to a message not in the archive
Quoted 16 lines · Bryn M. Reeves
Quoted 8 lines · Aleksandar Kostadinov

Hello,

anybody knows the status of dm-loop[1]? Does it have any future? Any alternatives for mapping file ranges to the underlying block device?

[1] http://sources.redhat.com/lvm2/wiki/DMLoop

Yes and no. The original patch was really just proof-of-concept (it implements the loop device quite differently from traditional /dev/loop). This gives better I/O performance and memory footprint (running heavy I/O to a few loopback devices doesn't bring a small system to its knees for e.g.).

Quoted 6 lines

Apparently Jens Axboe liked the idea as he posted patches to implement similar changes in /dev/loop a little while later. These were not merged at the time because of some feedback from Christoph suggesting additional VFS interfaces would be needed to make the idea really workable. Those interfaces still aren't present but the general idea still seems to have legs.

Hi

Could you please describe which specific VFS interfaces do you mean?

Some people say that remapping blocks directly isn't safe in the loopback driver because the filesystem can move file blocks --- but this is not really a problem at all. dm-loop sets S_SWAPFILE in inode->i_flags and this flag prevents the filesystem from moving blocks for this file.

If you had something other on your mind, please describe it (or provide link to mailing list archives).

Mikulas

Quoted 13 lines

I restarted work on dm-loop again for a little while last year and have a git tree here with a version that cannibalises the inner workings of loop.c and makes them usable from both device-mapper and the traditional /dev/loop interface.

This is working quite well and I plan to use it as a base for having another attempt at the block mapped approach. Right now it's stalled for lack of time but only really needs a bit of tidying up to be in a reviewable state.

Regards,
Bryn.