Re: Refreshing after OOB file update?

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

 



On Thu, Aug 28, 2014 at 10:37:04AM -0400, Rob Harris wrote:
> 
> This tells me (probably naively) that the kernel is caching the old file
> contents.

Yes, that's what the page cache is all about.

> Is there a way for me to tell the file system that something out-of-band
> change a file contents and to force a re-read from the disk?

Have your userspace program do an O_DIRECT read.  That will discard
the page cache and do a direct read from the disk.

Cheers,

							- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux