Btrfs: export btrfs space shared info to userspace
authorLiu Bo <bo.li.liu@oracle.com>
Sun, 22 Sep 2013 04:54:23 +0000 (12:54 +0800)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:52:54 +0000 (21:52 -0500)
commitfe09e16cc8d444ecc52f6f9a651946f16fffa4e1
treefd70448c73de76d483dc4397655425a41a43821b
parent74514323947ef27347564bfd7a663fdb3429cb20
Btrfs: export btrfs space shared info to userspace

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]: http://thr3ads.net/ocfs2-devel/2010/09/489052-PATCH-3-3-shared-du-using-fiemap-to-figure-up-the-shared-extents-per-file-and-the-footprint-in

Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent_io.c