From 233bf2929aa49498f2ec507c255166e626365881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Tue, 29 Jun 2010 19:27:25 +0200 Subject: [PATCH] Removed support of bmap() with external fuse older than 2.8 --- src/lowntfs-3g.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index a9c94a91..9ea1eff1 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -2490,6 +2490,8 @@ static void ntfs_fuse_rmdir(fuse_req_t req, fuse_ino_t parent, const char *name) fuse_reply_err(req, 0); } +#if FUSE_VERSION >= 28 + static void ntfs_fuse_bmap(fuse_req_t req, fuse_ino_t ino, size_t blocksize, uint64_t vidx) { @@ -2543,6 +2545,8 @@ done : fuse_reply_bmap(req, lidx); } +#endif /* FUSE_VERSION >= 28 */ + #ifdef HAVE_SETXATTR /* @@ -3585,7 +3589,9 @@ static struct fuse_lowlevel_ops ntfs_3g_ops = { .rename = ntfs_fuse_rename, .mkdir = ntfs_fuse_mkdir, .rmdir = ntfs_fuse_rmdir, +#if FUSE_VERSION >= 28 .bmap = ntfs_fuse_bmap, +#endif /* FUSE_VERSION >= 28 */ .destroy = ntfs_fuse_destroy2, #if !KERNELPERMS | (POSIXACLS & !KERNELACLS) .access = ntfs_fuse_access,