From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 7 22:17:54 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 914FD7B7 for ; Tue, 7 Apr 2015 22:17:54 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DC3B354 for ; Tue, 7 Apr 2015 22:17:54 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t37MHsoO083980 for ; Tue, 7 Apr 2015 22:17:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 199152] msdosfs writes on umount to readonly mounted fs Date: Tue, 07 Apr 2015 22:17:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: longwitz@incore.de X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2015 22:17:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199152 longwitz@incore.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |longwitz@incore.de --- Comment #4 from longwitz@incore.de --- Your assertions from r281120 did not trigger. I found the flag FSIMOD is set in usemap_free() called from fillinusemap(), which is called from mountmsdosfs() but before the MSDOSFSMNT_RONLY flag is set. Thats the reason why your assertion is missed. At the begin of the "for (cn = CLUST_FIRST .." loop in fillinusemap() I see pm_flags=0x20000000 and pm_maxcluster=98305. After the loop I have pm_flags=0x21000000 and usemap_free() was called 79356 times, enough to set the FSIMOD bit. The first install of my test maschine was Windows 7 mit UEFI, I boot FreeBSD 10 Stable with PXE, because my motherboard (Gigabyte hGA-A75M-UD2H) has the problem described in PR/193646 and FreeBSD hangs on EFI boot. My test msdosfs partition is the EFI partition installed by Windows 7 and is 100 MB in size. For clarification the output of "gpart show": => 34 234441581 ada0 GPT (112G) 34 2014 - free - (1.0M) 2048 204800 1 efi (100M) 206848 262144 2 ms-reserved (128M) 468992 182771712 3 ms-basic-data (87G) 183240704 1024 4 freebsd-boot (512K) 183241728 2097152 5 freebsd-ufs (1.0G) 185338880 8388608 6 freebsd-swap (4.0G) 193727488 8388608 7 freebsd-ufs (4.0G) 202116096 16777216 8 freebsd-ufs (8.0G) 218893312 15548302 9 freebsd-ufs (7.4G) 234441614 1 - free - (512B) If you need more information let me know. -- You are receiving this mail because: You are the assignee for the bug.