From ae101152f5112f2e06c136132f27edb9e97d1c2b Mon Sep 17 00:00:00 2001 From: Dmitry Zogin Date: Fri, 2 Jul 2010 20:21:15 -0400 Subject: [PATCH] b=23237 mount.lustre dies with SIGSEGV: Unable to read 1.8 config /tmp/lustre_tmp.IfgmBK/mountdata 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/utils/mount_utils.c b/lustre/utils/mount_utils.c index 2f6f24c..1b06999 100644 --- a/lustre/utils/mount_utils.c +++ b/lustre/utils/mount_utils.c @@ -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: -- 1.8.3.1