Whamcloud - gitweb
return 128 as filetype for cross-ref entry
[fs/lustre-release.git] / lustre / kernel_patches / patches / ext3-mds-num-2.6.10-fc3.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))