jcnelson / vdev

A device-file manager for *nix
GNU General Public License v3.0
101 stars 13 forks source link

sysfs mount name #24

Closed fbt closed 9 years ago

fbt commented 9 years ago

When you are scanning for sysfs, you expect the sysfs mount to be named 'sysfs' and nothing else. Maybe search for the sysfs mount type instead?

jcnelson commented 9 years ago

Yeah, ideally the code would use getmntent_r(3) instead of directly parsing /proc/mounts (wish I'd known about this function sooner). Let me see what I can do...

jcnelson commented 9 years ago

Should be fixed as of 9a6fea7c2596359bbb92b073e1308a31a5f54bd6.

fbt commented 9 years ago

Yep, works now. Thanks!