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

The FDI rule that detects USB ZIP drive and names the mountpoint is
incorrectly write, so partitioned ZIP's are named generically.

The attached patch fixes the test (lookup in the parent of the
partition).

--- 90defaultpolicy/storage-policy.fdi.orig  2005-01-31 21:10:50 -0300
+++ 90defaultpolicy/storage-policy.fdi       2005-01-31 21:13:17 -0300
@@ -119,8 +119,8 @@
          <append key="volume.policy.desired_mount_point" 
type="string">disk</append>

          <!-- zip drives -->
-         <match key="storage.drive_type" string="zip">
-          <merge key="storage.policy.desired_mount_point" 
type="string">zip</merge>
+         <match key="@block.storage_device:storage.drive_type" string="zip">
+          <merge key="volume.policy.desired_mount_point" 
type="string">zip</merge>
          </match>

           <!-- Best: If available use filesystem label -->

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages hal depends on:
ii  adduser                     3.59         Add and remove users and groups
ii  dbus-1                      0.23-1       simple interprocess messaging syst
ii  dbus-glib-1                 0.23-1       simple interprocess messaging syst
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libcap1                     1:1.10-14    support for getting/setting POSIX.
ii  libexpat1                   1.95.8-1     XML parsing C library - runtime li
ii  libglib2.0-0                2.6.2-1      The GLib library of C routines
ii  libhal-storage0             0.4.7-1      Hardware Abstraction Layer - share
ii  libhal0                     0.4.7-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.051-1      /dev/ management daemon
ii  usbutils                    0.70-1       USB console utilities

-- no debconf information
--- /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi.orig  2005-01-31 
21:10:50.000000000 -0300
+++ /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi       2005-01-31 
21:13:17.000000000 -0300
@@ -119,8 +119,8 @@
          <append key="volume.policy.desired_mount_point" 
type="string">disk</append>
 
          <!-- zip drives -->
-         <match key="storage.drive_type" string="zip">
-          <merge key="storage.policy.desired_mount_point" 
type="string">zip</merge>
+         <match key="@block.storage_device:storage.drive_type" string="zip">
+          <merge key="volume.policy.desired_mount_point" 
type="string">zip</merge>
          </match>
          
           <!-- Best: If available use filesystem label -->

Reply via email to