issue:
on my system i have 2 entries for /, one with the type ‘rootfs’ and a 2nd one
with the type ‘btrfs’. find_mount_root() uses the first one and reports a fail.
My change:
if (longest_matchlen < len) {
into:
if (longest_matchlen <= len) {
i have not tested this, but in my understanding it will use the last longest
match instead of the first.
I have no idea if this rootfs entry is normal nor if its always there before the
‘proper’ one.
These are the 2 entries in my mount list:
rootfs / rootfs rw 0 0
/dev/sda2 / btrfs rw,noatime,ssd,noacl,space_cache 0 0
Hope this helps,
Remco--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html