Subject: *Very* strange interaction of /bin/cp and NFS reads
To: None <netbsd-help@NetBSD.ORG>
From: Martin Cracauer <cracauer@wavehh.hanse.de>
List: netbsd-help
Date: 09/21/1995 11:50:48
When copying a file from an NFS partition to a local partition,
/bin/cp from NetBSD-1.0 often gets an older version of that file (That
means, if the source file has been edited lately, /bin/cp often copies
what the source file has been before editing).

Using `cat /NFS-part/file > /local-part/file` works as expected, the
file is always what the server's current contents of that file
are. GNU cp works right, too (from fileutils-3.12). I found no other
program that has this problem of getting outdated file contents over
NFS. 

Is this a known problem? Since I didn't look into GNU cp and don't
know if it causes problems when interacting with other system tools, I
don't know if I sould simply replace /bin/cp with GNU cp.

Could you please give me some advice whether /bin/cp can be fixed, if
I can use GNU cp as a full replacement or maybe I'm just doing
something wrong? Or even better, could you drop me a note what exactly
is going wrong? Is this a general NFS problem or just /bin/cp trying
to be too clever?

Just in case it is needed: The System is NetBSD-1.0pl6, i486-ISA with
1542, 3c5x9 and WD8013. The 3C card is used for these transfers, the
WD is active on a different subnet. The server is a SPARC 2,
SunOS-4.1.3_U1.

Thanks for your help.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@wavehh.hanse.de>  
(private address)
Tel.: +49 40 / 522 18 29
Fax.: +49 40 / 522 85 36