]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit256bf2a4285dfc95596b021ee31ef8c0e4db0cdf
treefd70448c73de76d483dc4397655425a41a43821b
parent8178481b27ced7a35da7870584319ce0d57bccf1
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