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:
ebb3f4d
)
b=16855
author
kalpak
<kalpak>
Wed, 10 Dec 2008 02:13:13 +0000
(
02:13
+0000)
committer
kalpak
<kalpak>
Wed, 10 Dec 2008 02:13:13 +0000
(
02:13
+0000)
i=nathan
Fix small bug in search_fsname()
lustre/utils/liblustreapi.c
patch
|
blob
|
history
diff --git
a/lustre/utils/liblustreapi.c
b/lustre/utils/liblustreapi.c
index
83d6990
..
3927ca6
100644
(file)
--- a/
lustre/utils/liblustreapi.c
+++ b/
lustre/utils/liblustreapi.c
@@
-417,7
+417,8
@@
static int search_fsname(char *pathname, char *fsname)
if (llapi_is_lustre_mnt(mnt)) {
/* search by pathname */
if (strncmp(mnt->mnt_dir, pathname,
- strlen(mnt->mnt_dir)) == 0) {
+ max(strlen(pathname),
+ strlen(mnt->mnt_dir))) == 0) {
ptr = strchr(mnt->mnt_fsname, '/');
if (ptr == NULL)
return -EINVAL;