Bug 510845
Summary: | man page for mount is incorrect about default xfs options | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Cristian Ciupitu <cristian.ciupitu> | ||||
Component: | util-linux-ng | Assignee: | Karel Zak <kzak> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 11 | CC: | esandeen, kzak | ||||
Target Milestone: | --- | Keywords: | EasyFix, Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-09-17 15:39:29 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Cristian Ciupitu
2009-07-11 14:29:01 UTC
Created attachment 351345 [details]
patch for mount man page
Patch for specifying that attr2 is the default xfs mount option.
The mount.8 man page follows the kernel Documentation/fs/xfs.txt file. I think the real "attr" setting depends on mkfs.xfs, it seems that this feature is always enabled (by default) for all newly created xfs filesystems. You can also change this setting by the attr= mkfs.xfs option. I guess that Linux kernel (by default) follows on-disk data (superblock feature flags). Maybe the man page and Documentation/fs/xfs.txt should be be updated to say something like "... by default attr2 depends mkfs.xfs version and setting". Eric, any comment & suggestion? (In reply to comment #2) > Eric, any comment & suggestion? I reported this issue only after I talked with Eric Sandeen about it. He's the one who taught me how to check if the attr2 attribute is enabled because I couldn't believe that the man page was incorrect (outdated). Ugh it's kind of a mess ;) I think the right way to look at it is that mkfs sets the initial default, and the mount option can override for newly created attrs. If attr1 was mkfs'd and attr2 was a mount option and an attribute gets created, the fs is now an "attr2" fs, and will create attr2 attributes until/unless "noattr2" is specified. But today, yes, attr2 is the default all the way around. mkfs: int main( ... attrversion = 2; ... kernel: /* * mkfs'ed attr2 will turn on attr2 mount unless explicitly * told by noattr2 to turn it off */ if (xfs_sb_version_hasattr2(&mp->m_sb) && !(mp->m_flags & XFS_MOUNT_NOATTR2)) mp->m_flags |= XFS_MOUNT_ATTR2; -Eric Thanks Eric and Cristian. The man page has been fixed in the upstream repository and should be available in F-12. |