linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* find_mount_root() issue
@ 2014-08-31  7:37 Remco Hosman - Yerf IT.nl
  2014-08-31  9:41 ` Duncan
  0 siblings, 1 reply; 4+ messages in thread
From: Remco Hosman - Yerf IT.nl @ 2014-08-31  7:37 UTC (permalink / raw)
  To: linux-btrfs

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-02  1:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-31  7:37 find_mount_root() issue Remco Hosman - Yerf IT.nl
2014-08-31  9:41 ` Duncan
2014-09-02  1:33   ` Qu Wenruo
2014-09-02  1:39     ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).