Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 1998 01:54:20 -0500 (EST)
From:      Source Code <src@luoqi.watermarkgroup.com>
To:        current@FreeBSD.ORG
Subject:   Enabling softupdates for root filesystem
Message-ID:  <199803100654.BAA00289@luoqi.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
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



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