This also explains btrfs fiemap ioctl() return values, especially the positive return value, which may confuse users. Signed-off-by: Peng Tao <bergwolf@gmail.com> --- fs/btrfs/extent_io.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 6826018..287896e 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2828,6 +2828,11 @@ out: return sector; } +/* + * Get the extents count of a file and map the extent to a user-supplied extent + * array. Returns 0 on success, 1 when the user-supplied extents array is full, + * and negetive values on failure. + */ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, __u64 start, __u64 len, get_extent_t *get_extent) { -- 1.6.2.GIT -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html