[Top] [All Lists]

Re: link() messes up file attributes

To: "ZINKEVICIUS,MATT (HP-Loveland,ex1)" <matt_zinkevicius@xxxxxx>
Subject: Re: link() messes up file attributes
From: Stephen Lord <lord@xxxxxxx>
Date: Sat, 05 Jan 2002 13:21:29 -0600
Cc: "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
References: <F341E03C8ED6D311805E00902761278C07EFA84E@xxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120
ZINKEVICIUS,MATT (HP-Loveland,ex1) wrote:

Hi gang,

We have been running specSFSv2 (NFS benchmark) against a server running XFS.
All was well previously (kernel 2.4.14), but we recently checked out the XFS
CVS (2002-01-03) and it now fails. The test fails a part of the validation
stage which does the following steps:

1) Create a file (file1) with permissions 666
2) Create a hardlinked file (file2) to file1
3) Check that permissions of file1 are still 666
Step 3 now fails as file1 now has 644 permissions! Using the same kernel we
tried ext2 instead and everything behaved normally. If anybody wants anymore
detail just let me know.

Matt Zinkevicius
Software Engineer
Network Storage Array Solutions

Can you try this:

Edit fs/xfs/linux/xfs_super.c and comment out these lines:

       fh_to_dentry:           linvfs_fh_to_dentry,
       dentry_to_fh:           linvfs_dentry_to_fh,

At around line 907 and try again. I doubt it will fix it, but it is worth a shot.
This will change the calls NFS uses to interact with XFS.


<Prev in Thread] Current Thread [Next in Thread>