<div>yes, thats the only approach at the moment which can help. I am doubting the changes related with the disk commit, but I am not sure.</div>
<div> </div>
<div>Thanks,</div>
<div>Amit Sahrawat<br><br></div>
<div class="gmail_quote">On Thu, Dec 2, 2010 at 9:26 AM, Eric Sandeen <span dir="ltr">&lt;<a href="mailto:sandeen@sandeen.net">sandeen@sandeen.net</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On 12/1/10 9:40 PM, Amit Sahrawat wrote:<br>&gt; While the copy operation is in progress, simply unplug the usb device and then replug.<br><br></div>that&#39;s not a simple copy operation either ;)<br>
<div class="im"><br>&gt; The issue can be seen from XFS (2.6.31) onwards, I am trying to figure out the changes between 2.6.30.9 and 2.6.31.<br><br></div>If you have a regression, perhaps you can do:<br><br># git bisect start v2.6.31 v2.6.30 fs/xfs<br>
<br>and methodically test the changes in between.<br><font color="#888888"><br>-Eric<br></font>
<div class="im"><br>&gt; One thing I noticed is - there is difference in speed for 2 versions - in case of 2.6.30.9 if I remove the USB within &#39;5&#39; seconds - I can see the file being created at the destination and some data written, while in case of 2.6.31(onwards), it takes around 20 seconds to get some data to disk.<br>
&gt; I am using MIPS at the moment with VIPT(fixes included)<br>&gt;<br>&gt; Please let me know if this information is useful.<br>&gt;<br>&gt; Thanks,<br>&gt; Amit Sahrawat<br></div>
<div>
<div></div>
<div class="h5">&gt; On Wed, Dec 1, 2010 at 8:25 PM, Eric Sandeen &lt;<a href="mailto:sandeen@sandeen.net">sandeen@sandeen.net</a> &lt;mailto:<a href="mailto:sandeen@sandeen.net">sandeen@sandeen.net</a>&gt;&gt; wrote:<br>
&gt;<br>&gt;     On 12/1/10 1:14 AM, Amit Sahrawat wrote:<br>&gt;     &gt; Dear Member,<br>&gt;     &gt;<br>&gt;     &gt; I am getting following corruption on XFS formatted disk during a simple copy operation:<br>&gt;     &gt; sd 9:0:0:0: Attached scsi removable disk sdc<br>
&gt;     &gt; sd 9:0:0:0: Attached scsi generic sg2 type 0<br>&gt;     &gt; XFS mounting filesystem sdc2<br>&gt;     &gt; Starting XFS recovery on filesystem: sdc2 (logdev: internal)<br>&gt;     &gt; XFS: xlog_recover_process_data: bad transaction<br>
&gt;     &gt; XFS: log mount/recovery failed: error 5<br>&gt;     &gt; XFS: log mount failed<br>&gt;<br>&gt;     hm, that&#39;s not a simple copy operation, that is a mount failing;<br>&gt;     your log appears to be corrupted.<br>
&gt;<br>&gt;     offhand I&#39;m going to blame it on having a write cache enabled<br>&gt;     on your drive, and having barriers either off, or not working<br>&gt;     properly.<br>&gt;<br>&gt;     -Eric<br>&gt;<br>&gt;<br>
<br></div></div></blockquote></div><br>