mirror of
https://github.com/ceph/ceph
synced 2024-12-25 04:43:17 +00:00
Merge PR #28831 into master
* refs/pull/28831/head: client: support the fallocate() when fuse version >= 2.9 Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Zheng Yan <zyan@redhat.com>
This commit is contained in:
commit
f5dc15db62
@ -657,7 +657,7 @@ static void fuse_ll_ioctl(fuse_req_t req, fuse_ino_t ino, int cmd, void *arg, st
|
||||
}
|
||||
#endif
|
||||
|
||||
#if FUSE_VERSION > FUSE_MAKE_VERSION(2, 9)
|
||||
#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 9)
|
||||
|
||||
static void fuse_ll_fallocate(fuse_req_t req, fuse_ino_t ino, int mode,
|
||||
off_t offset, off_t length,
|
||||
@ -1036,7 +1036,7 @@ const static struct fuse_lowlevel_ops fuse_ll_oper = {
|
||||
forget_multi: 0,
|
||||
flock: fuse_ll_flock,
|
||||
#endif
|
||||
#if FUSE_VERSION > FUSE_MAKE_VERSION(2, 9)
|
||||
#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 9)
|
||||
fallocate: fuse_ll_fallocate
|
||||
#endif
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user