git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37ab77a
)
ceph: check unsupported fallocate mode
author
Yan, Zheng
<zheng.z.yan@intel.com>
Thu, 26 Jun 2014 07:25:17 +0000
(15:25 +0800)
committer
Ilya Dryomov
<ilya.dryomov@inktank.com>
Tue, 8 Jul 2014 11:08:46 +0000
(15:08 +0400)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/file.c
patch
|
blob
|
history
diff --git
a/fs/ceph/file.c
b/fs/ceph/file.c
index
3020851
..
19af25d
100644
(file)
--- a/
fs/ceph/file.c
+++ b/
fs/ceph/file.c
@@
-1177,6
+1177,9
@@
static long ceph_fallocate(struct file *file, int mode,
loff_t endoff = 0;
loff_t size;
+ if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE))
+ return -EOPNOTSUPP;
+
if (!S_ISREG(inode->i_mode))
return -EOPNOTSUPP;