On Thu, Nov 23, 2017 at 10:06:09AM +0200, Nikolay Borisov wrote: > For file extents xfs currently always calls xfs_bmapi_read with not flags, > meaning extents are going to be truncated to the requested range. This is > differs than what other filesystems do (ext4/btrfs don't trim extents). So > harmonize the behavior across the filesystem by explicitly not trimming > extents when we are called from fiemap code. Given that the iomap code generally trims extents, can you just try to always enable XFS_BMAPI_ENTIRE? -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html