On Sat, Aug 24, 2013 at 06:09:58PM +0200, Thomas Koch wrote: > Hi, > > how can I do the following in a shell script: > > - check whether my file system supports cp --reflink? > - check whether two files share the same data on disk, i.e. one has been > created by cp --reflink of the other? Someone has proposed to teach 'du(1)' to show this, ie. 'du --shared'[1]. It's written for ocfs2 originally, besides btrfs, ocfs2 also can share data between two files. [1]: https://oss.oracle.com/pipermail/ocfs2-devel/2010-September/007287.html -liubo -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
