Whamcloud - gitweb
Branch b1_6
authorjohann <johann>
Fri, 25 May 2007 14:38:07 +0000 (14:38 +0000)
committerjohann <johann>
Fri, 25 May 2007 14:38:07 +0000 (14:38 +0000)
Add the QUOTA mount option on the fly for kernel newer than 2.6.12.
Add a call to fsfilt_setup() in filter_common_setup().

b=12538
i=alex
i=adilger

lustre/ChangeLog
lustre/lvfs/fsfilt_ext3.c
lustre/obdfilter/filter.c

index 1cd0b30..b04a7fa 100644 (file)
@@ -15,6 +15,12 @@ tbd         Cluster File Systems, Inc. <info@clusterfs.com>
        * bug fixes
 
 Severity   : normal
+Frequency  : SLES10 only
+Bugzilla   : 12538
+Description: sanity-quota.sh quotacheck failed: rc = -22
+Details    : Quotas cannot be enabled on SLES10.
+
+Severity   : normal
 Frequency  : sometimes when underlying device returns I/O errors
 Bugzilla   : 11743
 Description: OSTs not going read-only during write failures
index 9634f4c..f005089 100644 (file)
@@ -1350,6 +1350,9 @@ static int fsfilt_ext3_setup(struct super_block *sb)
 #endif
         if (!EXT3_HAS_COMPAT_FEATURE(sb, EXT3_FEATURE_COMPAT_DIR_INDEX))
                 CWARN("filesystem doesn't have dir_index feature enabled\n");
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)) && HAVE_QUOTA_SUPPORT
+        set_opt(EXT3_SB(sb)->s_mount_opt, QUOTA);
+#endif
         return 0;
 }
 
index c643b1b..ddbf886 100644 (file)
@@ -1677,6 +1677,8 @@ int filter_common_setup(struct obd_device *obd, obd_count len, void *buf,
         filter->fo_fstype = mnt->mnt_sb->s_type->name;
         CDEBUG(D_SUPER, "%s: mnt = %p\n", filter->fo_fstype, mnt);
 
+        fsfilt_setup(obd, obd->u.obt.obt_sb);
+
         OBD_SET_CTXT_MAGIC(&obd->obd_lvfs_ctxt);
         obd->obd_lvfs_ctxt.pwdmnt = mnt;
         obd->obd_lvfs_ctxt.pwd = mnt->mnt_root;