From owner-cvs-all@FreeBSD.ORG Tue Sep 16 11:00:00 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27459106564A; Tue, 16 Sep 2008 11:00:00 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1881A8FC19; Tue, 16 Sep 2008 11:00:00 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8GAxx3b015943; Tue, 16 Sep 2008 10:59:59 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8GAxxNB015942; Tue, 16 Sep 2008 10:59:59 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200809161059.m8GAxxNB015942@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 16 Sep 2008 10:59:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/ufs/ffs ffs_extern.h ffs_inode.c ffs_vfsops.c src/sys/ufs/ufs ufs_inode.c ufs_vnops.c ufsmount.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2008 11:00:00 -0000 kib 2008-09-16 10:59:35 UTC FreeBSD src repository Modified files: sys/ufs/ffs ffs_extern.h ffs_inode.c ffs_vfsops.c sys/ufs/ufs ufs_inode.c ufs_vnops.c ufsmount.h Log: SVN rev 183070 on 2008-09-16 10:59:35Z by kib When downgrading the read-write mount to read-only, do_unmount() sets MNT_RDONLY flag before the VFS_MOUNT() is called. In ufs_inactive() and ufs_itimes_locked(), UFS verifies whether the fs is read-only by checking MNT_RDONLY, but this may cause loss of the IN_MODIFIED flag for inode on the fs being remounted rw->ro. Introduce UFS_RDONLY() struct ufsmount' method that reports the value of the fs_ronly. The later is set to 1 only after the remount is finished. Reviewed by: tegge In collaboration with: pho MFC after: 1 month Revision Changes Path 1.76 +2 -0 src/sys/ufs/ffs/ffs_extern.h 1.111 +8 -0 src/sys/ufs/ffs/ffs_inode.c 1.347 +1 -0 src/sys/ufs/ffs/ffs_vfsops.c 1.70 +2 -3 src/sys/ufs/ufs/ufs_inode.c 1.301 +1 -1 src/sys/ufs/ufs/ufs_vnops.c 1.39 +2 -0 src/sys/ufs/ufs/ufsmount.h