Originally Posted By: mlord
 Originally Posted By: tonyc

I think what's happening is that the system doesn't realize that the source and destination mounts are actually on the same partition. So, why not?


Mmmm.. I think I would call that a bug, because clearly it should work as you expected it to.

EDIT: Most likely a bug in whatever program you're using to move the files around.
It should try to use link(2) first, and then fall back on a file copy if that fails.

You might be able to use strace on the command to see what it is doing.


Oh, wait. It's a kernel deficiency. From the link(2) manpage:

Linux permits a filesystem to be mounted at multiple points,
but link(2) does not work across different mount points,
even if the same filesystem is mounted on both.


So that's a shortcoming of the link(2) system call on Linux.

Cheers


Edited by mlord (18/12/2007 20:06)