Re: Invalidating dentries

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

 



linux-os wrote:
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/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux