From: rick.macklem@gmail.com
To: linux-nfs@vger.kernel.org
Cc: Rick Macklem <rmacklem@uoguelph.ca>
Subject: [PATCH v2 7/8] Set SB_POSIXACL if the server supports the extension
Date: Tue, 13 Jan 2026 17:01:41 -0800 [thread overview]
Message-ID: <20260114010141.1297-1-rick.macklem@gmail.com> (raw)
From: Rick Macklem <rmacklem@uoguelph.ca>
Check to see if both the POSIX draft default ACL and
POSIX draft access ACL are supported by the server.
If so, set SB_POSIXACL.
Signed-off-by: Rick Macklem <rmacklem@uoguelph.ca>
---
fs/nfs/super.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 57d372db03b9..04c40c9d783a 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1352,6 +1352,13 @@ int nfs_get_tree_common(struct fs_context *fc)
goto error_splat_super;
}
+#ifdef CONFIG_NFS_V4_2
+ /* Set SB_POSIXACL if the server supports the NFSv4.2 extension. */
+ if ((server->attr_bitmask[2] & FATTR4_WORD2_POSIX_DEFAULT_ACL) &&
+ (server->attr_bitmask[2] & FATTR4_WORD2_POSIX_ACCESS_ACL))
+ s->s_flags |= SB_POSIXACL;
+#endif
+
s->s_flags |= SB_ACTIVE;
error = 0;
--
2.49.0
next reply other threads:[~2026-01-14 1:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 1:01 rick.macklem [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-01-03 23:40 [PATCH v2 0/8] Add NFSv4.2 POSIX ACL support to the client rick.macklem
2026-01-03 23:40 ` [PATCH v2 7/8] Set SB_POSIXACL if the server supports the extension rick.macklem
2026-01-05 22:00 ` Anna Schumaker
2026-01-05 23:56 ` Rick Macklem
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=20260114010141.1297-1-rick.macklem@gmail.com \
--to=rick.macklem@gmail.com \
--cc=linux-nfs@vger.kernel.org \
--cc=rmacklem@uoguelph.ca \
/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