<p><br>
On May 27, 2011 5:50 AM, &quot;Douglas Clowes&quot; &lt;<a href="mailto:dclowes1@optusnet.com.au">dclowes1@optusnet.com.au</a>&gt; wrote:<br>
&gt;<br>
&gt; On 2011-05-27 05:37, Craig Huff wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; the mythtv wiki has good info on XFS,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m afraid I didn&#39;t make myself clear. My video drives are all formatted with Journalling File System (JFS), _not_ XFS.<br>
&gt;&gt;<br>
&gt;&gt; Can anyone answer any of the questions I raised in my last post in this thread? Sorry, not to restate them, but I don&#39;t have the dexterity (or is it the patience?) to do cut &amp; paste in Android email.<br>

&gt;&gt;<br>
&gt;&gt; Craig.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mythtv-users mailing list<br>
&gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;<br>
&gt; Gee Craig, I picked that up and I wasn&#39;t even paying attention. So it must have been at least a little bit clear.<br>
&gt;<br>
&gt; The program filefrag can give an indication of file fragmentation. Works on XFS and EXT, so probably works on JFS. Try it.<br>
&gt;<br>
&gt; For example, to find the topp 100 fragmented files over 1G:<br>
&gt;<br>
&gt; # find /storage/mythtv  -type f -size +1G -exec filefrag {} \; | sort -t: -nk2 | tail -n100<br>
&gt;<br>
&gt; and &quot;if it aint broke, don&#39;t fix it&quot;!<br>
&gt;<br>
&gt; If you have one or more heavily fragmented files, according to your taste/laziness, I have a remap.sh script that I use when xfs_fsr doesn&#39;t do the job on my heavily fragmented and very full disks:<br>
&gt;<br>
&gt; #!/bin/bash<br>
&gt; file=&quot;$*&quot;<br>
&gt; if [ ! -e &quot;${file}&quot; ]<br>
&gt; then<br>
&gt;   echo &quot;\&quot;${file}\&quot; does not exist&quot;<br>
&gt;   exit 1<br>
&gt; fi<br>
&gt; echo &quot;\&quot;${file}\&quot;&quot;<br>
&gt; #ls -lh &quot;${file}&quot;<br>
&gt; old_size=`ls -ld ${file} | cut -d &#39; &#39; -f 5`<br>
&gt; old_frag=&quot;`filefrag &quot;${file}&quot; | cut -d &#39;:&#39; -f 2 | cut -d &#39; &#39; -f 2`&quot;<br>
&gt; old_rate=`expr $old_size \/ $old_frag`<br>
&gt; mv &quot;${file}&quot; &quot;${file}.bck&quot;<br>
&gt; cp -a &quot;${file}.bck&quot; &quot;${file}&quot;<br>
&gt; #ls -lh &quot;${file}&quot;<br>
&gt; new_size=`ls -ld ${file} | cut -d &#39; &#39; -f 5`<br>
&gt; new_frag=&quot;`filefrag &quot;${file}&quot; | cut -d &#39;:&#39; -f 2 | cut -d &#39; &#39; -f 2`&quot;<br>
&gt; new_rate=`expr $new_size \/ $new_frag`<br>
&gt; echo &quot;${old_size} =&gt; ${new_size} bytes&quot;<br>
&gt; echo &quot;${old_frag} =&gt; ${new_frag} extents&quot;<br>
&gt; echo &quot;${old_rate} =&gt; ${new_rate} ratio&quot;<br>
&gt; echo &quot;diff \&quot;${file}\&quot; \&quot;${file}.bck\&quot;&quot;<br>
&gt; echo &quot;ls -l \&quot;${file}\&quot; \&quot;${file}.bck\&quot;&quot;<br>
&gt; echo &quot;rm -i \&quot;${file}.bck\&quot;&quot;<br>
&gt;<br>
&gt; This renames the file to &lt;name&gt;.bck, copies it back to the original file, shows you how it went and gives you a selection of commands. Your level of paranoia will determine whether you compare the files, &quot;ls -l&quot; them or just remove the original file.<br>

&gt;<br>
&gt; As usual on linux, there are at least sixteen ways to do anything - this has been one of them.<br>
&gt;<br>
&gt; And, as for the DMA timeout - sorry, can&#39;t help you :(<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Douglas</p>
<p>Douglas,<br>
Thanks for your advice. Shiny new tools to try!  :-)</p>
<p>Craig.<br>
</p>