From owner-cvs-all Tue Jan 30 16:21:10 2001 Delivered-To: cvs-all@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 3B46237B69C; Tue, 30 Jan 2001 16:20:46 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f0V0FL389217; Tue, 30 Jan 2001 16:15:21 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010130233320.C589C3E02@bazooka.unixfreak.org> Date: Tue, 30 Jan 2001 16:20:36 -0800 (PST) From: John Baldwin To: Dima Dorfman Subject: Re: cvs commit: src/sys/i386/conf GENERIC Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, mi@aldan.algebra.com, Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -- 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