From 1c14b97fba52560ee4812b73288b3d6ca672f9a5 Mon Sep 17 00:00:00 2001 From: Achilles Gaikwad Date: Thu, 6 Feb 2020 10:09:38 +0530 Subject: man: add examples to setfattr.1 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 --- 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 < a.gruenbacher@bestbits.at > -- cgit v1.2.1