From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-gx0-f20.google.com ([209.85.217.20]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1LS02K-00071g-9p for linux-mtd@lists.infradead.org; Wed, 28 Jan 2009 02:20:31 +0000 Received: by gxk13 with SMTP id 13so5941993gxk.18 for ; Tue, 27 Jan 2009 18:20:14 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1232961503.22350.89.camel@localhost.localdomain> References: <8EEAB966-52F4-48A3-8FCA-A50BBE8486B7@b2n.ca> <1232961503.22350.89.camel@localhost.localdomain> Date: Wed, 28 Jan 2009 11:20:14 +0900 Message-ID: <9c9fda240901271820x23993c55hba3fa5078ea6426@mail.gmail.com> Subject: Re: UBIFS volume corruption (bad node at LEB 0:0) From: Kyungmin Park To: dedekind@infradead.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: David Bergeron , linux-mtd@lists.infradead.org Reply-To: kyungmin78@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, On Mon, Jan 26, 2009 at 6:18 PM, Artem Bityutskiy wrote: > On Wed, 2009-01-07 at 23:13 -0500, David Bergeron wrote: >> Hello all, >> >> I'm getting some sort of volume corruption problem with UBIFS after >> doing >> rootfs updates using rsync. >> >> I've cooked up a minimalist test trying to eliminate possible >> interference. >> The following steps will trigger the corruption almost every time. >> No >> errors >> or warnings are produced during this procedure, every step behaves >> as >> expected: > > David, > > we think we've fixed this bug. The reason was that when mounting RO, > then re-mounting read-write, the orphan sub-system was not properly > initialized. The fix is available at the ubifs-v2.6.28.git tree. I've > back-ported all stable changes and fixes to the tree. You need this fix: > > commit b3718eedf4ab91307f64a79ad8eb911ca401bd22 > Author: Adrian Hunter > Date: Mon Jan 26 10:55:40 2009 +0200 > > UBIFS: ensure orphan area head is initialized > > When mounting read-only the orphan area head is > not initialized. It must be initialized when > remounting read/write, but it was not. This patch > fixes that. > > [Artem: sorry, added comment tweaking noise] > Signed-off-by: Adrian Hunter > Signed-off-by: Artem Bityutskiy > > However, I recommend you to incorporate all UBI/UBIFS changes since > 2.6.28, because there were other bug-fixes. > > You may find information about back-port trees here: > http://www.linux-mtd.infradead.org/doc/ubifs.html#L_source > > Please, send us some feed-back about whether your problem has been > solved. > I got the similar problem with orphan node handling. with this patch, it's solved. but there are strange ones. I boot with ubifs with ro mode. and then I remount it as rw. after some work, I remount it as ro. at that case. It displayed "Device busy" so I can't change the mode. Did you have any clue? Thank you, Kyungmin Park