NetBSD Problem Report #50000

From dholland@netbsd.org  Fri Jun 26 04:51:10 2015
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 27396A65B7
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 26 Jun 2015 04:51:10 +0000 (UTC)
Message-Id: <20150626045109.AEA5714A31E@mail.netbsd.org>
Date: Fri, 26 Jun 2015 04:51:09 +0000 (UTC)
From: dholland@NetBSD.org
Reply-To: dholland@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: lfs is limited to 2TB volumes
X-Send-Pr-Version: 3.95

>Number:         50000
>Category:       kern
>Synopsis:       lfs is limited to 2TB volumes
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    dholland
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 26 04:55:00 +0000 2015
>Last-Modified:  Sun Aug 02 18:20:01 +0000 2015
>Originator:     David A. Holland
>Release:        7.99.17 (20150519)
>Organization:
>Environment:
System: NetBSD macaran 7.99.17 NetBSD 7.99.17 (MACARAN) #26: Fri May 22 18:22:29 EDT 2015  dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:

While the ufs-level ffsv2 code was merged into lfs, only enough was
done to make it compile, not run. You can't actually create a volume
that uses v2 inodes with 64-bit block pointers; nor if you managed to
create one would it be able to run.

>How-To-Repeat:

Attempt newfs_lfs on a shingled disk. Then, read the code. Remember
that one had already ascertained some time back that it wasn't
actually hooked up.

>Fix:

One needs to define the 64-bit on-disk LFS format. This is something
we can do more or less unilaterally at this point (AFAIK) but should
still be coordinated with Margo Seltzer.

The amount of work required at that point isn't entirely clear yet.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->dholland
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Tue, 21 Jul 2015 04:03:59 +0000
Responsible-Changed-Why:
take, looks like this is funded for a while


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50000 CVS commit: src/sys/ufs/lfs
Date: Fri, 24 Jul 2015 06:51:46 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Fri Jul 24 06:51:46 UTC 2015

 Modified Files:
 	src/sys/ufs/lfs: lfs.h

 Log Message:
 ulfs2_dinode, having never actually been used with lfs, doesn't have a
 di_inumber field. Fix that. First preliminary step on PR 50000.


 To generate a diff of this commit:
 cvs rdiff -u -r1.162 -r1.163 src/sys/ufs/lfs/lfs.h

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

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50000 CVS commit: src
Date: Sun, 2 Aug 2015 18:18:10 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Sun Aug  2 18:18:10 UTC 2015

 Modified Files:
 	src/libexec/lfs_cleanerd: cleaner.h lfs_cleanerd.c
 	src/sbin/dump_lfs: lfs_inode.c
 	src/sbin/fsck_lfs: lfs.c segwrite.c
 	src/sbin/newfs_lfs: extern.h make_lfs.c
 	src/sbin/resize_lfs: resize_lfs.c
 	src/sbin/scan_ffs: scan_ffs.c
 	src/sys/lib/libsa: lfsv1.c lfsv2.c ufs.c
 	src/sys/ufs/lfs: lfs.h lfs_accessors.h lfs_cksum.c lfs_debug.c
 	    lfs_extern.h lfs_segment.c lfs_vfsops.c
 	src/usr.sbin/dumplfs: dumplfs.c

 Log Message:
 Add a (draft) 64-bit superblock. Make things build again.

 Add pieces of support for using both superblock types where
 convenient, and specifically to the superblock accessors, but don't
 actually enable it anywhere.

 First substantive step on PR 50000.


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 src/libexec/lfs_cleanerd/cleaner.h
 cvs rdiff -u -r1.43 -r1.44 src/libexec/lfs_cleanerd/lfs_cleanerd.c
 cvs rdiff -u -r1.22 -r1.23 src/sbin/dump_lfs/lfs_inode.c
 cvs rdiff -u -r1.51 -r1.52 src/sbin/fsck_lfs/lfs.c
 cvs rdiff -u -r1.35 -r1.36 src/sbin/fsck_lfs/segwrite.c
 cvs rdiff -u -r1.12 -r1.13 src/sbin/newfs_lfs/extern.h
 cvs rdiff -u -r1.39 -r1.40 src/sbin/newfs_lfs/make_lfs.c
 cvs rdiff -u -r1.13 -r1.14 src/sbin/resize_lfs/resize_lfs.c
 cvs rdiff -u -r1.30 -r1.31 src/sbin/scan_ffs/scan_ffs.c
 cvs rdiff -u -r1.11 -r1.12 src/sys/lib/libsa/lfsv1.c \
     src/sys/lib/libsa/lfsv2.c
 cvs rdiff -u -r1.69 -r1.70 src/sys/lib/libsa/ufs.c
 cvs rdiff -u -r1.170 -r1.171 src/sys/ufs/lfs/lfs.h
 cvs rdiff -u -r1.6 -r1.7 src/sys/ufs/lfs/lfs_accessors.h
 cvs rdiff -u -r1.29 -r1.30 src/sys/ufs/lfs/lfs_cksum.c
 cvs rdiff -u -r1.49 -r1.50 src/sys/ufs/lfs/lfs_debug.c
 cvs rdiff -u -r1.106 -r1.107 src/sys/ufs/lfs/lfs_extern.h
 cvs rdiff -u -r1.249 -r1.250 src/sys/ufs/lfs/lfs_segment.c
 cvs rdiff -u -r1.332 -r1.333 src/sys/ufs/lfs/lfs_vfsops.c
 cvs rdiff -u -r1.48 -r1.49 src/usr.sbin/dumplfs/dumplfs.c

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

>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.