Mounting Hotplugged Devices without "sync"
If writing to USB storage devices, such as USB sticks or USB hard drives, is rather slow or if you do not want synchronized writing to these devices, disable the sync mount option.
Create a file with the name 90-storage-nosync.fdi and the following contents:
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<!-- disable sync for mount -->
<match key="block.is_volume" bool="true">
<match key="volume.fsusage" string="filesystem">
<match key="volume.uuid" string="UUID">
<merge key="volume.policy.mount_option.sync" type="bool">false</merge>
</match>
</match>
</match>
</device>
</deviceinfo>
Adjust the line <match key="volume.uuid" string="==UUID=="> according to your hardware. Run lshal to retrieve the volume.uuid and enter that ID instead of ==UUID==
Copy 90-storage-nosync.fdi into this directory:
cp 90-storage-nosync.fdi /usr/share/hal/fdi/policy/20thirdparty
Restart the HAL service with rchal restart.
这是 Relase Notes 里面的一段。可能在这种非同步模式下,需要“安全删除”。 |