Re: cp -p does not preserve timestamps

Günter Kukkukk <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Organization Entwicklungsbüro für Informationstechnologien
Message-ID <[email protected]>
Am Sonntag, 7. Juni 2009 schrieb Jochen Roderburg:
> Hello list,
> 
> This favourite linux-cifs error seems to be still around (or returned  
> again lately  ;-)
> 
> When I copy a file to a cifs-mounted share, in most cases the time  
> stamps are not preserved. I see this with "cp -p" and the GNOME  
> commander file-manager and with various combinations of Linux clients  
> and samba servers:
> with Linux kernels 2.6.28 and 2.6.29, samba 3.2.7 on an IBM SoFS  
> system (kind of huge NAS which we are about to release upon our  
> university staff/students), samba 3.0.25 on an own NAS box (Acer  
> EasyStore) and samba 3.3.4 on my Linux machines themselves. The  
> problem seems to occur only with enabled CIFS Unix Extensions.
> 
> I have searched in the net and the cifs archives and saw that this  
> type of error was already discussed and repaired several times in  
> recent years. I have found also two test programs in the archives with  
> which I can show the error in some of the above mentioned cases. As I  
> said it does not occur in every case which makes it kind of difficult  
> to diagnose.
> 
> What I read in the old discussions is that this issue happens in cases  
> where file attributes (incl. timestamps) are set on open files and the  
> subsequent file close resets them again somehow.
> 
> Let me know if I can help with specific tests on my systems. I have,  
> however, the feeling that is not difficult to reproduce the error in  
> other environments, too.
> 
> Best Regards,
> 
> Jochen Roderburg

have checked that against samba 3.3.x and most recent 3.4.x.
Your problem is reproducible in both versions - looks like a
samba server bug (as seen from wireshark traces and debug logs).
Please file a bug report on https://bugzilla.samba.org/

Cheers, Günter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.