All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Theodore Y. Ts'o" <tytso@mit.edu>
To: Daegyu Han <dgswsk@gmail.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: How can I completely evict(remove) the inode from memory and access the disk next time?
Date: Wed, 2 Oct 2019 08:46:51 -0400	[thread overview]
Message-ID: <20191002124651.GC13880@mit.edu> (raw)
In-Reply-To: <CA+i3KrYpvd4X7uD_GMAp8UZMbR_DhmWvgzw2bHuSQ7iBvpsJQg@mail.gmail.com>

On Wed, Oct 02, 2019 at 05:30:21PM +0900, Daegyu Han wrote:
> Hi linux file system experts,
> 
> I'm so sorry that I've asked again the general question about Linux
> file systems.
> 
> For example, if there is a file a.txt in the path /foo/ bar,
> what should I do to completely evict(remove) the inode of bar
> directory from memory and read the inode via disk access?

There is no API to do this from userspace.  The only way to do this is
to unmount the entire file system.

From the kernel, it's *way* more complicated than this.  Making a
shared-disk file system requires a lot more changes to the kernel
code.  You might want to take a look at ocfs2.  This was a file system
that started using the ext3 file system code, and **extensive**
kernel-level code changes were made to make it be a shared-disk file
system.

						- Ted
						

  reply	other threads:[~2019-10-02 12:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-02  8:30 How can I completely evict(remove) the inode from memory and access the disk next time? Daegyu Han
2019-10-02 12:46 ` Theodore Y. Ts'o [this message]
2019-10-02 14:42   ` Daegyu Han
2019-10-02 19:18     ` Eric W. Biederman
2019-10-02 19:39     ` Theodore Y. Ts'o
2019-10-03  1:42       ` Daegyu Han
2019-10-02 19:38 ` Al Viro

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=20191002124651.GC13880@mit.edu \
    --to=tytso@mit.edu \
    --cc=dgswsk@gmail.com \
    --cc=linux-fsdevel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.