sysfs is deprecated, see in Documentation/sysfs-rules.txt:
- Do not use libsysfs
It makes assumptions about sysfs which are not true. Its API does not
offer any abstraction, it exposes all the kernel driver-core
implementation details in its own API. Therefore it is not better than
reading directories and opening the files yourself.
Also, it is not actively maintained, in the sense of reflecting the
current kernel development. The goal of providing a stable interface
to sysfs has failed; it causes more problems than it solves. It
violates many of the rules in this document.
I plan to rewrite some bits of pmount to drop the dependency on libsysfs, but that won't happen before a while. Until then, there will be no fix for that, unfortunately...
(I'm the current pmount maintainer)
sysfs is deprecated, see in Documentation/ sysfs-rules. txt:
- Do not use libsysfs
It makes assumptions about sysfs which are not true. Its API does not
offer any abstraction, it exposes all the kernel driver-core
implementation details in its own API. Therefore it is not better than
reading directories and opening the files yourself.
Also, it is not actively maintained, in the sense of reflecting the
current kernel development. The goal of providing a stable interface
to sysfs has failed; it causes more problems than it solves. It
violates many of the rules in this document.
I plan to rewrite some bits of pmount to drop the dependency on libsysfs, but that won't happen before a while. Until then, there will be no fix for that, unfortunately...