Package: hal
Version: 0.5.8.1-9
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please add support for fuse mounts, on ubuntu there is..

i found a patch for add this support... (it is attachet)

Thanks,
Thomas

- -- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (900, 'stable'), (800, 'testing'), (700, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages hal depends on:
ii  adduser                   3.102          Add and remove users and groups
ii  dbus                      1.0.2-1        simple interprocess messaging syst
ii  libc6                     2.3.6.ds1-13   GNU C Library: Shared libraries
ii  libdbus-1-3               1.0.2-1        simple interprocess messaging syst
ii  libdbus-glib-1-2          0.71-3         simple interprocess messaging syst
ii  libexpat1                 1.95.8-3.4     XML parsing C library - runtime li
ii  libglib2.0-0              2.12.4-2       The GLib library of C routines
ii  libhal-storage1           0.5.8.1-9      Hardware Abstraction Layer - share
ii  libhal1                   0.5.8.1-9      Hardware Abstraction Layer - share
ii  libusb-0.1-4              2:0.1.12-5     userspace USB programming library
ii  libvolume-id0             0.105-4        libvolume_id shared library
ii  lsb-base                  3.1-23.1       Linux Standard Base 3.1 init scrip
ii  pciutils                  1:2.2.4~pre4-1 Linux PCI Utilities
ii  udev                      0.105-4        /dev/ and hotplug management daemo
ii  usbutils                  0.72-7         USB console utilities

Versions of packages hal recommends:
ii  eject                         2.1.4-3    ejects CDs and operates CD-Changer

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGG7ojryk5AcCKK8ERAgCHAJ4oq+TOaCHcNs/h0m+VvuHfWA6rhgCff/6+
xhvdNNglkuIMvuJv1IY6vA0=
=wa0B
-----END PGP SIGNATURE-----
diff -Nur hal-0.5.7.1/build-tree/hal-0.5.7.1/hald/linux2/blockdev.c hal-0.5.7.1.new/build-tree/hal-0.5.7.1/hald/linux2/blockdev.c
--- hal-0.5.7.1/hald/linux2/blockdev.c	2006-10-04 20:00:09.000000000 +0200
+++ hal-0.5.7.1/hald/linux2/blockdev.c	2006-10-04 20:16:52.000000000 +0200
@@ -205,10 +205,11 @@
 	while ((mnte = getmntent_r (f, &mnt, buf, sizeof(buf))) != NULL) {
 		struct stat statbuf;
 
-		/* check the underlying device of the mount point */
-		if (stat (mnt.mnt_dir, &statbuf) != 0)
+		/* get major:minor of special device file */
+		if (stat (mnt.mnt_fsname, &statbuf) != 0)
 			continue;
-		if (major(statbuf.st_dev) == 0)
+
+		if (major (statbuf.st_rdev) == 0)
 			continue;
 
 		HAL_INFO (("* found mounts dev %s (%i:%i)", mnt.mnt_fsname, major(statbuf.st_dev), minor(statbuf.st_dev)));
@@ -224,7 +225,7 @@
 			devt = makedev(major, minor);
 			HAL_INFO (("  match %s (%i:%i)", hal_device_get_udi (dev), major, minor));
 
-			if (statbuf.st_dev == devt) {
+			if (statbuf.st_rdev == devt) {
 				/* found entry for this device in /proc/mounts */
 				device_property_atomic_update_begin ();
 				hal_device_property_set_bool (dev, "volume.is_mounted", TRUE);

Reply via email to