2004-02-19 09:01:30

by Vincent Roqueta

[permalink] [raw]
Subject: NFSv4 and vi

Here are vi traces for opening "/mnt/nfs/vincent/suite-tests/toto3"

1/ The file toto3 do not exist
2/ There is no vi opened session
3/ there is no file (and so no .swp file) in this directory

Had a look to the traces...

stat64("/mnt/nfs/vincent/suite-tests/toto3", 0xbffff620) = -1 ENOENT (No such
file or directory)
stat64("/mnt/nfs/vincent/suite-tests/toto3", 0xbffff7a0) = -1 ENOENT (No such
file or directory)
access("/mnt/nfs/vincent/suite-tests/toto3", W_OK) = -1 ENOENT (No such file
or directory)
open("/mnt/nfs/vincent/suite-tests/toto3", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)


****Here is the problem: there is a "permission denied", error have to be "No
****such file or directory"
open("/mnt/nfs/vincent/suite-tests/.toto3.swp", O_RDONLY|O_LARGEFILE) = -1
EACCES (Permission denied)

****Second error (same, I suppose) "File exist" that's WRONG!

open("/mnt/nfs/vincent/suite-tests/.toto3.swp",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = -1 EEXIST (File exists)


stat64("/mnt/nfs/vincent/suite-tests/.toto3.swp", {st_mode=S_IFREG, st_size=0,
...}) = 0
stat64("/mnt/nfs/vincent/suite-tests/.toto3.swx", 0xbffff0e0) = -1 ENOENT (No
such file or directory)
open("/mnt/nfs/vincent/suite-tests/.toto3.swp", O_RDONLY|O_LARGEFILE) = -1
EACCES (Permission denied)
write(1, "\33[1;39r\33[?25h\33[?25h\33[27m\33[m\33[H\33["..., 62) = 62
stat64("/mnt/nfs/vincent/suite-tests/.toto3.swp", {st_mode=S_IFREG, st_size=0,
...}) = 0


To end, when I quit the vi session (without saving anything) the swaped file
YET exist, with a creation date 1 october 1970.

I'm trying to find the error.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2004-02-19 09:13:47

by Vincent Roqueta

[permalink] [raw]
Subject: Re: NFSv4 and vi

Here is a precision for directoy rights:

drwxrwxrwx 2 4294967294 4294967294 4096 f=E9v 19 2004 suite-tests




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2004-02-19 15:55:18

by J. Bruce Fields

[permalink] [raw]
Subject: Re: NFSv4 and vi

On Thu, Feb 19, 2004 at 09:58:38AM +0100, Vincent ROQUETA wrote:
> Here are vi traces for opening "/mnt/nfs/vincent/suite-tests/toto3"

These bug reports are no help if you won't remind us, on each bug
report, which kernel you're using, with which (if any) patches. Also,
it'd help if you could test with the latest CITI NFSv4 patches
(http://www.citi.umich.edu/projects/nfsv4/linux/). I suspect the
problem you're seeing is a problem that's already fixed with those
patches.

--Bruce Fields


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2004-02-19 17:03:17

by Vincent Roqueta

[permalink] [raw]
Subject: Re: NFSv4 and vi

Le Jeudi 19 F=E9vrier 2004 16:49, J. Bruce Fields a =E9crit :
> On Thu, Feb 19, 2004 at 09:58:38AM +0100, Vincent ROQUETA wrote:
> > Here are vi traces for opening "/mnt/nfs/vincent/suite-tests/toto3"
>
> These bug reports are no help if you won't remind us, on each bug
> report, which kernel you're using, with which (if any) patches. Also,
> it'd help if you could test with the latest CITI NFSv4 patches
> (http://www.citi.umich.edu/projects/nfsv4/linux/). I suspect the
> problem you're seeing is a problem that's already fixed with those
> patches.
>
> --Bruce Fields
>

The problem still appear with kernel 2.6.2 and all patches.
(Linux roquetav 2.6.2-CITI_NFS4_ALL-1)




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2004-02-19 22:09:39

by J. Bruce Fields

[permalink] [raw]
Subject: Re: NFSv4 and vi

On Thu, Feb 19, 2004 at 06:00:44PM +0100, Vincent ROQUETA wrote:
> Le Jeudi 19 F?vrier 2004 16:49, J. Bruce Fields a ?crit :
> > On Thu, Feb 19, 2004 at 09:58:38AM +0100, Vincent ROQUETA wrote:
> > > Here are vi traces for opening "/mnt/nfs/vincent/suite-tests/toto3"
> >
> > These bug reports are no help if you won't remind us, on each bug
> > report, which kernel you're using, with which (if any) patches. Also,
> > it'd help if you could test with the latest CITI NFSv4 patches
> > (http://www.citi.umich.edu/projects/nfsv4/linux/). I suspect the
> > problem you're seeing is a problem that's already fixed with those
> > patches.
> >
> > --Bruce Fields
> >
>
> The problem still appear with kernel 2.6.2 and all patches.
> (Linux roquetav 2.6.2-CITI_NFS4_ALL-1)

This is on both the client and the server?

The following would also help (again, it would be helpful to include
this information with all bug reports):

server export options (output from 'exportfs -v')
mount options (output from 'mount')

--b.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs