]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r330745:
authorian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 20 Mar 2018 22:57:14 +0000 (22:57 +0000)
committerian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 20 Mar 2018 22:57:14 +0000 (22:57 +0000)
commitb4d124d42116770d78ee62e98a2719a113fd613e
tree2ab7fb37ddee493041bae647d84e88f22b22d3ef
parentd0c5edb935d8263dbb000edc103266959ecbcb6f
MFC r330745:

Make root mount timeout logic work for filesystems other than ufs.

The vfs.mountroot.timeout tunable and .timeout directive in a mount.conf(5)
file allow specifying a wait timeout for the device(s) hosting the root
filesystem to become usable.  The current mechanism for waiting for devices
and detecting their availability can't be used for zfs-hosted filesystems.
See the comment #20 in the PR for some expanded detail on these points.

This change adds retry logic to the actual root filesystem mount.  That is,
insted of relying on device availability using device name lookups, it uses
the kernel_mount() call itself to detect whether the filesystem can be
mounted, and loops until it succeeds or the configured timeout is exceeded.

These changes are based on the patch attached to the PR, but it's rewritten
enough that all mistakes belong to me.

PR: 208882

git-svn-id: svn://svn.freebsd.org/base/stable/10@331276 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/vfs_mountroot.c