From bbf8d9e59c917f12a6253a9dd9d983e80a9d37c1 Mon Sep 17 00:00:00 2001 From: niu Date: Mon, 12 Sep 2005 11:35:22 +0000 Subject: [PATCH] return 128 as filetype for cross-ref entry r: alex --- lustre/kernel_patches/patches/ext3-mds-num-2.6.10-fc3.patch | 4 ++-- lustre/kernel_patches/patches/ext3-mds-num-2.6.7.patch | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 973d02f..aa25ed9 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 f61c9d9..6c9ff10 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)) -- 1.8.3.1