Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Sporadic File corruption with cp command. : (3 Items)
   
Sporadic File corruption with cp command.  
Hi, 

We are seeing sporadic file corruption when doing a recursive copy of some files to an ETFS file system. The corruption 
is oftern limited to just one byte. 
It is to be noted that the issue is not seen when doing a file by file copy, only when doing a recursive copy of the 
complete directory. 

It was noticed that the occurrence of this issue reduced when we used cp with "-B" setting. 

Is there a significant difference with using a small copy buffer ? How else should we investigate this problem ?
Re: Sporadic File corruption with cp command.  
I bet it is a file system thing, or a device problem (most likely a device problem). 

cp is pretty straight forward and doesn't change behavior because of a different file system.  

I personally would need to have hands on this to see what was going on.  There are things you can do to "intercept" cp's
 copying in QNX to do some top level validation.  
Re: Sporadic File corruption with cp command.  
Ankur,

I've been pondering your problem, let me give you a data point that may help you move this forward.  The source code for
 the cp utility has been around for 20+ years.  I don't think it was re-written with the advent of QNX 6,  it was around
 with QNX 4.

This utility is being used on literally millions of QNX installations around the world.  I really don't think you have a
 problem there.

Feel free to reach out to me if you want to discuss it some more.

Thanks
Kevin