RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1089663 - Not all xfs mount options are described in mount(8)
Summary: Not all xfs mount options are described in mount(8)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: util-linux-ng
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: Tomas Dolezal
URL:
Whiteboard:
Depends On:
Blocks: 1270825
TreeView+ depends on / blocked
 
Reported: 2014-04-21 12:21 UTC by lejeczek
Modified: 2016-05-11 00:34 UTC (History)
4 users (show)

Fixed In Version: util-linux-ng-2.17.2-12.19.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-11 00:34:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0911 0 normal SHIPPED_LIVE util-linux-ng bug fix update 2016-05-10 22:52:01 UTC

Description lejeczek 2014-04-21 12:21:50 UTC
Description of problem:

redhat web docs:

"..
Write Barriers
By default, XFS uses write barriers to ensure file system integrity even when power is lost to a device with write caches enabled. For devices without write caches, or with battery-backed write caches, disable the barriers by using the nobarrier option:
.."

mount man pages:
"..
Enables  the  use  of  block  layer write barriers for writes into the journal and unwritten extent conversion. This allows for drive  level  write  caching  to be enabled, for devices that support write barriers.
.."

this is utterly confusing!
is the man page incomplete??

best regards

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Eric Sandeen 2014-04-21 14:14:41 UTC
Those are different sets of words both describing the same scenario; I don't see anything inconsistent, although they were written by different authors years apart; they simply approach it from different angles.

However,

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-writebarriers.html

explains the situation quite thoroughly, if you find the short blurbs in the manpage to be confusing.

Comment 3 lejeczek 2014-04-22 12:44:11 UTC
Hi,
how I did, and a chance is other novice man pages readers will too, understand man page was to - use barriers to disable barriers.
While redhat web docs say - nobarrier - man for mount xfs does not even mention it. Also nothing about discard.
I think - should man page get an update (6.5) ?

Comment 4 Eric Sandeen 2014-04-22 15:49:29 UTC
Well, the manpage does not say "use barriers to disable barriers" - I'm not sure where you got that idea.

You're right that the mount(8) manpage does not mention "nobarrier" for xfs, and it probably should.

There is a desire to move fs-specific mount options into fs-specific mount manpages, so at some point we may make that change, and keep all of the xfs options directly under xfs developer control.

If you have a high priority need for this change, please contact your Red Hat support representative to open a case and prioritize this work, and they can re-open this bug when and attach it to your support case.

Thanks,
-Eric

Comment 5 Eric Sandeen 2014-04-22 15:51:08 UTC
(the mount(8) manpage is part of the util-linux package, not xfsprogs, FWIW)

Comment 6 lejeczek 2014-04-22 17:35:22 UTC
but am I right about misleading and incorrect wording on "barrier"?
Man pages says use "barrier" to disable barrier whereas it should have been "nobarrier" which man page says nothing of.

Comment 7 Eric Sandeen 2014-04-22 17:38:06 UTC
(In reply to lejeczek from comment #6)

> Man pages says use "barrier" to disable barrier

The manpage says:

       barrier
              Enables the use of block layer write barriers  for  writes  into
              the  journal  and  unwritten extent conversion.  This allows for
              drive level write caching to be enabled, for devices  that  sup-
              port write barriers.

I don't see any mention of disabling anything...

It says that if you use barriers, you can enable drive write caches safely.

Comment 8 lejeczek 2014-04-23 07:35:15 UTC
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/xfsmounting.html

all I'm saying is that man pages fox xfs it would be nice, well, required that both options barrier & nobarrier are explained and even compared, so we would not have to guess nor assume. (nor sroogle) (also discard, maybe others, just on par with what the code offers us, you know)

Comment 9 Eric Sandeen 2014-04-23 15:25:57 UTC
yeah, fair enough.  We should at least have all xfs mount options documented.

Karel, what do you think about a mount(8) update to be sure it's in sync w/ the fs/* code we ship?

Comment 10 Karel Zak 2014-04-24 08:26:27 UTC
The current upstream man page:

 barrier | nobarrier
 Enables/disables the use of block layer write barriers for
 writes into the journal and for data integrity operations.
 This allows for drive level write caching to be enabled, for
 devices that support write barriers.

The upstream goal is to keep it in sync with kernel Documentation/filesystems/xfs.txt, I'd like to avoid mount.8 specific descriptions.

No problem to backport it to RHEL6 -- but if there is a difference between the current kernel and RHEL6 then we need someone from XFS camp to provide RHEL6 compatible descriptions.

Comment 11 Eric Sandeen 2014-04-24 16:03:30 UTC
Karel, fair enough, I'll provide text that's appropriate for RHEL6.

And some day - really - make a manpage we can ship from xfsprogs...

Comment 14 Eric Sandeen 2015-08-21 19:46:46 UTC
FWIW, we do have mount options in xfs.5 now ;)

commit 53ab4c490be46b0df0eb4f3626c083d6c5e715be
Author: Eric Sandeen <sandeen>
Date:   Thu Jun 19 12:14:01 2014 +1000

    xfsprogs: add mount options to xfs.5 manpage
    
    This is a straight cut and paste from the util-linux
    mount manpage to xfs.5.
    
    It's pretty much impossible for util-linux to keep up
    with every filesystem out there, and Karel has more than
    once expressed a wish that mount options move into fs-specific
    manpages.
    
    So, here we go.
    
    Signed-off-by: Eric Sandeen <sandeen>
    Reviewed-by: Dave Chinner <dchinner>
    Signed-off-by: Dave Chinner <david>


-Eric

Comment 15 Karel Zak 2015-09-02 08:54:10 UTC
(In reply to Eric Sandeen from comment #14)
> FWIW, we do have mount options in xfs.5 now ;)

Cool, thanks!

I guess you don't plan to backport the man page to RHEL{6,7}, right?

Comment 16 Eric Sandeen 2015-09-02 13:04:49 UTC
Well, we could.  Do we need to coordinate that with mount(8) changes for consistency?

Comment 17 Karel Zak 2015-09-02 14:30:46 UTC
If you decide to backport the man page, then it would be probably nice to erase XFS stuff from mount.8 (I did that in upstream tree for f23).

Not sure if this makes sense for RHEL6, maybe we can do the change for RHEL7 only -- I guess add two BZ (xfsprogs and util-linux) with mutual dependence should be enough.

Comment 18 Eric Sandeen 2015-09-02 14:48:05 UTC
AFAIK it's already done for rhel7, at least from the xfsprogs & e2fsprogs POV...

xfsprogs was done in v3.2.1, and we're shipping 3.2.2 now.
e2fsprogs was done in v1.42.11, and we're shipping 1.42.9, but the mount options were included when bug #1053885 was fixed.

Comment 20 Karel Zak 2016-01-06 12:10:49 UTC
For RHEL6, I have synced mount.8 with the latest version from upstream where we had XFS mount options. For RHEL >= 7 and Fedora we have xfs man page.

Comment 27 errata-xmlrpc 2016-05-11 00:34:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0911.html


Note You need to log in before you can comment on or make changes to this bug.