Re: check for reflink capability and for shared data

2013-08-26 Thread Marios Titas
On Sat, Aug 24, 2013 at 12:09 PM, Thomas Koch tho...@koch.ro wrote: - check whether two files share the same data on disk, i.e. one has been created by cp --reflink of the other? How about inspecting the output of filefrag -v $filename? For example, you could filter out with grep all lines

check for reflink capability and for shared data

2013-08-24 Thread Thomas Koch
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? Thank you! Thomas Koch -- To unsubscribe from this list: send the line

Re: check for reflink capability and for shared data

2013-08-24 Thread Hugo Mills
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? touch foo; if cp --reflink=always foo bar; then ...; fi; rm -f foo bar - check whether two files share the same data on