[dm-devel] dm-thin discard issue

thornber at redhat.com thornber at redhat.com
Wed Mar 6 14:26:22 UTC 2013


On Wed, Mar 06, 2013 at 08:12:39AM -0500, Jim Minter wrote:
> Hello,
> 
> I think I've uncovered a problem when issuing the BLKDISCARD ioctl to a thin volume.  If I create a thin volume, fill it with data, snapshot it, then call BLKDISCARD on the thin volume, it looks like the kernel doesn't take into account the fact that the underlying blocks are shared with the snapshot, and just goes ahead and discards them.  This appears to then leave the metadata in an inconsistent state.
> 
> Here's a reproducer (works on rawhide as of today, 3.9.0-0.rc1.git0.1.fc19.x86_64):
> (assumes volumes 253:2 for metadata and 253:3 for pool; uses blkdiscard from upstream util-linux to issue the BLKDISCARD ioctl)

Alarming, to say the least.  Give me a couple of hours to look at this ...

- Joe




More information about the dm-devel mailing list