Re: LTP ustat01 test fails on NFSROOT

From: Kumar Gala
Date: Mon Oct 29 2007 - 10:43:08 EST



On Oct 26, 2007, at 4:42 AM, Kumar Gala wrote:


On Oct 25, 2007, at 12:59 PM, Trond Myklebust wrote:

Could you please try the following patch?

Cheers
Trond
--------------------------------- CUT HERE -----------------------------
From: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
Date: Thu, 25 Oct 2007 13:56:10 -0400
NFS: Fix the ustat() regression

Since 2.6.18, the superblock sb->s_root has been a dummy dentry with a
dummy inode. This breaks ustat(), which actually uses sb->s_root in a
vfstat() call.

Fix this by making the s_root a dummy alias to the directory inode that was
used when creating the superblock.

Signed-off-by: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
---

fs/nfs/getroot.c | 81 +++++++++++++++++ +------------------------------------
1 files changed, 27 insertions(+), 54 deletions(-)

Any reason not to send this to Linus as a bug fix for 2.6.24 (and possibly stable)?

ping. would love to see this is Linus's tree.

- k
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/