<?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>Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx</link><description>It was incorrect somewhere.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10226363</link><pubDate>Mon, 17 Oct 2011 09:34:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10226363</guid><dc:creator>Someone</dc:creator><description>&lt;p&gt;@Evan: I found a better explanation here: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ee240893%28v=VS.85%29.aspx"&gt;msdn.microsoft.com/.../ee240893%28v=VS.85%29.aspx&lt;/a&gt;. &amp;quot;When a commit occurs, TxF first flushes all undo information, then flushes the actual file changes, and then writes and flushes a commit record.&amp;quot; etc etc&lt;/p&gt;
&lt;p&gt;So yes, TxF not only provides isolation of ongoing modifications but also ensures the persistence of commits.&lt;/p&gt;
&lt;p&gt;&amp;quot;Forcing a flush from a GUI standpoint on *removable file system* is NOT a bad idea.&amp;quot; I also think so because this would perform better than doing all operations with a disabled write cache.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10226363" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10225841</link><pubDate>Sun, 16 Oct 2011 06:43:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10225841</guid><dc:creator>Klimax</dc:creator><description>&lt;p&gt;@foo.bar:&lt;/p&gt;
&lt;p&gt;What bug? Error in error message? (passing internal error)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10225841" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10225779</link><pubDate>Sat, 15 Oct 2011 21:40:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10225779</guid><dc:creator>foo.bar</dc:creator><description>&lt;p&gt;A bug the Windows team never bothered to fix&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10225779" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10225681</link><pubDate>Sat, 15 Oct 2011 14:06:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10225681</guid><dc:creator>640k</dc:creator><description>&lt;p&gt;Forcing a flush from a GUI standpoint on *removable file system* is NOT a bad idea.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10225681" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10225657</link><pubDate>Sat, 15 Oct 2011 11:21:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10225657</guid><dc:creator>Evan</dc:creator><description>&lt;p&gt;@Someone: If NTFS transactions *don&amp;#39;t* flush to disk (or at least have that as an option), I would view that as a major problem. Maybe I&amp;#39;m too much in a database mindset, but to me, &amp;quot;transaction&amp;quot; (at least in the context of disk operations) means ACID. If you lack a flush you don&amp;#39;t even really get isolation, because if it crashes in the middle than a process that starts after the restart isn&amp;#39;t isolated from the intermediate changes; for this among other reasons, IMO transactions without ACID buy very little. (Exception: the OS says &amp;quot;transaction committed!&amp;quot; but it is not flushed to disk. A crash happens. The state of the system after boot is in the pre-transaction state. This isn&amp;#39;t ideal, but it&amp;#39;s pretty good as long as if you want durability, you can stick a flush inside your txn.)&lt;/p&gt;
&lt;p&gt;Fortunately, &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/magazine/cc163388.aspx"&gt;msdn.microsoft.com/.../cc163388.aspx&lt;/a&gt; indicates that it&amp;#39;s ACID: &amp;quot;When I say transacted file operations, I am talking about transactions with fully ACID semantics&amp;quot;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10225657" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10225515</link><pubDate>Fri, 14 Oct 2011 21:59:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10225515</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;Can&amp;#39;t send mail to user: not a typewriter&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10225515" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10225156</link><pubDate>Fri, 14 Oct 2011 08:48:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10225156</guid><dc:creator>Someone</dc:creator><description>&lt;p&gt;@Gabe: I&amp;#39;m not sure if 640k is talking about the fact that NTFS is a journaling file system since it was invented (which only protects metadata), or about the transactional support added with Vista that allows commit/rollback of file operations like a database. (I would not consider something introduced in Vista as being existent &amp;quot;for many years&amp;quot;.)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also not sure, if committing a transactional file operations really means that all data related to that operations (metadata and filedata) are flushed to disks during the commit. I see this file transactions only as a form of isolation: Other processes will see the transacted changes all at once, or never, but no intermediate changes.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10225156" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10224972</link><pubDate>Thu, 13 Oct 2011 23:33:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10224972</guid><dc:creator>alegr1</dc:creator><description>&lt;p&gt;&amp;quot;It finished writing the last byte. As far as the file copy is concerned, it&amp;#39;s done. (Forcing a flush is in general a bad idea.) -Raymond&amp;quot;&lt;/p&gt;
&lt;p&gt;In Vista+,if you copy a large file to a USB drive, and want to cancel operation, you may have to wait for long time. Because it&amp;#39;s in overlapped mode, not cached, and has enormous amount of pending write IOs which are not cancelable. It doesn&amp;#39;t need flush. Don&amp;#39;t remember if Win7SP1 has it fixed.&lt;/p&gt;
&lt;p&gt;But in older OSes, when the lazy write was used, it was making total sense to limit amount of dirty data for 1 seconds of writes worth, or so.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10224972" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10224959</link><pubDate>Thu, 13 Oct 2011 23:06:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10224959</guid><dc:creator>Gabe</dc:creator><description>&lt;p&gt;640k: Transactions in NTFS are optional; they have to be initiated by the application. Even so, transactions ensure that data is not corrupt, not missing. In other words, the data will all be there (committed) or all missing (rolled back).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10224959" width="1" height="1"&gt;</description></item><item><title>re: Why does copying a file to my USB thumb drive say that the parameter is incorrect?</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2011/10/11/10222996.aspx#10224943</link><pubDate>Thu, 13 Oct 2011 22:42:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10224943</guid><dc:creator>640k</dc:creator><description>&lt;p&gt;ntfs has been a transactional file system for many years. Not a single byte should be corrupt or missing, it should be foolproof.&lt;/p&gt;
&lt;p&gt;Wby does the copy dialog disappear (or indicate operation finished) before a copy operation is flushed on a removable file system?&lt;/p&gt;
&lt;div class="post"&gt;[&lt;i&gt;It finished writing the last byte. As far as the file copy is concerned, it&amp;#39;s done. (Forcing a flush is in general &lt;a href="http://blogs.msdn.com/b/oldnewthing/archive/2010/09/09/10059575.aspx"&gt;a bad idea&lt;/a&gt;.) -Raymond&lt;/i&gt;]&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10224943" width="1" height="1"&gt;</description></item></channel></rss>