From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 16 08:15:59 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD9C916A4CA for ; Mon, 16 Oct 2006 08:15:59 +0000 (UTC) (envelope-from vanhu@zeninc.net) Received: from smtp.zeninc.net (reverse-25.fdn.fr [80.67.176.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C5C743D5C for ; Mon, 16 Oct 2006 08:15:59 +0000 (GMT) (envelope-from vanhu@zeninc.net) Received: by smtp.zeninc.net (smtpd, from userid 1000) id 607C13F17; Mon, 16 Oct 2006 10:15:58 +0200 (CEST) Date: Mon, 16 Oct 2006 10:15:58 +0200 From: VANHULLEBUS Yvan To: freebsd-hackers@freebsd.org Message-ID: <20061016081558.GA31560@zen.inc> References: <20061013074136.GA31459@zen.inc> <20061013080407.GA26522@britannica.bec.de> <20061013174215.GB83555@keira.kiwi-computer.com> <200610131416.51379.jhb@freebsd.org> <20061013185757.GA88689@keira.kiwi-computer.com> <20061016074904.GA30889@zen.inc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061016074904.GA30889@zen.inc> User-Agent: All mail clients suck. This one just sucks less. Subject: Re: Fscking a partition mounted Read only... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Oct 2006 08:15:59 -0000 On Mon, Oct 16, 2006 at 09:49:04AM +0200, VANHULLEBUS Yvan wrote: > On Fri, Oct 13, 2006 at 01:57:58PM -0500, Rick C. Petty wrote: [fscking a RO partition] > > Grr, I meant 4.x not 5.x, and I thought the problem started about the time > > bg fsck was introduced... > > Right: I just tried on a FreeBSD 4.11, and I can fsck a partition > which has just been remounted RO. > > > Could it be interesting (and quite safe !) to recompile 4.X's fsck > under FreeBSD6 and do the test again on FreeBSD 6 ? 4.X's fsck doesn't compile directly on FreeBSD 6..... But I had a quick look at setup.c in both versions (this is the location of the "NO WRITE ACCESS" error), and looks like there is exactly the same code in both versions, except the background flag test in FreeBSD6 (which does not change anything, as I am NOT using that flag). Is this a bug "somewhere" in the kernel ? Shall I run fsck with the background flag in my situation (but it will still have no write access, it just won't generate the output message) ? Yvan. -- NETASQ http://www.netasq.com