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:
7d50d26
)
Clear the readonly state flags when we initially set up MDS and when we exit.
author
adilger
<adilger>
Fri, 29 Mar 2002 22:10:01 +0000
(22:10 +0000)
committer
adilger
<adilger>
Fri, 29 Mar 2002 22:10:01 +0000
(22:10 +0000)
lustre/mds/handler.c
patch
|
blob
|
history
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
b9db2cb
..
0abff96
100644
(file)
--- a/
lustre/mds/handler.c
+++ b/
lustre/mds/handler.c
@@
-441,6
+441,7
@@
static int mds_setup(struct obd_device *obddev, obd_count len, void *buf)
ENTRY;
MOD_INC_USE_COUNT;
+ dev_clear_rdonly(2);
mnt = do_kern_mount(data->ioc_inlbuf2, 0, data->ioc_inlbuf1, NULL);
err = PTR_ERR(mnt);
if (IS_ERR(mnt)) {
@@
-549,6
+550,7
@@
static int mds_cleanup(struct obd_device * obddev)
mds->mds_sb = 0;
kfree(mds->mds_fstype);
lock_kernel();
+ dev_clear_rdonly(2);
OBD_FREE(s_ops, sizeof(*s_ops));