Hello,

after some digging I think I found the problem in the function
sysfs_get_device_parent() of libsysfs1. If called by pmount it alway
returns NULL.

I think this is because it tries to get the parent by removing the
last part of the pathname. To make sure that it really gets a device
it checks for the presence of "/detach_state". But there is no file
called detach_state in my entire /sys! Maybe this is somehow related
to http://lkml.org/lkml/2005/5/17/234 .

And here for reference the code libsysfs is executing
(sysfs_device.c:610):
| /*
|  * All "devices" have the "detach_state" attribute - validate here
|  */
| safestrcat(ppath, "/detach_state");
| if ((sysfs_path_is_file(ppath)) != 0) {
|       dprintf("Device at %s does not have a parent\n", dev->path);
|       return NULL;
| }


Daniel

Attachment: signature.asc
Description: Digital signature

Reply via email to