diff --git a/lustre/kernel_patches/patches/ext3-mds-num-2.6.10-fc3.patch b/lustre/kernel_patches/patches/ext3-mds-num-2.6.10-fc3.patch index 973d02f4d01e21516229861edf1c433bb825fdb0..aa25ed90e27cdc06c7d45a20a585bb3250736514 100755 --- a/lustre/kernel_patches/patches/ext3-mds-num-2.6.10-fc3.patch +++ b/lustre/kernel_patches/patches/ext3-mds-num-2.6.10-fc3.patch @@ -6,8 +6,8 @@ Index: linux-2.6.10/fs/ext3/dir.c static unsigned char get_dtype(struct super_block *sb, int filetype) { -+ if (EXT3_HAS_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_MDSNUM)) -+ return DT_UNKNOWN; ++ if (EXT3_HAS_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_MDSNUM) && filetype == 128) ++ return 128; + if (!EXT3_HAS_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_FILETYPE) || (filetype >= EXT3_FT_MAX)) diff --git a/lustre/kernel_patches/patches/ext3-mds-num-2.6.7.patch b/lustre/kernel_patches/patches/ext3-mds-num-2.6.7.patch index f61c9d9b0813257f0d9c78a0cfe6e0414e10d200..6c9ff104650d21d63f7833964588765d590ac811 100755 --- a/lustre/kernel_patches/patches/ext3-mds-num-2.6.7.patch +++ b/lustre/kernel_patches/patches/ext3-mds-num-2.6.7.patch @@ -202,8 +202,8 @@ Index: linux-2.6.7/fs/ext3/dir.c static unsigned char get_dtype(struct super_block *sb, int filetype) { -+ if (EXT3_HAS_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_MDSNUM)) -+ return DT_UNKNOWN; ++ if (EXT3_HAS_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_MDSNUM) && filetype == 128) ++ return 128; + if (!EXT3_HAS_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_FILETYPE) || (filetype >= EXT3_FT_MAX))