From 69ef52106552e5782da20acc3dc2fddd5b6dada5 Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 23 Oct 2006 13:37:51 +0000 Subject: [PATCH] - fix qos_maxage issue. It was uninitialized. --- lustre/lov/lov_obd.c | 3 +++ lustre/mgs/mgs_llog.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 2eafe1c..7ca3b77 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -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) diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c index dd18316..56d6d29 100644 --- a/lustre/mgs/mgs_llog.c +++ b/lustre/mgs/mgs_llog.c @@ -36,6 +36,7 @@ #endif #include +#include #include #include #include @@ -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; -- 1.8.3.1