Skip to contentSkip to conversation

NFSv4 and vi

DISCUSSION Vincent ROQUETA 2 participants 5 messages Feb 19, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

#2 lore raw
In reply to Vincent ROQUETA
Quoted 1 line · Vincent ROQUETA

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

#3 lore raw

Le Jeudi 19 F=E9vrier 2004 16:49, J. Bruce Fields a =E9crit :

Quoted 12 lines · Vincent ROQUETA
Quoted 1 line

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

#4 lore raw
Quoted 11 lines · Vincent ROQUETA
Quoted 10 lines · J. Bruce Fields
Quoted 1 line · Vincent ROQUETA

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.

Quoted 5 lines
Quoted 2 lines

--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