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-14160 fallocate: Add punch mode to fallocate
[fs/lustre-release.git]
/
lustre
/
mdc
/
mdc_dev.c
diff --git
a/lustre/mdc/mdc_dev.c
b/lustre/mdc/mdc_dev.c
index
db9e83b
..
02e562a
100644
(file)
--- a/
lustre/mdc/mdc_dev.c
+++ b/
lustre/mdc/mdc_dev.c
@@
-1067,6
+1067,9
@@
static int mdc_io_setattr_start(const struct lu_env *env,
return rc;
}
+ if (cl_io_is_fallocate(io))
+ return -EOPNOTSUPP;
+
if (oio->oi_lockless == 0) {
cl_object_attr_lock(obj);
rc = cl_object_attr_get(env, obj, attr);