2004-10-29 19:39:29

by Paulo da Silva

[permalink] [raw]
Subject: K 2.6.9 - NFS: lstat causes "permission errors"

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.


2004-10-30 02:39:25

by Paulo da Silva

[permalink] [raw]
Subject: Re: K 2.6.9 - NFS: lstat causes "permission errors"

Paulo da Silva wrote:

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


2004-10-30 02:45:26

by Paulo da Silva

[permalink] [raw]
Subject: Re: K 2.6.9 - NFS: lstat causes "permission errors"

Paulo da Silva wrote:

> Paulo da Silva wrote:
>
>> 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".

2004-10-30 04:58:56

by Nuno Silva

[permalink] [raw]
Subject: Re: K 2.6.9 - NFS: lstat causes "permission errors"

Ol? Paulo,

Paulo da Silva wrote:
> Paulo da Silva wrote:
>
>> 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