lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140828233237.GA31174@thunk.org>
Date:	Thu, 28 Aug 2014 19:32:37 -0400
From:	Theodore Ts'o <tytso@....edu>
To:	Rob Harris <rob.harris@...il.com>
Cc:	linux-ext4@...r.kernel.org
Subject: Re: Refreshing after OOB file update?

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ