[PATCH v2] Btrfs: export btrfs space shared info to userspace

2013-09-16 Thread Liu Bo
Similar to ocfs2, btrfs also supports that extents can be shared by different inodes, and there are some userspace tools requesting for this kind of 'space shared infomation'.[1] ocfs2 uses flag FIEMAP_EXTENT_SHARED, so does btrfs. [1]:

Re: [PATCH v2] Btrfs: export btrfs space shared info to userspace

2013-09-16 Thread David Sterba
On Mon, Sep 16, 2013 at 04:18:24PM +0800, Liu Bo wrote: @@ -4122,7 +4136,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, last = found_key.offset; last_for_get_extent = last + 1; } - btrfs_free_path(path); +

Re: [PATCH v2] Btrfs: export btrfs space shared info to userspace

2013-09-16 Thread Liu Bo
On Mon, Sep 16, 2013 at 10:55:17AM +0200, David Sterba wrote: On Mon, Sep 16, 2013 at 04:18:24PM +0800, Liu Bo wrote: @@ -4122,7 +4136,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, last = found_key.offset; last_for_get_extent =