[Bug 237517] ZFS parallel mounting sometimes misses mounting intermediate filesystems

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 18 02:35:45 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237517

--- Comment #14 from fullermd at over-yonder.net ---
Well, I spent some time looking at it.  The source of the issue winds up being
how the FS's are sorted and fed into the parallel mounting.  Because the list
winds up being "/x/y/z /x/y/z /x/y/z/a [...]", the first /x finds out that the
second is not one of its descendents, so assumes it has nothing else to do in
that branch.  Meanwhile, the higher level also skips it in weird ways.  I'm a
little unsure why it's not deterministic, but...

Anyway, I worked up a patch that seems like it should fix it, and in testing
I'm no longer able to reproduce it.  Then I made the mistake of going over to
look at ZoL, to see if they'd seen anything similar and had near-enough code
for it to apply there.  And it turns out they actually applied a slightly
different (but I think semantically equivalent) fix, for what looks like
slightly different symptoms, just last week.  With their patch, I'm also unable
to reproduce it.

So, see
https://github.com/zfsonlinux/zfs/commit/ab5036df1ccbe1b18c1ce6160b5829e8039d94ce#diff-13df3dd8690ce1edf20baa129b4e9608

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list