Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 000 of 2] A couple of possible nfs client patches
@ 2007-03-06  5:40 NeilBrown
  2007-03-06  5:40 ` [PATCH 001 of 2] Set meaningful value for fattr->time_start in readdirplus results NeilBrown
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: NeilBrown @ 2007-03-06  5:40 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: nfs

Hi Trond,
 I wonder if you would consider the following two patches.

The first fixes a real bug that is trivial to demonstrate: script
below.  The problem is that the fattr which is extracted from
READDIRPLUS results does not get a ->time_start set.  This can result
is incorrect attributes being set on files.

The second is really a work-around for a deeper problem (invalidate_inode_pages2
racing with do_no_page) but has value in itself I think.  It extents the combination
 -o nolock,nocto
to avoid flush and invalidate on locking requests.

Thanks,
NeilBrown


 [PATCH 001 of 2] Set meaningful value for fattr->time_start in readdirplus results.
 [PATCH 002 of 2] Avoid flush-when-locking when interclient consistency not needed.

#!/bin/bash
#
# This script will produce the following errormessage from tar
# when run in an NFS mounted directory:
#
#   tar: newdir/innerdir/innerfile: file changed as we read it

# create dirs
rm -rf nfstest
mkdir -p nfstest/dir/innerdir

# create files (should not be empty)
echo "Hello World!" >nfstest/dir/file
echo "Hello World!" >nfstest/dir/innerdir/innerfile

# problem only happens if we sleep before chmod
sleep 1

# change file modes
chmod -R a+r nfstest

# rename dir
mv nfstest/dir nfstest/newdir

# tar it
tar -cf nfstest/nfstest.tar -C nfstest newdir

# restore old dir name
mv nfstest/newdir nfstest/dir


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-04-16 15:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06  5:40 [PATCH 000 of 2] A couple of possible nfs client patches NeilBrown
2007-03-06  5:40 ` [PATCH 001 of 2] Set meaningful value for fattr->time_start in readdirplus results NeilBrown
2007-04-14 22:13   ` Trond Myklebust
2007-04-15 23:35     ` Neil Brown
2007-04-16 15:23       ` Trond Myklebust
2007-03-06  5:40 ` [PATCH 002 of 2] Avoid flush-when-locking when interclient consistency not needed NeilBrown
2007-03-06 14:40   ` Trond Myklebust
2007-03-07 23:03     ` Neil Brown
2007-04-14 22:21       ` Trond Myklebust
2007-04-16  1:49         ` Chuck Lever
2007-04-16 14:12           ` Peter Staubach
2007-04-16 14:41           ` Trond Myklebust
2007-04-16 14:48             ` Peter Staubach
2007-03-06 14:57 ` [PATCH 000 of 2] A couple of possible nfs client patches Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox