Most of the code was copied from the cp.c and copy.c code. There is one minor warning in the new code (which I don't quite understand), but it otherwise runs fine. I've tested it here, though it might require some more through testing. For now, I've commented out the "goto un_backup" statements. Eventually, these will need to be fixed. (I would think the backup option is barely used, anyway.)
Also, I have a question about how files are moved. Currently, all files are copied to a new diskspace, and then the old diskspace is removed. Why not just create a hardlink (ie: x->hard_link = 1;) and remove that link? It's faster and does not fragment the hard drive. Directories structures may need to be copied, but the files themselves can easily have a hard link. After looking at the code, I was surprised that this wasn't in there. (Actually, I'm surprised nobody bothered with this feature, either. :P
-- Brendan Byrd/SineSwiper <[EMAIL PROTECTED]> Computer techie, Perl hacker, and all-purpose Internet guru Resonator Software (http://www.ResonatorSoft.org/)
_______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-coreutils
