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
/
ofd
/
ofd_fs.c
diff --git
a/lustre/ofd/ofd_fs.c
b/lustre/ofd/ofd_fs.c
index
d8f421c
..
ea3d87b
100644
(file)
--- a/
lustre/ofd/ofd_fs.c
+++ b/
lustre/ofd/ofd_fs.c
@@
-212,6
+212,9
@@
int ofd_seq_last_oid_write(const struct lu_env *env, struct ofd_device *ofd,
ENTRY;
+ if (ofd->ofd_osd->dd_rdonly)
+ RETURN(0);
+
tmp = cpu_to_le64(ofd_seq_last_oid(oseq));
info->fti_buf.lb_buf = &tmp;