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:
Patrick Donnelly 2019-07-12 17:15:01 -07:00
commit f5dc15db62
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -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
};