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

index bcfcd2e..7dddfc8 100644 (file)
@@ -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);