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
LU-8900 snapshot: simulate readonly device
[fs/lustre-release.git]
/
lustre
/
target
/
out_handler.c
diff --git
a/lustre/target/out_handler.c
b/lustre/target/out_handler.c
index
1cf8c21
..
f633fef
100644
(file)
--- a/
lustre/target/out_handler.c
+++ b/
lustre/target/out_handler.c
@@
-1109,6
+1109,9
@@
int out_handle(struct tgt_session_info *tsi)
out_reconstruct, reply,
reply_index))
GOTO(next, rc = 0);
+
+ if (dt->dd_rdonly)
+ GOTO(next, rc = -EROFS);
}
/* start transaction for modification RPC only */