From owner-freebsd-current Tue Mar 10 01:50:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA24773 for freebsd-current-outgoing; Tue, 10 Mar 1998 01:50:22 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA24766 for ; Tue, 10 Mar 1998 01:50:17 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id BAA06902; Tue, 10 Mar 1998 01:46:51 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd006900; Tue Mar 10 01:46:41 1998 Date: Tue, 10 Mar 1998 01:42:22 -0800 (PST) From: Julian Elischer To: Source Code cc: current@FreeBSD.ORG Subject: Re: Enabling softupdates for root filesystem In-Reply-To: <199803100654.BAA00289@luoqi.watermarkgroup.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG thanks I noticed this myself, and so did phk, who sent me a similar patch. I haven't done it for time reasons.. I'll check his and yours and see which is nicer, and apply it. maybe tomorrow night. julian On Tue, 10 Mar 1998, Source Code wrote: > With the lastest softupdates code cvsupped, there's no way to enable > softupdates for the root partition, no matter what I tried (single user, > fixit floppy, boot off another disk). It turned out that when upgrading > the root mount from r/o to r/w, no attempt was made to enable the > softupdate code. The following patch would do the trick, > > Index: ffs_vfsops.c > =================================================================== > RCS file: /fun/cvs/src/sys/ufs/ffs/ffs_vfsops.c,v > retrieving revision 1.76 > diff -u -r1.76 ffs_vfsops.c > --- ffs_vfsops.c 1998/03/08 09:59:06 1.76 > +++ ffs_vfsops.c 1998/03/10 06:38:39 > @@ -241,6 +241,12 @@ > VOP_UNLOCK(devvp, 0, p); > } > > + if ((fs->fs_flags & FS_DOSOFTDEP) && > + (error = softdep_mount(ump->um_devvp, mp, > + fs, p->p_ucred)) != 0) { > + return (error); > + } > + > fs->fs_ronly = 0; > } > if (fs->fs_ronly == 0) { > ----------- > -lq > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message