Date: Tue, 10 Mar 1998 01:42:22 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: Source Code <src@luoqi.watermarkgroup.com> Cc: current@FreeBSD.ORG Subject: Re: Enabling softupdates for root filesystem Message-ID: <Pine.BSF.3.95.980310014045.19260B-100000@current1.whistle.com> In-Reply-To: <199803100654.BAA00289@luoqi.watermarkgroup.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980310014045.19260B-100000>
