* [patch] ext3: remove btree_dir
@ 2006-07-13 8:05 Qi Yong
2006-07-13 11:59 ` Stephen C. Tweedie
0 siblings, 1 reply; 2+ messages in thread
From: Qi Yong @ 2006-07-13 8:05 UTC (permalink / raw)
To: akpm; +Cc: sct, adilger, ext2-devel, linux-kernel
Remove support for EXT3_FEATURE_RO_COMPAT_BTREE_DIR, so mount can
safely fail out when some new feature added using 0x0004.
Signed-off-by: Qi Yong <qiyong@fc-cn.com>
---
diff --git a/include/linux/ext2_fs.h b/include/linux/ext2_fs.h
index facf34e..d63d2ec 100644
--- a/include/linux/ext2_fs.h
+++ b/include/linux/ext2_fs.h
@@ -463,7 +463,6 @@ #define EXT2_FEATURE_COMPAT_ANY 0xffff
#define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001
#define EXT2_FEATURE_RO_COMPAT_LARGE_FILE 0x0002
-#define EXT2_FEATURE_RO_COMPAT_BTREE_DIR 0x0004
#define EXT2_FEATURE_RO_COMPAT_ANY 0xffffffff
#define EXT2_FEATURE_INCOMPAT_COMPRESSION 0x0001
@@ -477,8 +476,7 @@ #define EXT2_FEATURE_COMPAT_SUPP EXT2_FE
#define EXT2_FEATURE_INCOMPAT_SUPP (EXT2_FEATURE_INCOMPAT_FILETYPE| \
EXT2_FEATURE_INCOMPAT_META_BG)
#define EXT2_FEATURE_RO_COMPAT_SUPP (EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER| \
- EXT2_FEATURE_RO_COMPAT_LARGE_FILE| \
- EXT2_FEATURE_RO_COMPAT_BTREE_DIR)
+ EXT2_FEATURE_RO_COMPAT_LARGE_FILE)
#define EXT2_FEATURE_RO_COMPAT_UNSUPPORTED ~EXT2_FEATURE_RO_COMPAT_SUPP
#define EXT2_FEATURE_INCOMPAT_UNSUPPORTED ~EXT2_FEATURE_INCOMPAT_SUPP
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h
index 5607e64..7974c44 100644
--- a/include/linux/ext3_fs.h
+++ b/include/linux/ext3_fs.h
@@ -553,7 +553,6 @@ #define EXT3_FEATURE_COMPAT_DIR_INDEX 0
#define EXT3_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001
#define EXT3_FEATURE_RO_COMPAT_LARGE_FILE 0x0002
-#define EXT3_FEATURE_RO_COMPAT_BTREE_DIR 0x0004
#define EXT3_FEATURE_INCOMPAT_COMPRESSION 0x0001
#define EXT3_FEATURE_INCOMPAT_FILETYPE 0x0002
@@ -566,8 +565,7 @@ #define EXT3_FEATURE_INCOMPAT_SUPP (EXT3
EXT3_FEATURE_INCOMPAT_RECOVER| \
EXT3_FEATURE_INCOMPAT_META_BG)
#define EXT3_FEATURE_RO_COMPAT_SUPP (EXT3_FEATURE_RO_COMPAT_SPARSE_SUPER| \
- EXT3_FEATURE_RO_COMPAT_LARGE_FILE| \
- EXT3_FEATURE_RO_COMPAT_BTREE_DIR)
+ EXT3_FEATURE_RO_COMPAT_LARGE_FILE)
/*
* Default values for user and/or group using reserved blocks
--
Qi Yong
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] ext3: remove btree_dir
2006-07-13 8:05 [patch] ext3: remove btree_dir Qi Yong
@ 2006-07-13 11:59 ` Stephen C. Tweedie
0 siblings, 0 replies; 2+ messages in thread
From: Stephen C. Tweedie @ 2006-07-13 11:59 UTC (permalink / raw)
To: Qi Yong
Cc: Andrew Morton, Andreas Dilger, ext2-devel@lists.sourceforge.net,
linux-kernel, Stephen Tweedie
Hi,
On Thu, 2006-07-13 at 16:05 +0800, Qi Yong wrote:
> Remove support for EXT3_FEATURE_RO_COMPAT_BTREE_DIR, so mount can
> safely fail out when some new feature added using 0x0004.
I think this is a bad idea.
It's not safe to reuse this existing feature bit: if we do, then any
existing 2.6 kernel prior to the change will mistakenly think that it
understands that feature for read-write, and will therefore be likely to
corrupt data. And we are not remotely short of feature bits, so there's
no pressure to free up existing bits.
Removing the flag from the tree will remove what is essentially
documentation that this flag cannot be reused.
Cheers,
Stephen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-13 11:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-13 8:05 [patch] ext3: remove btree_dir Qi Yong
2006-07-13 11:59 ` Stephen C. Tweedie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox