[Ocfs2-tools-devel] [PATCH 06/11] Small cosmetic changes to ocfs2_fs.h

Sunil Mushran sunil.mushran at oracle.com
Thu Sep 27 17:14:29 PDT 2007


From: Mark Fasheh <mark.fasheh at oracle.com>

Move the s_tunefs_flags down to their own part of the header instead of
intermingling them with s_*compat flags. Make some of the descriptions a bit
more clear.

Signed-off-by: Mark Fasheh <mark.fasheh at oracle.com>
Signed-off-by: Joel Becker <joel.becker at oracle.com>
---
 libocfs2/include/ocfs2_fs.h |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/libocfs2/include/ocfs2_fs.h b/libocfs2/include/ocfs2_fs.h
index 07da28d..6b9939a 100644
--- a/libocfs2/include/ocfs2_fs.h
+++ b/libocfs2/include/ocfs2_fs.h
@@ -109,15 +109,17 @@
 /* Support for sparse allocation in b-trees */
 #define OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC	0x0010
 
-/* tunefs sets this incompat flag before starting the operation and clears it
- * at the end. This flag protects users from inadvertently mounting the fs
- * after an aborted run without fsck-ing.
+/*
+ * Tunefs sets this incompat flag before starting an operation which
+ * would require cleanup on abort. This is done to protect users from
+ * inadvertently mounting the fs after an aborted run without
+ * fsck-ing.
+ *
+ * s_tunefs_flags on the super block describes precisely which
+ * operations were in progress.
  */
 #define OCFS2_FEATURE_INCOMPAT_TUNEFS_INPROG	0x0020
 
-/* tunefs set this in s_tunefs_flag when removing slots. */
-#define OCFS2_TUNEFS_INPROG_REMOVE_SLOT		0x0001
-
 /*
  * backup superblock flag is used to indicate that this volume
  * has backup superblocks.
@@ -133,6 +135,11 @@
 #define OCFS2_MAX_BACKUP_SUPERBLOCKS	6
 
 /*
+ * Flags on ocfs2_super_block.s_tunefs_flags
+ */
+#define OCFS2_TUNEFS_INPROG_REMOVE_SLOT		0x0001	/* Removing slots */
+
+/*
  * Flags on ocfs2_dinode.i_flags
  */
 #define OCFS2_VALID_FL		(0x00000001)	/* Inode is valid */
-- 
1.5.2.5




More information about the Ocfs2-tools-devel mailing list