NetBSD Problem Report #45166

From he@smistad.uninett.no  Fri Jul 22 15:09:24 2011
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id BF80D63BA8C
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 22 Jul 2011 15:09:23 +0000 (UTC)
Message-Id: <20110722150920.888583D0B0@smistad.uninett.no>
Date: Fri, 22 Jul 2011 17:09:20 +0200 (CEST)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: UFS2 / FFSv2 confusion
X-Send-Pr-Version: 3.95

>Number:         45166
>Category:       bin
>Synopsis:       UFS2 / FFSv2 confusion
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 22 15:10:06 +0000 2011
>Closed-Date:    Sun Mar 18 02:28:09 +0000 2012
>Last-Modified:  Sun Mar 18 02:28:09 +0000 2012
>Originator:     Havard Eidnes
>Release:        NetBSD 5.1
>Organization:
	I Try, Inc.
>Environment:
System: NetBSD smistad.uninett.no 5.1 NetBSD 5.1 (MAANEN) #12: Wed Dec 22 11:42:27 CET 2010 he@smistad.uninett.no:/usr/obj/sys/arch/i386/compile/MAANEN i386
Architecture: i386
Machine: i386
>Description:
	Our mount(8) man page says under description of the
	relatively recently added "log" feature/option:

	   (FFS only with UFS2 superblock layout)

	However, the newfs(8) man page does not mention the
	UFS2 text string, under description of the "-O" option
	the text says

               0    4.3BSD; This option is primarily used to build
                    root file systems that can be understood by older
                    boot ROMs.
               1    FFSv1; normal fast-filesystem (default).
               2    FFSv2; enhanced fast-filesystem (suited for more
                    than 1 Terabyte capacity, access control lists).

	Someone muttered that the UFS2 / FFSv2 confusion is something
	we have imported from elsewhere.  However, we should not
	contribute to it, and should provide for a little more smooth
	sailing when users want to enable the "log" feature.

>How-To-Repeat:
	Inspect our mount(8) and newfs(8) man pages.
>Fix:
	No textual suggestion provided here.

>Release-Note:

>Audit-Trail:
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: bin/45166: UFS2 / FFSv2 confusion
Date: Sat, 23 Jul 2011 00:23:08 +0900

 > 	   (FFS only with UFS2 superblock layout)

 "UFS2 superblock layout" is description about superblock, not FS itself.
 UFS1 (or FFSv1) can have UFS2 layout superblock.

 > 	However, the newfs(8) man page does not mention the

 I think the description of newfs(8) has been updated in -current.

 ---
 Izumi Tsutsui

From: Havard Eidnes <he@NetBSD.org>
To: tsutsui@ceres.dti.ne.jp
Cc: gnats-bugs@NetBSD.org
Subject: Re: bin/45166: UFS2 / FFSv2 confusion
Date: Fri, 22 Jul 2011 17:37:36 +0200 (CEST)

 >  > 	   (FFS only with UFS2 superblock layout)
 >
 >  "UFS2 superblock layout" is description about superblock, not
 >  FS itself.  UFS1 (or FFSv1) can have UFS2 layout superblock.

 Hmm, to split hairs...  Do we have any tools which create an UFS2
 layout superblock but create an FFSv1 file system?  If not, then
 I'll claim that the distinction is ... slightly academic.

 >  > 	However, the newfs(8) man page does not mention the
 >
 >  I think the description of newfs(8) has been updated in -current.

 Ah, yes, I should have checked that before submitting.  It's a
 lot better in -current -- it's possible to navigate from the
 mount(8) man page via the information in the newfs(8) man page
 and end up with using the apparently correct "-O 2" option to
 newfs.

 Regards,

 - H=E5vard

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, he@NetBSD.org
Subject: Re: bin/45166: UFS2 / FFSv2 confusion
Date: Fri, 22 Jul 2011 17:41:46 +0200

 On Fri, Jul 22, 2011 at 03:40:05PM +0000, Havard Eidnes wrote:
 >  Hmm, to split hairs...  Do we have any tools which create an UFS2
 >  layout superblock but create an FFSv1 file system?  If not, then
 >  I'll claim that the distinction is ... slightly academic.

 Yes, that is what you end up with when you do a new install and select
 FFSv1.

 Martin

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/45166: UFS2 / FFSv2 confusion
Date: Fri, 22 Jul 2011 15:48:10 +0000

 On Fri, Jul 22, 2011 at 03:40:05PM +0000, Havard Eidnes wrote:
  >  >  > 	   (FFS only with UFS2 superblock layout)
  >  >
  >  >  "UFS2 superblock layout" is description about superblock, not
  >  >  FS itself.  UFS1 (or FFSv1) can have UFS2 layout superblock.
  >  
  >  Hmm, to split hairs...  Do we have any tools which create an UFS2
  >  layout superblock but create an FFSv1 file system?

 Yes, it's the default.

 I had thought that tunefs could update the superblock type, and you
 needed to do this if you had an ancient fs, but now I can't see any
 evidence of this in either tunefs.8 or tunefs.c. What am I missing?
 (anyone? please fix the commented out chunk of mount.8 that I just
 committed...)

 -- 
 David A. Holland
 dholland@netbsd.org

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: he@NetBSD.org
Cc: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: bin/45166: UFS2 / FFSv2 confusion
Date: Sat, 23 Jul 2011 00:49:10 +0900

 > >  > 	   (FFS only with UFS2 superblock layout)
 > >
 > >  "UFS2 superblock layout" is description about superblock, not
 > >  FS itself.  UFS1 (or FFSv1) can have UFS2 layout superblock.
 > 
 > Hmm, to split hairs...  Do we have any tools which create an UFS2
 > layout superblock but create an FFSv1 file system?

 "fsck_ffs -c 4" as mentioned in wapbl(4),
 but newer newfs(8) creates it by default, I think.

 Oh, fsck_ffs(8) does mention only FFSv2, not UFS2...

 ---
 Izumi Tsutsui

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45166 CVS commit: src/sbin/mount
Date: Fri, 22 Jul 2011 15:53:21 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Fri Jul 22 15:53:21 UTC 2011

 Modified Files:
 	src/sbin/mount: mount.8

 Log Message:
 Improve previous; thanks to tsutsui-san for reminding me of the proper
 reference. PR 45166


 To generate a diff of this commit:
 cvs rdiff -u -r1.73 -r1.74 src/sbin/mount/mount.8

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 22 Jul 2011 15:56:49 +0000
State-Changed-Why:
Fixed; please check if the wording is adequate (and if so, someone please
file a pullup to -5)


State-Changed-From-To: feedback->pending-pullups
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 14 Mar 2012 18:48:32 +0000
State-Changed-Why:
feedback timeout. pullup-5 #1743


From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45166 CVS commit: [netbsd-5] src/sbin/mount
Date: Sat, 17 Mar 2012 19:31:24 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Sat Mar 17 19:31:23 UTC 2012

 Modified Files:
 	src/sbin/mount [netbsd-5]: mount.8

 Log Message:
 Pull up following revision(s) (requested by dholland in ticket #1743):
 	sbin/mount/mount.8: revision 1.73
 	sbin/mount/mount.8: revision 1.74
 Clarify UFS2 superblock format stuff. Bump date.
 Improve previous; thanks to tsutsui-san for reminding me of the proper
 reference. PR 45166


 To generate a diff of this commit:
 cvs rdiff -u -r1.62.2.3 -r1.62.2.4 src/sbin/mount/mount.8

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45166 CVS commit: [netbsd-5-0] src/sbin/mount
Date: Sat, 17 Mar 2012 19:31:54 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Sat Mar 17 19:31:54 UTC 2012

 Modified Files:
 	src/sbin/mount [netbsd-5-0]: mount.8

 Log Message:
 Pull up following revision(s) (requested by dholland in ticket #1743):
 	sbin/mount/mount.8: revision 1.73
 	sbin/mount/mount.8: revision 1.74
 Clarify UFS2 superblock format stuff. Bump date.
 Improve previous; thanks to tsutsui-san for reminding me of the proper
 reference. PR 45166


 To generate a diff of this commit:
 cvs rdiff -u -r1.62.2.3 -r1.62.2.3.2.1 src/sbin/mount/mount.8

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45166 CVS commit: [netbsd-5-1] src/sbin/mount
Date: Sat, 17 Mar 2012 19:32:43 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Sat Mar 17 19:32:43 UTC 2012

 Modified Files:
 	src/sbin/mount [netbsd-5-1]: mount.8

 Log Message:
 Pull up following revision(s) (requested by dholland in ticket #1743):
 	sbin/mount/mount.8: revision 1.73
 	sbin/mount/mount.8: revision 1.74
 Clarify UFS2 superblock format stuff. Bump date.
 Improve previous; thanks to tsutsui-san for reminding me of the proper
 reference. PR 45166


 To generate a diff of this commit:
 cvs rdiff -u -r1.62.2.3 -r1.62.2.3.6.1 src/sbin/mount/mount.8

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 18 Mar 2012 02:28:09 +0000
State-Changed-Why:
Proposed fix has been applied and pulled up.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.