Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs On a RW->RO transition, explicitly clear fs_fmod...



details:   https://anonhg.NetBSD.org/src/rev/4027f6ce1e8a
branches:  trunk
changeset: 502018:4027f6ce1e8a
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Jan 10 17:49:18 2001 +0000

description:
On a RW->RO transition, explicitly clear fs_fmod after the cgupdate/sbupdate,
to prevent spurious writebacks and whinging about the (correct!) clean flag.
(Why this isn't done in ffs_sbupdate(), I dunno...)

diffstat:

 sys/ufs/ffs/ffs_vfsops.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 4107eb7d6411 -r 4027f6ce1e8a sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Wed Jan 10 17:37:27 2001 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Wed Jan 10 17:49:18 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.77 2001/01/10 04:47:10 chs Exp $      */
+/*     $NetBSD: ffs_vfsops.c,v 1.78 2001/01/10 17:49:18 mycroft Exp $  */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -213,6 +213,7 @@
                        if (error)
                                return (error);
                        fs->fs_ronly = 1;
+                       fs->fs_fmod = 0;
                }
 
                /*



Home | Main Index | Thread Index | Old Index