Re: Invalidating dentries

2005-03-22 Thread Jan Engelhardt
>> how can I invalidate all buffered/cached dentries so that ls -l /somefolder >> will definitely go read the harddisk? > >Patch the kernel? Great idea. >A quick way of doing it would be to add a new mount option to the >filesystem and call shrink_dcache_sb() from there. do `mount -o >remount,

Re: Invalidating dentries

2005-03-22 Thread Andrew Morton
Jan Engelhardt <[EMAIL PROTECTED]> wrote: > > how can I invalidate all buffered/cached dentries so that ls -l /somefolder > will definitely go read the harddisk? Patch the kernel? There's no way of doing this apart from unmount/mount, or by forcing a ton of memory pressure and hoping that the d

Re: Invalidating dentries

2005-03-22 Thread Robert Hancock
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 directo

Re: Invalidating dentries

2005-03-21 Thread linux-os
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 wa

Invalidating dentries

2005-03-21 Thread Jan Engelhardt
Hello list, how can I invalidate all buffered/cached dentries so that ls -l /somefolder will definitely go read the harddisk? Jan Engelhardt -- - 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: