* [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h
@ 2022-10-27 7:43 Ondrej Valousek
2022-10-31 8:02 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Ondrej Valousek @ 2022-10-27 7:43 UTC (permalink / raw)
To: linux-kernel, linux-nfs, trond.myklebust, anna; +Cc: Chuck Lever III
Hi kernel maintainers,
Please help to submit the following patch into kernel
---
Signed-off-by: Ondrej Valousek <ondrej.valousek.xm@renesas.com>
Short description:
The XATTR_NAME_NFSV4_ACL definition is also useful for userspace (i.e. nfs4_acl_tools/libacl/coreutils)
so makes a sense to move the definition to the linux/xattr.h
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index e2efcd26336c..07c3d8572912 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -7680,8 +7680,6 @@ nfs4_release_lockowner(struct nfs_server *server, struct nfs4_lock_state *lsp)
rpc_call_async(server->client, &msg, 0, &nfs4_release_lockowner_ops, data);
}
-#define XATTR_NAME_NFSV4_ACL "system.nfs4_acl"
-
static int nfs4_xattr_set_nfs4_acl(const struct xattr_handler *handler,
struct user_namespace *mnt_userns,
struct dentry *unused, struct inode *inode,
diff --git a/include/uapi/linux/xattr.h b/include/uapi/linux/xattr.h
index 9463db2dfa9d..77eb8c885861 100644
--- a/include/uapi/linux/xattr.h
+++ b/include/uapi/linux/xattr.h
@@ -81,5 +81,7 @@
#define XATTR_POSIX_ACL_DEFAULT "posix_acl_default"
#define XATTR_NAME_POSIX_ACL_DEFAULT XATTR_SYSTEM_PREFIX XATTR_POSIX_ACL_DEFAULT
+#define XATTR_NFSV4_ACL "nfs4_acl"
+#define XATTR_NAME_NFSV4_ACL XATTR_SYSTEM_PREFIX XATTR_NFSV4_ACL
#endif /* _UAPI_LINUX_XATTR_H */
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h
2022-10-27 7:43 [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h Ondrej Valousek
@ 2022-10-31 8:02 ` Christoph Hellwig
2022-11-02 13:37 ` Ondrej Valousek
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2022-10-31 8:02 UTC (permalink / raw)
To: Ondrej Valousek
Cc: linux-kernel, linux-nfs, trond.myklebust, anna, Chuck Lever III
On Thu, Oct 27, 2022 at 07:43:58AM +0000, Ondrej Valousek wrote:
> Hi kernel maintainers,
>
> Please help to submit the following patch into kernel
Well, for that a proper formatted mail really helps.
And these identifiers do not belong into xattr.h. They are a
non-sanctioned NFS side API, not a VFS API.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h
2022-10-31 8:02 ` Christoph Hellwig
@ 2022-11-02 13:37 ` Ondrej Valousek
0 siblings, 0 replies; 4+ messages in thread
From: Ondrej Valousek @ 2022-11-02 13:37 UTC (permalink / raw)
To: Christoph Hellwig
Cc: linux-kernel, linux-nfs, trond.myklebust, anna, Chuck Lever III
Hi Christoph,
> Well, for that a proper formatted mail really helps.
Yeah for the first main I used Outlook to send, the second email with patch was sent directly using GIT so should be formatted well.
Sorry I am beginner here.
> And these identifiers do not belong into xattr.h. They are a non-sanctioned NFS side API, not a VFS API.
Ah yes, I forgot about VFS, true. What is the best place to keep them then?
Or is it a big issue to extend VFS with them?
I mean NFSv4 - style ACLs are IMHO even better than Posix ACLs - if not for anything else then because Posix ACLs have never been ratified - maybe we'll see them on local FS at some stage, too.
Thanks,
Ondrej
-----Original Message-----
From: Christoph Hellwig <hch@infradead.org>
Sent: pondělí 31. října 2022 9:03
To: Ondrej Valousek <ondrej.valousek.xm@renesas.com>
Cc: linux-kernel@vger.kernel.org; linux-nfs@vger.kernel.org; trond.myklebust@hammerspace.com; anna@kernel.org; Chuck Lever III <chuck.lever@oracle.com>
Subject: Re: [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h
On Thu, Oct 27, 2022 at 07:43:58AM +0000, Ondrej Valousek wrote:
> Hi kernel maintainers,
>
> Please help to submit the following patch into kernel
Well, for that a proper formatted mail really helps.
And these identifiers do not belong into xattr.h. They are a non-sanctioned NFS side API, not a VFS API.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h
@ 2022-10-27 8:18 Ondrej Valousek
0 siblings, 0 replies; 4+ messages in thread
From: Ondrej Valousek @ 2022-10-27 8:18 UTC (permalink / raw)
To: linux-kernel, linux-nfs, trond.myklebust, anna
Cc: chuck.lever, Ondrej Valousek
Short description:
The XATTR_NAME_NFSV4_ACL definition is also useful for
userspace (i.e. nfs4_acl_tools/libacl/coreutils) so makes a sense to move the
definition to the linux/xattr.h
Signed-off-by: Ondrej Valousek <ondrej.valousek.xm@renesas.com>
---
fs/nfs/nfs4proc.c | 2 --
include/uapi/linux/xattr.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index e2efcd26336c..07c3d8572912 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -7680,8 +7680,6 @@ nfs4_release_lockowner(struct nfs_server *server, struct nfs4_lock_state *lsp)
rpc_call_async(server->client, &msg, 0, &nfs4_release_lockowner_ops, data);
}
-#define XATTR_NAME_NFSV4_ACL "system.nfs4_acl"
-
static int nfs4_xattr_set_nfs4_acl(const struct xattr_handler *handler,
struct user_namespace *mnt_userns,
struct dentry *unused, struct inode *inode,
diff --git a/include/uapi/linux/xattr.h b/include/uapi/linux/xattr.h
index 9463db2dfa9d..77eb8c885861 100644
--- a/include/uapi/linux/xattr.h
+++ b/include/uapi/linux/xattr.h
@@ -81,5 +81,7 @@
#define XATTR_POSIX_ACL_DEFAULT "posix_acl_default"
#define XATTR_NAME_POSIX_ACL_DEFAULT XATTR_SYSTEM_PREFIX XATTR_POSIX_ACL_DEFAULT
+#define XATTR_NFSV4_ACL "nfs4_acl"
+#define XATTR_NAME_NFSV4_ACL XATTR_SYSTEM_PREFIX XATTR_NFSV4_ACL
#endif /* _UAPI_LINUX_XATTR_H */
--
2.37.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-02 13:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-27 7:43 [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h Ondrej Valousek
2022-10-31 8:02 ` Christoph Hellwig
2022-11-02 13:37 ` Ondrej Valousek
2022-10-27 8:18 Ondrej Valousek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).