Details
-
Improvement
-
Resolution: Duplicate
-
Major
-
None
-
Lustre 2.2.0
-
10086
Description
Parallel Directory Operation patch (LU-50, http://review.whamcloud.com/#change,375) will support 3-level directory which requires directory size over 2G, besides code change for htree of ext4/ldiskfs, we also need to use i_size_high to store size of directory. This requires change to e2fsprogs to make it understand it.
We've added feature EXT4_FEATURE_RO_COMPAT_LARGEDIR to ldiskfs to prevent kernel/e2fsprogs that only support 2-level to modify 3-level directories, this should also be added to e2fsprogs.
The kernel patch checks for INCOMPAT_LARGEDIR before using directories over 2GB or with more than 2-level htree. This means the 2.2 ldiskfs is safe to use even without this patch in e2fsprogs, because nothing should be able to set INCOMPAT_LARGEDIR until e2fsprogs is updated. This will also give us compatibility with 2.3 if the LARGEDIR feature can be enabled with newer e2fsprogs, but Lustre needs to be downgraded for some reason.