From b756fc4ab28c09d0bb09937afebbc750b2807660 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 8 Sep 2003 17:08:33 +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_test.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lustre/obdclass/llog_test.c b/lustre/obdclass/llog_test.c index 1fdff01..8bbd3f3 100644 --- a/lustre/obdclass/llog_test.c +++ b/lustre/obdclass/llog_test.c @@ -40,21 +40,21 @@ static int llog_test_1(struct obd_device *obd) { struct llog_handle *llh; char name[10]; - int rc, err; + int rc; ENTRY; CERROR("1a: create a log with a name\n"); sprintf(name, "%x", llog_test_rand); rc = llog_create(obd, &llh, name); - if (rc) + if (rc) { CERROR("1a: llog_create with name %s failed: %d\n", name, rc); + RETURN(rc); + } CERROR("1b: close newly-created log\n"); - err = llog_close(llh); - if (err) - CERROR("1b: close log %s failed: %d\n", name, err); - if (!rc) - rc = err; + rc = llog_close(llh); + if (rc) + CERROR("1b: close log %s failed: %d\n", name, rc); RETURN(rc); } -- 1.8.3.1