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:
b16356c
)
fix small bug with dt_sync and dt_ro calling in mdt_iocontrol.
author
tappro
<tappro>
Tue, 5 Sep 2006 20:02:07 +0000
(20:02 +0000)
committer
tappro
<tappro>
Tue, 5 Sep 2006 20:02:07 +0000
(20:02 +0000)
lustre/mdt/mdt_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
0110a81
..
24146a7
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-2861,9
+2861,9
@@
static int mdt_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
RETURN(rc);
lu_context_enter(&ctxt);
if (cmd == OBD_IOC_SYNC || cmd == OBD_IOC_SET_READONLY) {
- if (cmd == OBD_IOC_SYNC)
- rc = dt->dd_ops->dt_sync(&ctxt, dt);
- dt->dd_ops->dt_ro(&ctxt, dt);
+ rc = dt->dd_ops->dt_sync(&ctxt, dt);
+ if (cmd == OBD_IOC_SET_READONLY)
+
dt->dd_ops->dt_ro(&ctxt, dt);
} else
rc = -EOPNOTSUPP;
lu_context_exit(&ctxt);