[Ocfs2-tools-devel] [PATCH 1/5] mkfs.ocfs2: Freshen up the manpage
Sunil Mushran
sunil.mushran at oracle.com
Wed Sep 15 14:23:56 PDT 2010
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
mkfs.ocfs2/mkfs.ocfs2.8.in | 76 +++++++++++++++++++++++++++++++++++++------
1 files changed, 65 insertions(+), 11 deletions(-)
diff --git a/mkfs.ocfs2/mkfs.ocfs2.8.in b/mkfs.ocfs2/mkfs.ocfs2.8.in
index a148133..597d970 100644
--- a/mkfs.ocfs2/mkfs.ocfs2.8.in
+++ b/mkfs.ocfs2/mkfs.ocfs2.8.in
@@ -1,4 +1,4 @@
-.TH "mkfs.ocfs2" "8" "February 2010" "Version @VERSION@" "OCFS2 Manual Pages"
+.TH "mkfs.ocfs2" "8" "September 2010" "Version @VERSION@" "OCFS2 Manual Pages"
.SH "NAME"
mkfs.ocfs2 \- Creates an \fIOCFS2\fR file system.
.SH "SYNOPSIS"
@@ -175,10 +175,18 @@ and number of inodes (files, directories, symbolic links) each group owns. It is
to limit the maximum amount of space or inodes user can have. See a documentation of
quota-tools package for more details.
.RE
+.RS 1.2i
.TP
\fBindexed-dirs\fR
Enable directory indexing support. With this feature enabled, the file system creates indexed tree for non-inline directory entries. For large scale directories, directory entry lookup perfromance from the indexed tree is faster then from the legacy directory blocks.
.RE
+.RS 1.2i
+.TP
+\fBdiscontig-bg\fR
+Enables discontiguous block groups. With this feature enabled, the file system is able to grow
+the inode and the extent allocators even when there is no contiguous free chunk available. It
+allows the file system to grow the allocators in smaller (discontiguous) chunks.
+.RE
.TP
\fB\-\-fs\-feature\-level=\fR\fR\fIfeature\-level\fR
@@ -228,27 +236,29 @@ consume the given number of file system blocks (see \fB-b\fR) on the device.
.SH "FEATURE COMPATIBILITY"
This section lists the file system features that have been added to the \fIOCFS2\fR
-file system and the version that each appeared in. The table below lists the versions
+file system and the version that it first appeared in. The table below lists the versions
of the mainline Linux kernel and that of the file system for the Enterprise Linux
Distributions. Users should use this information to enable only those features that
-are available in the file system that they are using.
+are available in the file system that they are using. Before enabling new features,
+users are advised to review to the section titled \fBfeature values\fR.
.TS
CENTER ALLBOX;
LI LI LI
LB C C.
Feature Mainline Kernel Version Enterprise OCFS2 Version
-local Linux 2.6.20 OCFS2 1.2, 1.4 and 1.6
-sparse Linux 2.6.22 OCFS2 1.4 and 1.6
-unwritten Linux 2.6.23 OCFS2 1.4 and 1.6
-inline-data Linux 2.6.24 OCFS2 1.4 and 1.6
+local Linux 2.6.20 OCFS2 1.2
+sparse Linux 2.6.22 OCFS2 1.4
+unwritten Linux 2.6.23 OCFS2 1.4
+inline-data Linux 2.6.24 OCFS2 1.4
extended-slotmap Linux 2.6.27 Not available as yet
-block64 Linux 2.6.29 OCFS2 1.6
-metaecc Linux 2.6.29 Not available as yet
-grpquota Linux 2.6.29 Not available as yet
-usrquota Linux 2.6.29 Not available as yet
+metaecc Linux 2.6.29 OCFS2 1.6
+grpquota Linux 2.6.29 OCFS2 1.6
+usrquota Linux 2.6.29 OCFS2 1.6
xattr Linux 2.6.29 OCFS2 1.6
+indexed-dirs Linux 2.6.30 OCFS2 1.6
refcount Linux 2.6.32 OCFS2 1.6
+discontig-bg Linux 2.6.35 OCFS2 1.6
.TE
.TS
@@ -265,6 +275,50 @@ Label: apache_files_10
Features: sparse inline-data unwritten
.TE
+.SH "FEATURE VALUES"
+This section lists the hex values that are associated with the file system features.
+This information is useful when debugging mount failures that are due to feature
+incompatibility. When a user attempts to mount an \fBOCFS2\fR volume that has features
+enabled that are not supported by the running file system software, the error in dmesg
+could be as follows:
+
+\fIERROR: couldn't mount because of unsupported optional features (200).\fR
+
+By referring to the table below, it becomes apparent that the user attempted to mount
+a volume with the \fIxattr\fR (extended attributes) feature enabled with a version of
+the file system software that did not support it. At this stage, the user has the option
+of either upgrading the file system software, or, disabling that on-disk feature using
+\fBtunefs.ocfs2\fR.
+
+Another example of an error could be as follows:
+
+\fIERROR: couldn't mount RDWR because of unsupported optional features (1).\fR
+
+This error indicates that the volume could not be mounted in the RW (read-write) mode
+because of a RO (read-only) compatible feature. In this case, the user has the option of
+either mounting the volume with the \fIro\fR mount option, or, disabling that on-disk
+feature using \fItunefs.ocfs2\fR.
+
+.TS
+CENTER ALLBOX;
+LI LI LI
+LB C C.
+Feature Category Hex value
+local Incompat 8
+sparse Incompat 10
+inline-data Incompat 40
+extended-slotmap Incompat 100
+xattr Incompat 200
+indexed-dirs Incompat 400
+metaecc Incompat 800
+refcount Incompat 1000
+discontiguous-bg Incompat 2000
+unwritten RO Compat 1
+usrquota RO Compat 2
+grpquota RO Compat 4
+.TE
+
+
.SH "SEE ALSO"
.BR debugfs.ocfs2(8)
.BR fsck.ocfs2(8)
--
1.7.0.4
More information about the Ocfs2-tools-devel
mailing list