[ltp] Bug 105871 - High speed usb storage device with low data rates: sync mounts are very slow

James Knott linux-thinkpad@linux-thinkpad.org
Sat, 04 Mar 2006 16:50:30 -0500


I run SUSE 10 on my ThinkPad R31.  There is a bug with this version of
SUSE, which causes extremely slow writes to USB drives.  There is a
patch available, which corrects this problem, and while it works on my
desktop system, I can't get it to work on my ThinkPad.  Does anyone know
why that might be?  And what a fix might be?  The problem is described
here: <https://bugzilla.novell.com/show_bug.cgi?id=105871>

And the fix I applied is here:

Mounting hotplugged devices without "sync"
-------------------------------------------

If writing to USB storage devices like USB sticks or USB hard drive is
rather slow or if you do not want synchronized writing to these devices,
disable the sync mount option.

1. Create the directory /usr/share/hal/fdi/policy/95userpolicy:

mkdir -p /usr/share/hal/fdi/policy/95userpolicy/

2. Create a file with the name nosync.fdi and the following contents:

vi /usr/share/hal/fdi/policy/95userpolicy/nosync.fdi

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <!-- disable sync for mount -->
    <match key="block.is_volume" bool="true">
      <match key="volume.fsusage" string="filesystem">
        <match key="@info.parent:storage.bus" string="usb">
          <merge key="volume.policy.mount_option.sync"
type="bool">false</merge>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

3. Finally restart the HAL service with

rchal restart



tnx jk