From owner-cvs-src-old@FreeBSD.ORG Sat Feb 14 21:13:15 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3F9B106574B for ; Sat, 14 Feb 2009 21:13:15 +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 BFF4A8FC13 for ; Sat, 14 Feb 2009 21:13:15 +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 n1ELDFkd051372 for ; Sat, 14 Feb 2009 21:13:15 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1ELDFle051370 for cvs-src-old@freebsd.org; Sat, 14 Feb 2009 21:13:15 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200902142113.n1ELDFle051370@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Sat, 14 Feb 2009 21:12:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 21:13:16 -0000 kib 2009-02-14 21:12:58 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) 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 188614 on 2009-02-14 21:12:58Z by kib MFC r183070: 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. Revision Changes Path 1.74.2.3 +2 -0 src/sys/ufs/ffs/ffs_extern.h 1.108.2.5 +8 -0 src/sys/ufs/ffs/ffs_inode.c 1.329.2.8 +1 -0 src/sys/ufs/ffs/ffs_vfsops.c 1.69.2.1 +2 -3 src/sys/ufs/ufs/ufs_inode.c 1.291.2.8 +1 -1 src/sys/ufs/ufs/ufs_vnops.c 1.37.2.1 +2 -0 src/sys/ufs/ufs/ufsmount.h