support for mounting md(4) based filesystem at boot [PATCHES]

Daniel C. Sobral dcs at
Thu Jul 10 13:23:28 PDT 2003

Andrew Kenneth Milton wrote:
> +-------[ Poul-Henning Kamp ]----------------------
> |
> | I think we need somebody to reconsider how we configure our filesystems
> | in the future, in order to avoid a confusion of config files whose
> | interrelationship users will have no chance of figuring out.
> | 
> | We have CCD, GBDE, MD and in the future likely other technologies for
> | configuring the underlying devices, we have FSCK, UFS and NFS and
> | other filesystems to mount.
> | 
> | Somebody must be able to come up with some creative stuff here... ?
> We want ....
> Ni! Ni! Ni! Ni! Ni! Ni!

Bah. Add a prerequisites field to fstab with all the filesystems that 
must be mounted before that one can be mounted.

Then just teach mountlocal and mountremote to iterate mounting until no 
new filesystems can be mounted.

Maybe we should add a "remote" flag to fstab, and make the rc.d script 
read fstab itself instead of relying on mount to know which filesystems 
are local and which are remote. The rc.d scripts can then extract that 
info and benefit from it in two ways:

1) It will know which filesystems can be mounted before network, and 
which require network.
2) The filesystems themselves could be used in BEFORE or REQUIRE.


Either rcorder gets taught about this improved fstab, or we would have 
to add a program that reads fstab and then generates rc.d scripts as 
appropriate. Not sure I like the latter, but it has the advantage of 
keeping rcorder simple.

Just food for thought.

Daniel C. Sobral                   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
VIVO Centro Oeste Norte
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: Daniel.Capo at
         Daniel.Sobral at
         dcs at

	dcs at
	dcs at
	capo at

Love means having to say you're sorry every five minutes.

More information about the freebsd-current mailing list