public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Invalidating dentries
Date: Tue, 22 Mar 2005 18:07:44 -0600	[thread overview]
Message-ID: <4240B350.90606@shaw.ca> (raw)
In-Reply-To: <3Kxue-6D8-35@gated-at.bofh.it>

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 hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/



       reply	other threads:[~2005-03-23  0:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3Kx1c-6iK-37@gated-at.bofh.it>
     [not found] ` <3Kxue-6D8-35@gated-at.bofh.it>
2005-03-23  0:07   ` Robert Hancock [this message]
2005-03-21 15:26 Invalidating dentries Jan Engelhardt
2005-03-21 15:46 ` linux-os
2005-03-23  2:44 ` Andrew Morton
2005-03-23  7:08   ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4240B350.90606@shaw.ca \
    --to=hancockr@shaw.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox