Skip to content

Commit

Permalink
Removed support of bmap() with external fuse older than 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Pierre André committed Jun 29, 2010
1 parent e47b85c commit 233bf29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lowntfs-3g.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -2543,6 +2545,8 @@ done :
fuse_reply_bmap(req, lidx);
}

#endif /* FUSE_VERSION >= 28 */

#ifdef HAVE_SETXATTR

/*
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 233bf29

Please sign in to comment.