From hampi@rootshell.be  Mon Apr  5 12:49:19 2004
Return-Path: <hampi@rootshell.be>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2B1F316A4D0
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Apr 2004 12:49:17 -0700 (PDT)
Received: from mail3.bluewin.ch (mail3.bluewin.ch [195.186.1.75])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9DD5E43D49
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Apr 2004 12:49:16 -0700 (PDT)
	(envelope-from hampi@rootshell.be)
Received: from gicco.homeip.net (62.202.242.184) by mail3.bluewin.ch (Bluewin AG 7.0.027)
        id 40559DA3003B73BA; Mon, 5 Apr 2004 19:49:12 +0000
Received: from snoopy.here (localhost [127.0.0.1])
	by gicco.homeip.net (8.12.10/8.12.9) with ESMTP id i35JnBhW001342;
	Mon, 5 Apr 2004 21:49:11 +0200 (CEST)
	(envelope-from hampi@localhost.here)
Received: (from hampi@localhost)
	by snoopy.here (8.12.10/8.12.10/Submit) id i35JnBeT001341;
	Mon, 5 Apr 2004 21:49:11 +0200 (CEST)
	(envelope-from hampi)
Message-Id: <200404051949.i35JnBeT001341@snoopy.here>
Date: Mon, 5 Apr 2004 21:49:11 +0200 (CEST)
From: Hanspeter Roth <hampi@rootshell.be>
Reply-To: Hanspeter Roth <hampi@rootshell.be>
To: FreeBSD-gnats-submit@freebsd.org
Cc: hampi@rootshell.be
Subject: fsck of 5.2 makes UFS1 inconsistent for 4.9
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         65223
>Category:       bin
>Synopsis:       fsck of 5.2 makes UFS1 inconsistent for 4.9
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 05 12:50:30 PDT 2004
>Closed-Date:    Thu Mar 22 06:55:29 GMT 2007
>Last-Modified:  Thu Mar 22 06:55:29 GMT 2007
>Originator:     Hanspeter Roth
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD snoopy.here 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #1: Sat Apr 3 21:00:55 CEST 2004 hampi@snoopy.here:/usr/src/sys/i386/compile/D5 i386
	FreeBSD 4.9
>Description:
	Fsck of 5.2.1 makes modifications on UFS1 that makes the file system
	inconsistent for a fsck of 4.9. The fsck of 4.9 reports

	FREE BLK COUNT(S) WRONG IN SUPERBLOCK
	SALVAGE [yn]

>How-To-Repeat:
	Boot 5.2.1 and mount a UFS1 which was created under 4.9.
	Start copying a big file to the UFS1. After one second press the
	reset button in order to leave an inconsistent UFS1.
	Boot 5.2.1 again and run fsck on the UFS1.
	Reboot 4.9 in single user mode and run fsck on the UFS1 that had
	been fscked by 5.2.1
>Fix:
	none so far


>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: bin/65223
Date: Mon, 6 Sep 2004 10:17:02 +0400 (MSD)

 Add some info about the root of the problem from Kirk McKusick:
 
 http://freebsd.rambler.ru/bsdmail/freebsd-current_2003/msg04802.html
 
 : 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.
 
 -- 
 Maxim Konovalov
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Thu Mar 22 06:54:28 UTC 2007 
State-Changed-Why:  
FreeBSD 4.x is no longer supported, a nice workaround is mentioned in the audit-trial, please follow that if this still occurs. Sorry we didn't pick this up sooner. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=65223 
>Unformatted:
