From owner-freebsd-fs@FreeBSD.ORG Tue Jun 20 16:07:17 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2417716A479 for ; Tue, 20 Jun 2006 16:07:17 +0000 (UTC) (envelope-from hardware@ee.ccny.cuny.edu) Received: from ees1s0.engr.ccny.cuny.edu (ees1s0.engr.ccny.cuny.edu [134.74.16.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 5332943D45 for ; Tue, 20 Jun 2006 16:07:16 +0000 (GMT) (envelope-from hardware@ee.ccny.cuny.edu) Received: (qmail 14148 invoked from network); 20 Jun 2006 16:16:01 -0000 Received: from unknown (HELO eesfc20) (134.74.228.20) by ees1s0.engr.ccny.cuny.edu with SMTP; 20 Jun 2006 16:16:01 -0000 Date: Tue, 20 Jun 2006 12:06:45 -0400 (EDT) From: hardware@ee.ccny.cuny.edu X-X-Sender: hardware@eesfc20.engr.ccny.cuny.edu To: freebsd-fs@freebsd.org In-Reply-To: <20060620163718.26387be9.stas@310.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: ext2fs marked dirty when mounted read-only X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 16:07:17 -0000 I tried that modification. Still the same problem. -kr On Tue, 20 Jun 2006, Stanislav Sedov wrote: > There is a small bug in ext2fs code. I'd experienced the same problem > some time ago. > > Unfortunately, I have lost the patch. > > Try to change the line > "if (fs->s_rd_only && !vfs_flagopt(opts, "ro", NULL, 0)) {" > > in ext2_vfsops.c > > to > "if (fs->s_rd_only && !(mp->mnt_flag & MNT_RDONLY)) {" > > I suppose it will help.