On 10/31/2012 08:40 AM, Liu Bo wrote: > On 10/30/2012 11:20 PM, Gábor Nyers wrote: >> Hi, >> >> How could one find out if 2 files share any extents on a btrfs file system? >> >> A more generic variation of the above: How to list files on the same >> file system/subvolume sharing content? One idea is to mark those cloned extents as FIEMAP_EXTENT_SHARED so that we can go through a file to figure out how many extents are shared through fiemap(2), and calculate the real storage(fs/subvolume) footprint in the end.
Thanks, -Jeff >> > > Indeed ocfs2 already has the feature where you can get shared parts via 'du', > we're planning to support this in btrfs, too. > > thanks, > liubo > >> Thanks, >> Gábor >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in >> the body of a message to majord...@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html