Whamcloud - gitweb
b=23237 mount.lustre dies with SIGSEGV: Unable to read 1.8 config /tmp/lustre_tmp...
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Fri, 2 Jul 2010 22:11:37 +0000 (18:11 -0400)
committerJohann Lombardi <johann@sun.com>
Fri, 2 Jul 2010 22:24:52 +0000 (00:24 +0200)
 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 530c9bf..3da4771 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: