Whamcloud - gitweb
return 128 as filetype for cross-ref entry
authorniu <niu>
Mon, 12 Sep 2005 11:35:22 +0000 (11:35 +0000)
committerniu <niu>
Mon, 12 Sep 2005 11:35:22 +0000 (11:35 +0000)
r: alex

lustre/kernel_patches/patches/ext3-mds-num-2.6.10-fc3.patch
lustre/kernel_patches/patches/ext3-mds-num-2.6.7.patch

index 973d02f..aa25ed9 100755 (executable)
@@ -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))
index f61c9d9..6c9ff10 100755 (executable)
@@ -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))