[daniel.serpell@aplik.cl: Bug#294033: hal: usb zip drives are incorrectly named.]

Sjoerd Simons sjoerd at luon.net
Tue Feb 8 03:17:35 PST 2005


I've got the patch below from a debian user. Unfortunately i don't have a ZIP
drive, so could someone check if it's correct in all cases ? (David?)

----- Forwarded message from Daniel Serpell <daniel.serpell at aplik.cl> -----

Date: Mon, 07 Feb 2005 10:59:38 -0300
From: Daniel Serpell <daniel.serpell at aplik.cl>
Subject: Bug#294033: hal: usb zip drives are incorrectly named.
To: Debian Bug Tracking System <submit at bugs.debian.org>
Reply-To: Daniel Serpell <daniel.serpell at aplik.cl>, 294033 at bugs.debian.org
X-Mailer: reportbug 3.7.1

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 -->


  Sjoerd
-- 
Did you hear that two rabbits escaped from the zoo and so far they have
only recaptured 116 of them?
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list