mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Scott Baker" <smbaker@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: "Al Viro" <viro@ftp.linux.org.uk>
Subject: Re: fault when using iget() on XFS file system (2.6.9)
Date: Fri, 22 Sep 2006 18:20:55 -0700	[thread overview]
Message-ID: <35a82d00609221820y4e3a4667yfa4f8f9c3570af45@mail.gmail.com> (raw)
In-Reply-To: <20060922234927.GU29920@ftp.linux.org.uk>

> Explain why you think you need iget().  It's almost certainly a Bad Idea(tm) -
> code outside of filesystem has no business calling it.

Hello Al,

Thanks for the reply. I'm working on a file system layering module.
Without going into a whole lot of detail, it needs to sit on top of a
lower file system (such as ext3 or xfs), and presents itself as a file
system to other layers, such as usermode and the kernel nfs server.

The kernel nfs server uses the get_object export_operation to map a
file handle (which in our case is identical an inode number) into a
denty. Thus, the kernel nfsd presents my layer with an inode number,
which I must map into a dentry. I do this by calling iget() on the
lower file system (ext3, xfs) to get the inode, then work from there
to get all of the dentrys stitched together.

Thus, I could make everything work if I had a general-purpose
mechanism for querying the lower file system (xfs, ext3) with an inode
number to get an inode or dentry. I thought iget() was my answer, but
it doesn't work in the general case for xfs.

Scott

      reply	other threads:[~2006-09-23  1:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-22 23:42 Scott Baker
2006-09-22 23:49 ` Al Viro
2006-09-23  1:20   ` Scott Baker [this message]

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=35a82d00609221820y4e3a4667yfa4f8f9c3570af45@mail.gmail.com \
    --to=smbaker@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ftp.linux.org.uk \
    /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

all inboxes | Powered by JetHome®