Date: Mon, 18 Apr 2005 23:27:44 +0200 From: Poul-Henning Kamp <phk@phk.freebsd.dk> To: geom@freebsd.org Subject: KPI for holding off root mounting Message-ID: <2699.1113859664@critter.freebsd.dk>
next in thread | raw e-mail | index | archive | help
This is the new official KPI for holding off root mounts.
It may be relevant to certain types of GEOM classes as well.
Poul-Henning
phk 2005-04-18 21:21:26 UTC
FreeBSD src repository
Modified files:
sys/dev/ata ata-all.c
sys/geom geom_kern.c
sys/kern vfs_mount.c
sys/sys systm.h
Log:
Add a named reference-count KPI to hold off mounting of the root filesystem.
While we wait for holds to be released, print a list of who holds us
back once per second.
Use the new KPI from GEOM instead of vfs_mount.c calling g_waitidle().
Use the new KPI also from ata.
With ATAmkIII's newbusification, ata could narrowly miss the window
and ad0 would not exist when we tried to mount root.
Revision Changes Path
1.243 +3 -0 src/sys/dev/ata/ata-all.c
1.38 +6 -0 src/sys/geom/geom_kern.c
1.189 +49 -6 src/sys/kern/vfs_mount.c
1.232 +7 -0 src/sys/sys/systm.h
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2699.1113859664>
