Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
land 0.5.20.3 b_devel onto HEAD (b_devel will remain)
[fs/lustre-release.git]
/
lustre
/
mds
/
mds_lov.c
diff --git
a/lustre/mds/mds_lov.c
b/lustre/mds/mds_lov.c
index
fef9a0d
..
796fcd2
100644
(file)
--- a/
lustre/mds/mds_lov.c
+++ b/
lustre/mds/mds_lov.c
@@
-243,7
+243,9
@@
int mds_iocontrol(unsigned int cmd, struct lustre_handle *conn,
case OBD_IOC_SET_READONLY:
CERROR("setting device %s read-only\n",
ll_bdevname(obd->u.mds.mds_sb->s_dev));
+#ifdef CONFIG_DEV_RDONLY
dev_set_rdonly(obd->u.mds.mds_sb->s_dev, 2);
+#endif
RETURN(0);
default: