Package: hal
Version: 0.4.8-1
Severity: normal
Tags: patch

A section in the policy file
/usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi
correctly mentions in its comment about the need to mount flash devices with
async and noatime options to avoid wearing out of the flash disks.
However the secion is commented out to have no effect,
and also the boolean value of its sync part is wrong.

The current description is this:
<!-- Mounting with sync wears out flash disk too much, thus disable it by
default
<match key="volume.size" compare_lt="2147483648">
  <match key="@block.storage_device:storage.hotpluggable" bool="true">
    <merge key="volume.policy.mount_option.sync" type="bool">true</merge>
    <merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
  </match>
  <match key="@block.storage_device:storage.removable" bool="true">
    <merge key="volume.policy.mount_option.sync" type="bool">true</merge>
    <merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
  </match>
</match>
-->

This should be corrected like so:

<!-- Mounting with sync wears out flash disk too much, thus disable it by
default -->
<match key="volume.size" compare_lt="2147483648">
  <match key="@block.storage_device:storage.hotpluggable" bool="true">
    <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
    <merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
  </match>
  <match key="@block.storage_device:storage.removable" bool="true">
    <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
    <merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
  </match>
</match>


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-powerpc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages hal depends on:
ii  adduser                     3.64         Add and remove users and groups
ii  dbus-1                      0.23.4-1     simple interprocess messaging syst
ii  dbus-glib-1                 0.23.4-1     simple interprocess messaging syst
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libcap1                     1:1.10-14    support for getting/setting POSIX.
ii  libexpat1                   1.95.8-3     XML parsing C library - runtime li
ii  libglib2.0-0                2.6.5-1      The GLib library of C routines
ii  libhal-storage0             0.4.8-1      Hardware Abstraction Layer - share
ii  libhal0                     0.4.8-1      Hardware Abstraction Layer - share
ii  libpopt0                    1.7-5        lib for parsing cmdline parameters
ii  pciutils                    1:2.1.11-15  Linux PCI Utilities
ii  udev                        0.056-3      /dev/ management daemon
ii  usbutils                    0.70-8       USB console utilities

hal recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to