Opening a dm device reads from cache, not the device.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a RAID5 plugin that is also used with clustering.  I open the
raid device (created in device-mapper) using the O_SYNC and O_DIRECT
flags, but it seems to read the data from a cache somewhere.  I put a
printk in my plugin map function, but it doesn't get hit.  If another
node in the cluster changes the data on the disk, it never gets
refreshed on this node because of the caching.

Is there any way to turn off the caching so that all read requests come
to my plugin?  And where is the caching taking place?

Thanks,

Allen

Allen Jack
email - ajack@xxxxxxxxxx
Novell, Inc., the leading provider of information solutions
http://www.novell.com

--

dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux