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
/
lod
/
lod_dev.c
diff --git
a/lustre/lod/lod_dev.c
b/lustre/lod/lod_dev.c
index
71be4e2
..
bb1a90c
100644
(file)
--- a/
lustre/lod/lod_dev.c
+++ b/
lustre/lod/lod_dev.c
@@
-385,7
+385,7
@@
static int lod_sub_recovery_thread(void *arg)
again:
rc = lod_sub_prep_llog(&env, lod, dt, lrd->lrd_idx);
- if (
rc == 0
) {
+ if (
!rc && !lod->lod_child->dd_rdonly
) {
/* Process the recovery record */
ctxt = llog_get_context(dt->dd_lu_dev.ld_obd,
LLOG_UPDATELOG_ORIG_CTXT);