]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: document sb_feat_args members
authorEric Sandeen <sandeen@sandeen.net>
Wed, 3 Jan 2018 20:10:10 +0000 (14:10 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 3 Jan 2018 20:10:10 +0000 (14:10 -0600)
Some of these are more self-explanatory than others ("nci?").
Just mention the bit each one controls, and put them in order
while we're at it.  There are more comments about each bit
near its definition.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/xfs_mkfs.c

index 0f445542918b0e3f0eceadb6c0990551942f62b7..ec64a4622423e81ac086a5d64cf99e3fb1975240 100644 (file)
@@ -760,17 +760,17 @@ struct sb_feat_args {
        int     log_version;
        int     attr_version;
        int     dir_version;
-       bool    inode_align;
-       bool    nci;
-       bool    lazy_sb_counters;
-       bool    projid32bit;
-       bool    crcs_enabled;
-       bool    dirftype;
-       bool    finobt;
-       bool    spinodes;
-       bool    rmapbt;
-       bool    reflink;
-       bool    parent_pointers;
+       bool    inode_align;            /* XFS_SB_VERSION_ALIGNBIT */
+       bool    nci;                    /* XFS_SB_VERSION_BORGBIT */
+       bool    lazy_sb_counters;       /* XFS_SB_VERSION2_LAZYSBCOUNTBIT */
+       bool    parent_pointers;        /* XFS_SB_VERSION2_PARENTBIT */
+       bool    projid32bit;            /* XFS_SB_VERSION2_PROJID32BIT */
+       bool    crcs_enabled;           /* XFS_SB_VERSION2_CRCBIT */
+       bool    dirftype;               /* XFS_SB_VERSION2_FTYPE */
+       bool    finobt;                 /* XFS_SB_FEAT_RO_COMPAT_FINOBT */
+       bool    spinodes;               /* XFS_SB_FEAT_INCOMPAT_SPINODES */
+       bool    rmapbt;                 /* XFS_SB_FEAT_RO_COMPAT_RMAPBT */
+       bool    reflink;                /* XFS_SB_FEAT_RO_COMPAT_REFLINK */
        bool    nodalign;
        bool    nortalign;
 };