On Tue, Mar 15, 2016 at 12:38:10AM +0100, Ruediger Meier wrote: > On Monday 14 March 2016, George Spelvin wrote: > > Thanks for the help. I don't quite understand the structure of > > libmount well enough to know where a fix *should* go. > > > > > Can you send me your /proc/self/mountinfo? (or at least root fs > > > entry from the file) > > > 12 0 3:2 / / rw,relatime - ext4 /dev/root > > [...] > > Maybe it's not related but I've noticed a similar issue where > getmntent() was not able to parse long lines in /proc/mounts. It was > with musl and I've asked there > http://permalink.gmane.org/gmane.linux.lib.musl.general/9548 > > I've got no reply, so maybe it was a stupid question and we are doing > something wrong ;) The problem in this case is /dev/root, libmount tries to convert it to the real device name by root= command line option, but the conversion is pretty poor and it does not support all relevant use-cases. I'll try to improve it. It also seems that in many cases (except btrfs) we can follow maj:min from mountinfo entry rather than parse the complicated root= option. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html