On Mon, 21 Mar 2005, Jan Engelhardt wrote:
Hello list,
how can I invalidate all buffered/cached dentries so that ls -l /somefolder
will definitely go read the harddisk?
fsync() on the file(s) in the directory then fsync() on the directory itself. For this, one can open the directory as though it was just a file, you don't need opendir().
I don't think this is what they want, it sounds like they want to effectively clear the read cache for the file system. I'm not sure there's an easy way to do that other than maybe umounting and mounting the file system again..
-- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/