[PATCH 0/3] nilfs2 add feature flags

2010-07-19 Thread Ryusuke Konishi
This series introduces feature flags that allow nilfs to confirm feature compatibility of filesystem. The first patch is just for improving readability of super block format. The second patch extends super block and adds three flags to store feature sets (i.e. compat features, read-only compat

[PATCH 2/3] nilfs2: add feature set fields to super block

2010-07-19 Thread Ryusuke Konishi
This adds three new fields to nilfs_super_block structure, compatible feature set, readonly-compatible feature set, and incompatible feature set in order to prepare for future disk format modifications. The role of these fields conforms to those of ext3 or other filesystems. Most important flags

[PATCH 3/3] nilfs2: reject incompatible filesystem

2010-07-19 Thread Ryusuke Konishi
This forces nilfs to check compatibility of feature flags when it mounts or remounts the filesystem so that it rejects the filesystem with unknown features. Signed-off-by: Ryusuke Konishi konishi.ryus...@lab.ntt.co.jp --- fs/nilfs2/nilfs.h |2 ++ fs/nilfs2/super.c | 39

[PATCH 1/3] nilfs2: clarify byte offset in super block format

2010-07-19 Thread Ryusuke Konishi
This inserts comments indicating hexadecimal offset in declaration of nilfs_super_block structure so that people can know offset of its fields without counting from the head. Signed-off-by: Ryusuke Konishi konishi.ryus...@lab.ntt.co.jp --- include/linux/nilfs2_fs.h | 26