Riches Jr, RobertX M [robertx.m.riches.jr@xxxxxxxxx] wrote: > Many thanks to those who responded with helpful suggestions. A couple of the suggestions were sufficient to make my test script behave as I expect--to liberate the data that had been stuck in the page cache twilight zone. :-) > > For the benefit of anyone who might come across the archives with a similar problem, here's what worked and what didn't, with all actions taken between writing and reading: > > - Using 'dd -iflag=direct' to read from /dev/vg1/lv1 (the underlying device) worked. > > - Doing 'blockdev --flushbufs /dev/vg1/lv1' (on the underlying device) worked. > > - Doing 'blockdev --flushbufs /dev/mapper/fred01' (on the device exposed by dm-linear or my module) did not solve the problem. I wonder why flushing the underlying device worked but not the actual device itself. I expected the opposite! :-( -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel