From owner-freebsd-current Tue Mar 18 5:10: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46A7137B404; Tue, 18 Mar 2003 05:10:03 -0800 (PST) Received: from mallaury.noc.nerim.net (smtp-102.noc.nerim.net [62.4.17.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89D5D43F93; Tue, 18 Mar 2003 05:10:01 -0800 (PST) (envelope-from cbuisson@nerim.net) Received: from nerim.net (cbuisson.net1.nerim.net [213.41.135.238]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 29D5262E5F; Tue, 18 Mar 2003 14:09:59 +0100 (CET) Message-ID: <3E771AA7.28D37757@nerim.net> Date: Tue, 18 Mar 2003 14:09:59 +0100 From: Claude Buisson X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Kirk McKusick Cc: Maxim Konovalov , Ruslan Ermilov , current@FreeBSD.ORG Subject: Re: 4.8-RC / 5-CURRENT UFS1 interoperability problem References: <200303170120.h2H1K7FL011951@beastie.mckusick.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kirk McKusick wrote: > > Date: Thu, 6 Mar 2003 17:21:00 +0300 (MSK) > From: Maxim Konovalov > To: current@freebsd.org > Cc: mckusick@freebsd.org > Subject: 4.8-RC / 5-CURRENT UFS1 interoperability problem > > Hello, > > In short, there is a problem using the same UFS1 filesystem under > -stable and -current. Please look at an attached typescript for > details. > > I noticed a wrong superblock information either: > > [maxim@golf ~]$ df /spare > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s2a 22520288 -125476 20844144 -1% /spare > > Is it known bug? > > -- > Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org > > Executive summary: you need to run `fsck -f -p' whenever you switch > to or from a 4.X (stable) and a 5.X (current) kernel. The reason > is that the UFS1 superblock summary information is maintained in > different parts of the superblock on these two systems. Neither > system maintains the summary information used by the other. There > is no risk of trashing your filesystem if you fail to run the fsck, > but the information reported by `df' will be wrong until you run > the fsck. > > Kirk McKusick > Thanks for this answer, It seems also that one needs to do a fsck_ffs on a 5.X system, for a file system which had been mounted under 4.X. I hope that someone is thinking about the consequences for dual-booted systems. At a minimum, having a way to access/repair a 5.X (unstable/test) UFS from a 4.X (stable/production) without the need to reboot a fixit floppy could be very useful... Claude Buisson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message