[dm-devel] discard + LVM/DM

Andreas Sundstrom sunkan at zappa.cx
Sun Mar 7 10:37:26 UTC 2010


Hi..

I have an OCZ agility SSD drive with FW 1.5 that supports the TRIM command.

I can see that ext4 mounted with the "discard" option issues the TRIM
command successfully when I use a plain partition to host the
filesystem.

But it does not seem to work together with LVM, and I'm guessing that
it's DM that actually is the problem here since LVM is more like a
admin interface to DM right?

According to a response [1] I got on the ext4 ML it is expected behaviour
right now, my question is whether this is something that is planned to
be supported through DM?

1. http://www.spinics.net/lists/linux-ext4/msg17842.html

If it is being worked on, then of course it's interesting to get an
idea of how far in the future can be expected to work?

Otherwise I guess that I will consider reverting back to plain
partitions on my SSD drive.

Thanks for any help

/Andreas Sundstrom




More information about the dm-devel mailing list