Re: fattr4_hidden and fattr4_system r/w attributes in Linux NFSD?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sebastian -

On 4/28/25 7:06 AM, Sebastian Feld wrote:
> I've been debating with Opentext support about their Windows NFS4.0
> client about a problem that the Windows attributes HIDDEN and SYSTEM
> work with a Solaris NFSD, but not with a Linux NFSD.
> 
> Their support said it's a known bug in LInux NFSD that "fattr4_hidden
> and fattr4_system, specified in RFC 3530, are broken in Linux NFSD".

RFC 7530 updates and replaces RFC 3530.

Section 5.7 lists "hidden" and "system" as RECOMMENDED attributes,
meaning that NFSv4 servers are not required to implement them.

So that tells me that both the Solaris NFS server and the Linux NFS
server are spec compliant in this regard. This is NOTABUG, but rather it
is a server implementation choice that is permitted by RFC.

It is more correct to say that the Linux NFS server does not currently
implement either of these attributes. The reason is that native Linux
file systems do not support these attributes, and I believe that neither
does the Linux VFS. So there is nowhere to store these, and no way to
access them in filesystems (such as the Linux port of NTFS) that do
implement them.

We want to have a facility that can be used by native applications
(such as Wine), Samba, and NFSD. So implementing side-car storage
for such attributes that only NFSD can see and use is not really
desirable.


> Is there a fix, or workaround?

There was recent discussion on linux-fsdevel@ about how the community
might introduce support for attributes that Windows has but POSIX does
not [1]. I'm not sure how far along that got, but there does seem to
be some interest in getting Linux native file systems (and the VFS) to
be able to store and access the attributes. Once that is available, then
it should be straightforward to add such support to NFSD.

Until then, I am not aware of a workaround.


-- 
Chuck Lever

[1]
https://lore.kernel.org/linux-fsdevel/20241227121508.nofy6bho66pc5ry5@pali/





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux