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:
7546c40
)
b=15899
author
nathan
<nathan>
Tue, 2 Sep 2008 20:53:09 +0000
(20:53 +0000)
committer
nathan
<nathan>
Tue, 2 Sep 2008 20:53:09 +0000
(20:53 +0000)
fix bad error check
lustre/utils/obd.c
patch
|
blob
|
history
diff --git
a/lustre/utils/obd.c
b/lustre/utils/obd.c
index
ed6916f
..
8a3201f
100644
(file)
--- a/
lustre/utils/obd.c
+++ b/
lustre/utils/obd.c
@@
-201,7
+201,7
@@
int lcfg_mgs_ioctl(char *func, int dev_id, struct lustre_cfg *lcfg)
IOC_INIT(data);
rc = data.ioc_dev = get_mgs_device();
- if (rc)
+ if (rc
< 0
)
goto out;
data.ioc_type = LUSTRE_CFG_TYPE;
data.ioc_plen1 = lustre_cfg_len(lcfg->lcfg_bufcount,
@@
-2665,7
+2665,7
@@
static int pool_cmd(enum lcfg_command_type cmd,
IOC_INIT(data);
rc = data.ioc_dev = get_mgs_device();
- if (rc)
+ if (rc
< 0
)
goto out;
data.ioc_type = LUSTRE_CFG_TYPE;