Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2015 12:15:10 +0100
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        FreeBSD FS <freebsd-fs@freebsd.org>
Subject:   Using vfs.mountroot.timeout for ZFS root pools as well
Message-ID:  <6f5aa0bc.26ef1167@fabiankeil.de>

next in thread | raw e-mail | index | archive | help
--Sig_/LHRR9aimlCuGCJSSjw0JNR5
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On some of my systems booting FreeBSD (and thus ElectroBSD) from a
(geli-encrypted) ZFS rootpool on an USB device does not work without
user interaction because kernel_mount() is called before the USB device
is detected.

The vfs.mountroot.timeout doesn't help because it is ignored for ZFS.

This can be changed without having to figure out the pool layout
by just calling kernel_mount() repeatedly:
https://www.fabiankeil.de/sourcecode/electrobsd/parse_mount-Use-vfs.mountro=
ot.timeout-for-ZFS.diff

As an alternative the retrying could be delegated to kernel_mount().

Any comments on this?

Note that for the boot process on the affected system to work
(with user interaction or with the patch), spa_import_rootpool()
has to properly unlock spa_namespace_lock when failing:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D198563

Fabian

--Sig_/LHRR9aimlCuGCJSSjw0JNR5
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlUKr74ACgkQBYqIVf93VJ1pfQCfflAgApZc8FLXYThly5cp5dA9
gFMAn0WC4ssdGKqFJmNY3GShGjnmKWTf
=6PJh
-----END PGP SIGNATURE-----

--Sig_/LHRR9aimlCuGCJSSjw0JNR5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6f5aa0bc.26ef1167>