From a22ad035ca7acb8c0f0a05657054bc8265d99e00 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 8 Sep 2003 17:08:32 +0000 Subject: [PATCH] - 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 --- lustre/obdclass/llog_lvfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.8.3.1