From: phil Date: Mon, 8 Sep 2003 17:08:32 +0000 (+0000) Subject: - set the mds's and ost's obd_logops X-Git-Tag: v1_7_0_51~2^9~325 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a22ad035ca7acb8c0f0a05657054bc8265d99e00;p=fs%2Flustre-release.git - set the mds's and ost's obd_logops - initial oa to null in llog_lvfs_create, avoids crashing - in llog test 1a, don't try to close if the open failed - 'lctl modules' hook for llog_test --- diff --git a/lustre/obdclass/llog_lvfs.c b/lustre/obdclass/llog_lvfs.c index bcfcd2e..7dddfc8 100644 --- a/lustre/obdclass/llog_lvfs.c +++ b/lustre/obdclass/llog_lvfs.c @@ -322,7 +322,7 @@ static int llog_lvfs_create(struct obd_device *obd, struct llog_handle **res, { char logname[24]; struct llog_handle *handle; - struct obdo *oa; + struct obdo *oa = NULL; int rc, open_flags = O_RDWR | O_CREAT | O_LARGEFILE; ENTRY; @@ -334,7 +334,7 @@ static int llog_lvfs_create(struct obd_device *obd, struct llog_handle **res, if (name) { LASSERT(strlen(name) <= 18); sprintf(logname, "LOGS/%s", name); - + handle->lgh_file = l_filp_open(logname, open_flags, 0644); if (IS_ERR(handle->lgh_file)) { rc = PTR_ERR(handle->lgh_file);