On Wed, Jan 30, 2008 at 11:26:20PM +0100, supersud501 wrote: > > how can i set this "flag" on my filesystem? i've never set any flags before > so i just removed the code from ext4-module to mount my filesystems, but > setting the flag once would make it easier i think :) If you have e2fsprogs 1.40.5, you set at mke2fs time via "mke2fs -E test_fs ...". If you haven't mounted the filesystem using ext4 yet, you can also convert an existing filesystem using "tune2fs -E test_fs /dev/hdXXX". At least with e2fsprogs 1.40.5, it won't work with a filesystem with extents enabled because tune2fs will refuse to touch such a filesystem. (And you don't want to use e2fsprogs 1.40.5 with ext4 anyway, since e2fsck in 1.40.5 doesn't understand extents yet.) You can manually set the flag using debugfs: # debugfs -w /dev/hdXX debugfs: set_super_value s_flags 4 debugfs: quit (Or, if you're lazy, you can also type the shorthand "ssv flags 4" to debugfs.) With e2fsprogs 1.40.5, if the test_fs flag is set, then blkid will return a filesystem type ext4dev, such that if your mount is configured to use blkid (instead of vol_id), it will automatically use ext4dev to mount a filesystem that has (a) a journal (since ext4 currently requires a journal), and (b) the test_fs flag set. This makes it easier for people who are testing ext4, since they will just be able to do something like: # mke2fs -j -E test_fs /dev/mapper/lvmset-test # mount /dev/mapper/lvmset-test .. and /dev/mapper/lvmset-test will automatically be mounted using ext4. - Ted - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html