There are different ways in which copy can be implemented. Especially if it's a copy handled by some remote filesystem.
Not all of them stat-friendly.
The similarly wrong approach would be to use "df" to see if space is being eaten.
Posted Aug 9, 2010 14:46 UTC (Mon) by rvfh (subscriber, #31018)
[Link]
Maybe duplicate the file descriptor and monitor the offset?
The Linux Storage and Filesystem Summit, day 1
Posted Aug 9, 2010 21:24 UTC (Mon) by theraphim (subscriber, #25955)
[Link]
Here you assume you are doing linear copy in a single copying thread. There are cases in which this assumption is untrue, for example, when copying large file from one storage cluster to another you may want to copy chunks in parallel between the chunk servers.