Tim Waugh <[EMAIL PROTECTED]> writes: > A Netapp NFS server containing a file (xxx) and a snapshot of the file > (.snapshot/xxx) will give them the same inode number. > > Unfortunately, 'cp .snapshot/xxx xxx' (in order to recover the > snapshot version) fails with '... are identical' due to the inode > check. > > Is there some way of bypassing this check? > > More importantly, is there something in POSIX which says that this > check is allowed in the first place?
<http://www.opengroup.org/onlinepubs/009695399/utilities/cp.html> If source_file references the same file as dest_file, cp may write a diagnostic message to standard error; it shall do nothing more with source_file and shall go on to any remaining files. (Not sure whether that allows exiting with non-zero status.) Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstra�e 5, 90409 N�rnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
