[TriLUG] cp of /dev hangs, but not tar
Robert Dale
robdale at gmail.com
Sat Jun 16 12:44:24 EDT 2007
On 16 Jun 2007 12:10:33 -0400, Jon Carnes <jonc at nc.rr.com> wrote:
> I'm certain that cp does a write then a read to verify... or rather it
> calls a disk-write process that does a write then a read before giving
> the thumbs up back to the cp process. Of course it's been a long, long
> time since I've looked at the source code for cp.
No it doesn't and thank goodness. Copying files would take almost
twice as long if it had to read it back and verify. cp does a dumb
copy and checks for the usual errno (ie. write failed). It's
sufficient for most tasks.
--
Robert Dale
More information about the TriLUG
mailing list