From: Pierguido Lambri <plambri@redhat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: [PATCH v2 2/2] nfs4_setfacl: update man page about new option index
Date: Wed, 14 Sep 2022 18:31:15 +0100 [thread overview]
Message-ID: <20220914173115.296058-2-plambri@redhat.com> (raw)
In-Reply-To: <20220914173115.296058-1-plambri@redhat.com>
The man page now reflects the newly added syntax to handle indexes.
Signed-off-by: Pierguido Lambri <plambri@redhat.com>
---
man/man1/nfs4_setfacl.1 | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/man/man1/nfs4_setfacl.1 b/man/man1/nfs4_setfacl.1
index 47ab517..61699ae 100644
--- a/man/man1/nfs4_setfacl.1
+++ b/man/man1/nfs4_setfacl.1
@@ -30,27 +30,21 @@ Refer to the
manpage for information about NFSv4 ACL terminology and syntax.
.SS COMMANDS
.TP
-.BR "-a " "\fIacl_spec\fP [\fIindex\fP]"
+.BR "-a " "\fIacl_spec\fP"
.RI "add the ACEs from " acl_spec " to " file "'s ACL."
-ACEs are inserted starting at the
-.IR index th
-position (DEFAULT: 1) of
+ACEs are inserted starting at the default position 1 of
.IR file "'s ACL."
.\".ns
.TP
-.BR "-A " "\fIacl_file\fP [\fIindex\fP]"
+.BR "-A " "\fIacl_file\fP "
.RI "add the ACEs from the acl_spec in " acl_file " to " file "'s ACL."
-ACEs are inserted starting at the
-.IR index th
-position (DEFAULT: 1) of
+ACEs are inserted starting at the default position 1 of
.IR file "'s ACL."
.TP
-.BI "-x " "acl_spec \fR|\fP index"
+.BI "-x " "acl_spec \fR"
delete ACEs matched from
.I acl_spec
-- or delete the
-.IR index th
-ACE - from
+from
.IR file 's
ACL. Note that the ordering of the ACEs in
.I acl_spec
@@ -61,6 +55,10 @@ delete ACEs matched from the acl_spec in
.IR acl_file " from " file "'s ACL."
Note that the ordering of the ACEs in the acl_spec does not matter.
.TP
+.BI "-i " "\fIindex\fP"
+.RI "ACEs are inserted or deleted starting at the " index "th position (DEFAULT: 1) of file's ACL.
+It can be used only with the add or delete action.
+.TP
.BI "-s " acl_spec
.RI "set " file "'s ACL to " acl_spec .
.TP
@@ -189,6 +187,10 @@ add the same ACE as above, but using aliases:
.br
$ nfs4_setfacl -a A::alice@nfsdomain.org:RX foo
.IP - 2
+add the same ACE as above, at index 2:
+.br
+ $ nfs4_setfacl -i 2 -a A::alice@nfsdomain.org:RX foo
+.IP - 2
edit existing ACL in a text editor and set modified ACL on clean save/exit:
.br
$ nfs4_setfacl -e foo
--
2.37.3
next prev parent reply other threads:[~2022-09-14 17:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-14 17:31 [PATCH v2 1/2] nfs4_setfacl: add a specific option for indexes Pierguido Lambri
2022-09-14 17:31 ` Pierguido Lambri [this message]
2022-09-20 18:49 ` [PATCH v2 2/2] nfs4_setfacl: update man page about new option index Steve Dickson
2022-09-20 18:48 ` [PATCH v2 1/2] nfs4_setfacl: add a specific option for indexes Steve Dickson
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=20220914173115.296058-2-plambri@redhat.com \
--to=plambri@redhat.com \
--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;
as well as URLs for NNTP newsgroup(s).