Whamcloud - gitweb
- fix qos_maxage issue. It was uninitialized.
authortappro <tappro>
Mon, 23 Oct 2006 13:37:51 +0000 (13:37 +0000)
committertappro <tappro>
Mon, 23 Oct 2006 13:37:51 +0000 (13:37 +0000)
lustre/lov/lov_obd.c
lustre/mgs/mgs_llog.c

index 2eafe1c..7ca3b77 100644 (file)
@@ -665,6 +665,9 @@ void lov_fix_desc(struct lov_desc *desc)
                 LCONSOLE_WARN("Unknown stripe pattern: %#x\n",desc->ld_pattern);
                 desc->ld_pattern = 0;
         }
+
+        if (desc->ld_qos_maxage == 0)
+                desc->ld_qos_maxage = QOS_DEFAULT_MAXAGE;
 }
 
 static int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg)
index dd18316..56d6d29 100644 (file)
@@ -36,6 +36,7 @@
 #endif
 
 #include <obd.h>
+#include <obd_lov.h>
 #include <obd_class.h>
 #include <lustre_log.h>
 #include <obd_ost.h>
@@ -1117,6 +1118,7 @@ static int mgs_write_log_lov(struct obd_device *obd, struct fs_db *fsdb,
         lovdesc->ld_pattern = LOV_PATTERN_RAID0;
         lovdesc->ld_default_stripe_size = 1024 * 1024;
         lovdesc->ld_default_stripe_offset = 0;
+        lovdesc->ld_qos_maxage = QOS_DEFAULT_MAXAGE;
         sprintf((char*)lovdesc->ld_uuid.uuid, "%s_UUID", lovname);
         /* can these be the same? */
         uuid = (char *)lovdesc->ld_uuid.uuid;