Whamcloud - gitweb
b=23237 mount.lustre dies with SIGSEGV: Unable to read 1.8 config /tmp/lustre_tmp...
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Sat, 3 Jul 2010 00:21:15 +0000 (20:21 -0400)
committerRobert Read <robert.read@oracle.com>
Tue, 6 Jul 2010 17:25:22 +0000 (10:25 -0700)
 Do not try to close non-open file and return the error in get_mountdata()

 i=andreas.dilger
 i=johann

lustre/utils/mount_utils.c

index 2f6f24c..1b06999 100644 (file)
@@ -142,7 +142,8 @@ int get_mountdata(char *dev, struct lustre_disk_data *mo_ldd)
         } else {
                 verrprint("%s: Unable to read %d.%d config %s.\n",
                           progname, LUSTRE_MAJOR, LUSTRE_MINOR, filepnm);
-                goto out_close;
+                ret = 1;
+                goto out_rmdir;
         }
 
 out_close: