Linux NFS development
 help / color / mirror / Atom feed
From: Chuck Lever III <chuck.lever@oracle.com>
To: Cedric Blancher <cedric.blancher@gmail.com>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
	Jeff Layton <jlayton@kernel.org>
Subject: Re: How to set the NFSv4 "HIDDEN" attribute on Linux?
Date: Mon, 20 Nov 2023 14:44:14 +0000	[thread overview]
Message-ID: <628D6042-758C-4D8B-8CAB-BC970EC0EFBD@oracle.com> (raw)
In-Reply-To: <0d7966163db13d71cb4679d51db5cacf91f42b6b.camel@kernel.org>



> On Nov 20, 2023, at 6:46 AM, Jeff Layton <jlayton@kernel.org> wrote:
> 
> On Sun, 2023-11-19 at 17:51 +0100, Cedric Blancher wrote:
>> On Sat, 18 Nov 2023 at 12:56, Jeff Layton <jlayton@kernel.org> wrote:
>>> 
>>> On Sat, 2023-11-18 at 07:24 +0100, Cedric Blancher wrote:
>>>> Good morning!
>>>> 
>>>> NFSv4 has a "hidden" filesystem object attribute. How can I set that
>>>> on a Linux NFSv4 server, or in a filesystem exported on Linux via
>>>> NFSv4, so that the NFSv4 client gets this attribute for a file?
>>>> 
>>> 
>>> You can't. RFC 8881 defines that as "TRUE, if the file is considered
>>> hidden with respect to the Windows API." There is no analogous Linux
>>> inode attribute.
>> 
>> Can we use setfattr and getfattr to set/get the NFSv4.1 HIDDEN and
>> ARCHIVE? We have Windows NFSv4 clients (and kofemann/Roland's codebase
>> supports this), and that means we need to be able to set/get and
>> backup/restore these flags on the NFSv4 server side.
>> 
> 
> No. They would need to be stored in the inode on the server somehow and
> there is no place to store them. These attributes are simply not
> supported by the Linux NFS server.

To be clear: these attributes are not supported within the Linux
filesystems themselves. NFSD could of course handle these attributes,
but there is simply no mechanism to make them persistent on Linux
filesystems.

NTFS might be an exception to that, but I believe Linux does not
allow mounted NTFS filesystems to be modified. So again, no way
to make those attributes persistent.

But I do wonder how Samba on Linux handles these guys. NFSD should
do something that doesn't conflict with that.


--
Chuck Lever



  reply	other threads:[~2023-11-20 14:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-18  6:24 How to set the NFSv4 "HIDDEN" attribute on Linux? Cedric Blancher
2023-11-18 11:56 ` Jeff Layton
2023-11-19 16:51   ` Cedric Blancher
2023-11-20 11:46     ` Jeff Layton
2023-11-20 14:44       ` Chuck Lever III [this message]
2023-11-22 22:41         ` Cedric Blancher
2023-11-22 22:42       ` Cedric Blancher
2023-11-23 22:24         ` <DOT>foo gets NFSv4 HIDDEN attribute by default by nfsd? " Cedric Blancher
2023-11-23 22:46           ` Rick Macklem
2023-11-24 17:43           ` Chuck Lever
2023-11-25 14:52             ` Jeff Layton
2023-11-26 17:08               ` Chuck Lever
2023-11-27 13:33                 ` Jeff Layton
2023-11-30 10:28               ` Cedric Blancher
2023-11-30 14:17                 ` Jeff Layton
2023-11-24 17:30         ` Chuck Lever

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=628D6042-758C-4D8B-8CAB-BC970EC0EFBD@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=cedric.blancher@gmail.com \
    --cc=jlayton@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox