From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH 2/3] Obtaining no_formal_ino from directory entry
Date: Wed, 27 Jun 2007 14:13:37 +0100 [thread overview]
Message-ID: <1182950017.3386.2.camel@localhost.localdomain> (raw)
In-Reply-To: <4681F257.5080100@redhat.com>
Hi,
On Wed, 2007-06-27 at 01:15 -0400, S. Wendy Cheng wrote:
> Steven Whitehouse wrote:
>
> >Hi,
> >
> >On Mon, 2007-06-25 at 21:14 -0400, S. Wendy Cheng wrote:
> >
> >
> >>GFS2 lookup code doesn't ask for inode shared glock. This implies during
> >>in-memory inode creation for existing file, GFS2 will not disk-read in
> >>the inode contents. This leaves no_formal_ino un-initialized during
> >>lookup time. The un-initialized no_formal_ino is subsequently encoded
> >>into file handle. Clients will get ESTALE error whenever it tries to
> >>access these files.
> >>
> >>-- Wendy
> >>
> >>
> >>
> >
> >Generally this looks good. Please don't add back the _host structure
> >though - just add an extra no_formal_ino argument to the lookup function
> >which is a u64,
> >
> >
>
> The gfs2_inode_lookup() parameter set would be too long. How about this
> ... we will never use DT_WHT (bit 14) anyway so let's define:
>
> struct inode *gfs2_inode_lookup(struct super_block *sb,
> unsigned type, // if invoked from
> gfs2_get_dentry by NFSD
> // type would
> be DT_WHT.
> u64 no_addr,
> u64 no_formal_ino);
>
> Then we would save one parameter in patch #3 that will use DT_WHT as
> nfsbypass param ? Patch enclosed.
>
Ugh! I'd rather not misuse the DT_ types. We can just use DT_UNKNOWN I
think as we can tell the difference between NFS and unlinked recovery
simply by looking to see if no_formal_ino is non-zero or not (since zero
can never be a valid no_formal_ino). Do you think thats ok?
Steve.
> -- Wendy
>
>
>
next prev parent reply other threads:[~2007-06-27 13:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-26 1:14 [Cluster-devel] [GFS2 PATCH 1/3] Obtaining no_formal_ino from directory entry S. Wendy Cheng
2007-06-26 1:18 ` [Cluster-devel] [GFS2 PATCH 2/3] " S. Wendy Cheng
2007-06-27 3:02 ` [Cluster-devel] [GFS2 PATCH 1/3] " Steven Whitehouse
2007-06-27 5:15 ` [Cluster-devel] [GFS2 PATCH 2/3] " S. Wendy Cheng
2007-06-27 5:25 ` S. Wendy Cheng
2007-06-27 13:13 ` Steven Whitehouse [this message]
2007-06-27 21:07 ` Wendy Cheng
2007-06-27 22:49 ` Steven Whitehouse
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=1182950017.3386.2.camel@localhost.localdomain \
--to=swhiteho@redhat.com \
/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.