Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5630

add examples to setfattr.1 and make attr.1 man page generic

    • None
    • Low
    • sst_cs_plumbers
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      Please backport the patch with the following commit in attr.

      ~~~
      commit 1c14b97fba52560ee4812b73288b3d6ca672f9a5
      Author: Achilles Gaikwad <agaikwad@redhat.com>
      Date: Thu Feb 6 10:09:38 2020 +0530

      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 <agaikwad@redhat.com>
      ~~~
      Version-Release number of selected component (if applicable):

      NA

      How reproducible:

      NA

      Steps to Reproduce:

      NA

      Actual results:

      no examples section

      Expected results:

      example section in man page.

      ~~~
      EXAMPLES
      Add extended attribute to user namespace:

      $ setfattr -n user.foo -v bar file.txt

      To add md5sum of the file as an extended attribute:

      1. setfattr -n trusted.md5sum -v d41d8cd98f00b204e00998ecf8427e file.txt
        ~~~

      Additional info:

      https://lists.nongnu.org/archive/html/acl-devel/2020-02/msg00000.html

            rh-ee-lzaoral Lukáš Zaoral
            rhn-support-agaikwad Achilles Gaikwad (Inactive)
            Lukáš Zaoral Lukáš Zaoral
            qe-baseos-daemons qe-baseos-daemons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: