On Mon, Mar 17, 2008 at 08:19:10AM -0700, Tim Kientzle wrote: > >>> FreeBSD src repository > >>> > >>> Modified files: > >>> tools/regression/bin/mv regress.sh > >>> Log: > >>> Add more tests. All rename(2)-based tests now succeed. > >>> The performance of the cross-device equivalents is under investigation. > > > >I was thinking about adding two options to cp(1) (-1 and -2) to give > >cp(1) a hint if the copy is done inside one disk or between separate > >disks. > > Will anyone ever use such a flag? I'm skeptical.
I would... sometimes:) That's probably why I never did it. > If there were a way to determine this programmatically, > it would be a big win. You'd need to look at the first > file copied to determine if the destination was on the > same (physical) disk or not. This is how I started to think about that, but this is not possible. Moreover you may still want to use -2 option even if this looks like one physical disk, but it represents a RAID5 array. -- Pawel Jakub Dawidek http://www.wheel.pl [EMAIL PROTECTED] http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
pgpPmGlCLZ4et.pgp
Description: PGP signature