<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx</link><description>It just writes data.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10352994</link><pubDate>Tue, 25 Sep 2012 12:37:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10352994</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;TeraCopy does create some checksum for each file it copies/moves.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10352994" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10352788</link><pubDate>Mon, 24 Sep 2012 19:03:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10352788</guid><dc:creator>Pentium100</dc:creator><description>&lt;p&gt;There was a bug in Server 2003 that corrupted files written to shared folders (corrupts on receive). After that, I started using a program that verifies copied files.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10352788" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10351866</link><pubDate>Fri, 21 Sep 2012 09:22:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10351866</guid><dc:creator>Danny</dc:creator><description>&lt;p&gt;&amp;quot;If the call succeeds, am I guaranteed that the data was copied successfully?&amp;quot;&amp;lt;/quote&amp;gt;&lt;/p&gt;
&lt;p&gt;Answer : NO!! No one will ever guarantee that..ever. Why? Liability. Q.E.D.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10351866" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10351738</link><pubDate>Thu, 20 Sep 2012 21:40:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10351738</guid><dc:creator>Timothy Byrd</dc:creator><description>&lt;p&gt;At a previous company, I was responsible for putting the demo version of our product on our web site.&lt;/p&gt;
&lt;p&gt;One day, we started getting complaints that the demo would not install.&lt;/p&gt;
&lt;p&gt;My copy of the installer worked, but the copy I downloaded from our site was corrupted, so I re-uploaded.&lt;/p&gt;
&lt;p&gt;After that, I downloaded again - the file was still corrupted, but differently.&lt;/p&gt;
&lt;p&gt;I tried downloading the file several times in succession, and each copy was slightly different.&lt;/p&gt;
&lt;p&gt;I called into hosting provider for support, and the kid who answered said he&amp;#39;d rebuilt the kernel on the server to make downloads more efficient...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10351738" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10351694</link><pubDate>Thu, 20 Sep 2012 19:43:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10351694</guid><dc:creator>satan</dc:creator><description>&lt;p&gt;SATA error are written to event viewer instead of propagated back in function calls.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10351694" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10351603</link><pubDate>Thu, 20 Sep 2012 15:24:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10351603</guid><dc:creator>JamesJohnston</dc:creator><description>&lt;p&gt;I once had a network card whose default network drivers bundled on the Windows 95 CD would randomly fail to verify checksums when the card was under load, and pass along corrupt data as if it was correct. &amp;nbsp;That was fun to figure out. &amp;nbsp;Fix was to install newer drivers from the vendor since the ones on the Win95 CD turned out to be junk. &amp;nbsp;I even think there was an MSKB article about this but I can&amp;#39;t remember.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10351603" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10351576</link><pubDate>Thu, 20 Sep 2012 13:48:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10351576</guid><dc:creator>Crescens2k</dc:creator><description>&lt;p&gt;@Gabe&lt;/p&gt;
&lt;p&gt;Of course, if you look at the frequency of corrupt data you actually get then it makes you wonder if how much of an impact those numbers have in real life.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t remember getting a corrupt file that could be blamed on the network from the internet in the last year (the corrupt files that I have received could be accounted to something else, like a congested server truncating files or the owner the broadband hardware doing maintenance and that caused all of the users to have problems for a few minutes).&lt;/p&gt;
&lt;p&gt;My LAN has had an even better track record, I have never had a corrupt file transfered over this network at all, and it has been active for years. So if this &amp;quot;one packet in 10 billion&amp;quot; ends up with you never getting an error on a LAN or only around one filea year from the internet being corrupt, then I don&amp;#39;t see why you are making such a fuss.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10351576" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10351563</link><pubDate>Thu, 20 Sep 2012 13:02:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10351563</guid><dc:creator>Gabe</dc:creator><description>&lt;p&gt;Ian: They say: &amp;quot;After eliminating those errors that the checksum always catches, the data suggests that, on average, between one packet in 10 billion and one packet in a few millions will have an error that goes undetected.&amp;quot;&lt;/p&gt;
&lt;p&gt;They do NOT talk about there having to be an error in the first place. Even so, there are over 15 hops between me and this blog site (just to take an arbitrary example), at least one of which is a wireless link over unregulated frequencies (WiFi).&lt;/p&gt;
&lt;p&gt;If errors were uniformly distributed, maybe you can assume they will be rare. However, that&amp;#39;s not the case: some links are just more error-prone than others, whether it&amp;#39;s a bad hardware, buggy software, or EMI. The more hops there are between two hosts, the more likely that one of them will be over one of those bad links, which drastically increases the odds of undetected errors.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10351563" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10351331</link><pubDate>Thu, 20 Sep 2012 10:06:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10351331</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;@Gabe:&lt;/p&gt;
&lt;p&gt;The checksums in Network protocols are designed to detect common network bitpattern errors, they are not designed to detect all accidental damage caused on the network, and don&amp;#39;t even try to prevent malicious damage caused on the network. &lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t like TCP&amp;#39;s checksum, you can always upgrade it using the TCP-Alternative-Checksum-Request TCP Option. Alternatively, you should probably be using SMB or IPSec for your traffic, both of which upgrade their checksums to cryptographic hashes and make your file unreadable and tamper-proofed from evil people sitting on your network.&lt;/p&gt;
&lt;p&gt;But CopyFile won&amp;#39;t do that for you. CopyFile just hands the bytes off to the filesystem driver, who will hand them off to the network driver. What the network driver chooses to do with those bytes is up to it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10351331" width="1" height="1"&gt;</description></item><item><title>re: Does the CopyFile function verify that the data reached its final destination successfully?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/09/19/10350645.aspx#10351306</link><pubDate>Thu, 20 Sep 2012 09:46:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10351306</guid><dc:creator>AC</dc:creator><description>&lt;p&gt;I once tried copying several large files over a WLAN network (desktop and laptop in the same room!) simply by using explorer and shared folders. My reasoning was that as the wireless reception was near perfect and TCP/IP has the mentioned checksums, this should work without problems.&lt;/p&gt;
&lt;p&gt;But after several tries, the files always came out corrupted. I&amp;#39;m still not sure why the TCP/IP checksumming didn&amp;#39;t prevent this to happen almost predictably.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10351306" width="1" height="1"&gt;</description></item></channel></rss>