Yes, with pmount 0.9.14-1, I see this problem.

  psychosis:~$ uname -a
  Linux psychosis 2.6.20.4 #1 SMP Wed Mar 28 13:59:31 EDT 2007 x86_64 GNU/Linux
  psychosis:~$ zgrep CONFIG_SYSFS_DEPRECATED /proc/config.gz 
  # CONFIG_SYSFS_DEPRECATED is not set

The "bus" attribute is never filled in the sysfs_device structure, as
indicated by the debug logs posted by BenoƮt -- note the "bus )" in
the find_bus_ancestry errors.  So pmount never realizes that the device is 
a USB disk.

The problem seems to be in libsysfs2.  The call "sysfs_get_device_bus(dev)" 
in "sysfs_open_device_path()" fails, and so the bus never gets filled.

This seems like it may be related to this changelog entry in libsysfs2

11/28/2005 - Kay Sievers <[EMAIL PROTECTED]>
                * Remove stale brute force code to determine device's
                        bus and device's driver

There was a similar entry in libsysfs1

05/31/2005 - Ananth Mavinakayanahalli <[EMAIL PROTECTED]>
                * Simplify sysfs_get_device_bus() now that we
                        have the "bus" symlink under the device dirs

With "CONFIG_SYSFS_DEPRECATED not set", the "bus" symlink does not exist!
So these changes appear bad.

Here is one of the offending commits:
 
http://linux-diag.cvs.sourceforge.net/linux-diag/sysfsutils/lib/sysfs_device.c?r1=1.2.2.4&r2=1.2.2.5&pathrev=sysfsutils-2_1_0-rc

-jim

Reply via email to