Whamcloud - gitweb
- set the mds's and ost's obd_logops
authorphil <phil>
Mon, 8 Sep 2003 17:08:33 +0000 (17:08 +0000)
committerphil <phil>
Mon, 8 Sep 2003 17:08:33 +0000 (17:08 +0000)
- 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

index 1fdff01..8bbd3f3 100644 (file)
@@ -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);
 }