Module Name: src Committed By: hannken Date: Mon Mar 6 10:12:00 UTC 2017
Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Adapt the test "enable WAPBL on rw mounts only" to the recent change of the protocol to update a mounted file. Should fix PR kern/52031 (FFS mount update doesn't play nice with WAPBL) To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349 src/sys/ufs/ffs/ffs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ffs/ffs_vfsops.c diff -u src/sys/ufs/ffs/ffs_vfsops.c:1.348 src/sys/ufs/ffs/ffs_vfsops.c:1.349 --- src/sys/ufs/ffs/ffs_vfsops.c:1.348 Wed Mar 1 10:46:43 2017 +++ src/sys/ufs/ffs/ffs_vfsops.c Mon Mar 6 10:12:00 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_vfsops.c,v 1.348 2017/03/01 10:46:43 hannken Exp $ */ +/* $NetBSD: ffs_vfsops.c,v 1.349 2017/03/06 10:12:00 hannken Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.348 2017/03/01 10:46:43 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.349 2017/03/06 10:12:00 hannken Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -518,7 +518,8 @@ ffs_mount(struct mount *mp, const char * #ifdef WAPBL /* WAPBL can only be enabled on a r/w mount. */ - if ((mp->mnt_flag & MNT_RDONLY) && !(mp->mnt_iflag & IMNT_WANTRDWR)) { + if (((mp->mnt_flag & MNT_RDONLY) && !(mp->mnt_iflag & IMNT_WANTRDWR)) || + (mp->mnt_iflag & IMNT_WANTRDONLY)) { mp->mnt_flag &= ~MNT_LOG; } #else /* !WAPBL */