Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2644be
)
b=10027
author
green
<green>
Fri, 6 Jan 2006 05:49:12 +0000
(
05:49
+0000)
committer
green
<green>
Fri, 6 Jan 2006 05:49:12 +0000
(
05:49
+0000)
r=adilger
Do not segfault in 'lfs check' if no Lustre fs mounted.
lustre/utils/lfs.c
patch
|
blob
|
history
diff --git
a/lustre/utils/lfs.c
b/lustre/utils/lfs.c
index
a47e609
..
65cf9bd
100644
(file)
--- a/
lustre/utils/lfs.c
+++ b/
lustre/utils/lfs.c
@@
-376,6
+376,11
@@
static int lfs_check(int argc, char **argv)
endmntent(fp);
}
+ if (!mnt) {
+ fprintf(stderr, "No suitable Lustre mount found\n");
+ return -1;
+ }
+
rc = llapi_target_check(num_types, obd_types, mnt->mnt_dir);
if (rc)