acl-devel
[Top][All Lists]
Advanced

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

[PATCH] man: add examples to setfattr.1


From: Achilles Gaikwad
Subject: [PATCH] man: add examples to setfattr.1
Date: Thu, 6 Feb 2020 10:09:38 +0530

The current man page for setfattr does not state that the user needs to
add the prefix "user." With the help of examples we demonstrate that the
user needs to add a namespace as prefix.

Signed-off-by: Achilles Gaikwad <address@hidden>
---
 man/man1/setfattr.1 | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/man/man1/setfattr.1 b/man/man1/setfattr.1
index 922caf2..95a885e 100644
--- a/man/man1/setfattr.1
+++ b/man/man1/setfattr.1
@@ -94,6 +94,18 @@ Print help explaining the command line options.
 End of command line options.
 All remaining parameters are interpreted as file names, even if they
 start with a dash character.
+.SH EXAMPLES
+Add extended attribute to user namespace:
+.PP
+.nf
+.B "$ setfattr -n user.foo -v bar file.txt
+.fi
+.PP
+To add md5sum of the file as an extended attribute:
+.PP
+.nf
+.B "# setfattr -n trusted.md5sum -v d41d8cd98f00b204e00998ecf8427e file.txt
+.fi
 .SH AUTHOR
 Andreas Gruenbacher,
 .RI < address@hidden >
-- 
2.24.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]