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-12036 ofd: add "no_precreate" mount option
[fs/lustre-release.git]
/
lustre
/
ofd
/
ofd_obd.c
diff --git
a/lustre/ofd/ofd_obd.c
b/lustre/ofd/ofd_obd.c
index
7240b8f
..
c59f96b
100644
(file)
--- a/
lustre/ofd/ofd_obd.c
+++ b/
lustre/ofd/ofd_obd.c
@@
-1105,6
+1105,9
@@
static int ofd_echo_create(const struct lu_env *env, struct obd_export *exp,
ENTRY;
+ if (ofd->ofd_no_precreate)
+ return -EPERM;
+
ofd_info_init(env, exp);
LASSERT(seq == FID_SEQ_ECHO);