Skip to contentSkip to conversation

K 2.6.9 - NFS: lstat causes "permission errors"

DISCUSSION Paulo da Silva 2 participants 4 messages Oct 29, 2004 – Oct 30, 2004

lore
Share & tools
lore
#0 lore raw

I am getting several "permission errors" when using "lstat". So far I only found this on Directories. I changed a program to retry the "lstat" whenever a "permission error" occurs and it works successfully.

#1 lore raw
Quoted 5 lines · Paulo da Silva

I am getting several "permission errors" when using "lstat". So far I only found this on Directories. I changed a program to retry the "lstat" whenever a "permission error" occurs and it works successfully.

I'm also getting "Stale NFS file handle" error when "lstat" and "read" a file. This seems to happen only on a VFAT filesystem but I am not sure.

#2 lore raw
Quoted 10 lines · Paulo da Silva
Quoted 5 lines · Paulo da Silva

I am getting several "permission errors" when using "lstat". So far I only found this on Directories. I changed a program to retry the "lstat" whenever a "permission error" occurs and it works successfully.

I'm also getting "Stale NFS file handle" error when "lstat" and "read" a file. This seems to happen only on a VFAT filesystem but I am not sure.

I am sorry, but the error occurs when "lstat" and "open". Not "read".

#3 lore raw
In reply to Paulo da Silva

Olá Paulo,

Quoted 10 lines · Paulo da Silva
Quoted 5 lines · Paulo da Silva

I am getting several "permission errors" when using "lstat". So far I only found this on Directories. I changed a program to retry the "lstat" whenever a "permission error" occurs and it works successfully.

I'm also getting "Stale NFS file handle" error when "lstat" and "read" a file. This seems to happen only on a VFAT filesystem but I am not sure.

Are you exporting a FAT fs with NFS? It's expected to break in some situations. Read http://nfs.sourceforge.net/nfs-howto/server.html

Regards,
Nuno Silva