Bug 1828330

Summary: add examples to setfattr.1 and make attr.1 man page generic
Product: Red Hat Enterprise Linux 8 Reporter: Achilles Gaikwad <agaikwad>
Component: attrAssignee: Lukáš Zaoral <lzaoral>
Status: CLOSED MIGRATED QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.1CC: kdudka, lzaoral
Target Milestone: rcKeywords: EasyFix, ManPageChange, MigratedToJIRA, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-20 19:19:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Achilles Gaikwad 2020-04-27 14:44:27 UTC
Description of problem:
Please backport the patch with the following commit in attr.

~~~
commit 1c14b97fba52560ee4812b73288b3d6ca672f9a5
Author: Achilles Gaikwad <agaikwad>
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>
~~~
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:

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

Additional info:

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

Comment 1 Kamil Dudka 2020-05-04 14:14:37 UTC
Thank you for taking care of it upstream!  I will pick the upstream commit on the next update of the attr package (which is not planned yet).

Comment 2 Achilles Gaikwad 2020-05-04 15:25:29 UTC
>Thank you for taking care of it upstream!  I will pick the upstream commit on the next update of the attr package (which is not planned yet).
Thank you Kamil for working on this as well! :) It was a pleasure working with groff.

Comment 3 Kamil Dudka 2020-05-04 16:00:16 UTC
*** Bug 1828338 has been marked as a duplicate of this bug. ***

Comment 4 Kamil Dudka 2020-05-04 16:02:31 UTC
This is a request to pick the following upstream commit:

http://git.savannah.nongnu.org/cgit/attr.git/commit/?id=1c14b97f

... and the following patch from Debian:

https://git.hadrons.org/cgit/debian/pkgs/attr.git/tree/debian/patches/man-attr-no-xfs-specific.patch

Comment 6 Lukáš Zaoral 2023-09-14 14:42:01 UTC
The current state is the following:

* The upstream patch is already present in RHEL 9 and Fedora.
* The downstream Debian patch has not been accepted upstream yet.

Comment 7 RHEL Program Management 2023-09-20 19:17:48 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 8 RHEL Program Management 2023-09-20 19:19:53 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.