Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2001 16:20:36 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Dima Dorfman <dima@unixfreak.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, mi@aldan.algebra.com, Poul-Henning Kamp <phk@critter.freebsd.dk>
Subject:   Re: cvs commit: src/sys/i386/conf GENERIC
Message-ID:  <XFMail.010130162036.jhb@FreeBSD.org>
In-Reply-To: <20010130233320.C589C3E02@bazooka.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 30-Jan-01 Dima Dorfman wrote:
>> >Mount_mfs needs to be changed to use md? To somehow make those entries
>> >in fstab:
>> >
>> >    /dev/ad0s2b /tmp mfs rw,async,noatime
>> >
>> >work properly. The md-creation script provided in the md(4)
>> >should happend automagicly, perhaps. Respectfully,
>> 
>> I respectfully disagree.  Those entries are just about as
>> bogus as can be.  They should die. [*]
>> 
>> If anybody writes a patch to mdconfig to DTRT based on some
>> less bogus /etc/fstab entries, I'll happily review and commit it.
> 
> Does this sort of functionality really belong in mdconfig?  It seems a
> little odd to add quite a bit of new code to perform a single task
> (i.e., it would never be used by other tasks performed by the
> program).  Among other things, it would obviously need to read fstab,
> then do the equivilent of disklabel and newfs.  At least this is what
> I think mount_mfs does.  I'm assuming you're talking about adding a
> "mdconfig -z" (or something) to do the `mount -a` equivilent, but for
> md entries.
> 
> Am I missing something?  It sounds like adding something to /etc/rc or
> a new mount_md program/script would be much easier (and more resistant
> to other changes in the system).
> 
> Whatever the consensus is, I'd be happy to implement it.  I'd just
> rather find out exactly what's needed than do something and have
> someone tell me that it should've been implemented elsewhere.

How about this: for /etc/fstab:

/dev/md0        /tmp    mfs     rw      0       0

Have mount_mfs be a suitable script or program that will create /dev/md0
as a swap-backed md(4) and then disklabel, newfs, and mount it.
Alternatively, use some other file (/dev/md.conf?) to setup the various
md(4) devices early on before mount mfs file systems, and have mount_mfs
just perform the disklabel, newfs, and mount portions.

> Regards
> 
>                                       Dima Dorfman
>                                       dima@unixfreak.org

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010130162036.jhb>