From owner-freebsd-current Sun May 17 21:05:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA26547 for freebsd-current-outgoing; Sun, 17 May 1998 21:05:33 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp04.primenet.com (daemon@smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA26542 for ; Sun, 17 May 1998 21:05:28 -0700 (PDT) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id VAA11551; Sun, 17 May 1998 21:05:27 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp04.primenet.com, id smtpd011536; Sun May 17 21:05:25 1998 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id VAA26835; Sun, 17 May 1998 21:05:22 -0700 (MST) From: Terry Lambert Message-Id: <199805180405.VAA26835@usr07.primenet.com> Subject: Patch to disable async, noatime for soft updates To: current@FreeBSD.ORG, julian@whistle.com Date: Mon, 18 May 1998 04:05:21 +0000 (GMT) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here is a patch to do what the subject says. I can't believe no one has bothered to do this yet. ------------------------------------------------------------------------------- Index: ffs_vfsops.c =================================================================== RCS file: /b/cvstree/ncvs/src/sys/ufs/ffs/ffs_vfsops.c,v retrieving revision 1.81 diff -c -r1.81 ffs_vfsops.c *** 1.81 1998/05/06 05:29:40 --- ffs_vfsops.c 1998/05/18 04:04:07 *************** *** 629,634 **** --- 629,638 ---- if (error = bread(devvp, SBLOCK, SBSIZE, cred, &bp)) goto out; fs = (struct fs *)bp->b_data; + /* soft updates is incompatible with "async" and "noatime"*/ + if (fs->fs_flags & FS_DOSOFTDEP) { + mp->mnt_flag &= ~(MNT_ASYNC | MNT_NOATIME); + } if (fs->fs_magic != FS_MAGIC || fs->fs_bsize > MAXBSIZE || fs->fs_bsize < sizeof(struct fs)) { error = EINVAL; /* XXX needs translation */ ------------------------------------------------------------------------------- Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message