Date: Mon, 18 May 1998 04:05:21 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: current@FreeBSD.ORG, julian@whistle.com Subject: Patch to disable async, noatime for soft updates Message-ID: <199805180405.VAA26835@usr07.primenet.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805180405.VAA26835>
