NetBSD Problem Report #44205
From riz@netbsd6.localdomain Wed Dec 8 07:40:06 2010
Return-Path: <riz@netbsd6.localdomain>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 5115163BB41
for <gnats-bugs@gnats.NetBSD.org>; Wed, 8 Dec 2010 07:40:06 +0000 (UTC)
Message-Id: <20101208062225.21A501C0244@netbsd6.localdomain>
Date: Tue, 7 Dec 2010 22:22:25 -0800 (PST)
From: riz@netbsd.org
Reply-To: riz@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: resize_ffs does not handle UFS2 file systems
X-Send-Pr-Version: 3.95
>Number: 44205
>Category: bin
>Synopsis: resize_ffs does not handle UFS2 file systems
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: riz
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Dec 08 07:45:00 +0000 2010
>Last-Modified: Wed Jan 05 02:20:06 +0000 2011
>Originator: Jeff Rizzo <riz@netbsd.org>
>Release: NetBSD 5.99.41
>Organization:
>Environment:
System: NetBSD netbsd6 5.99.41 NetBSD 5.99.41 (GENERIC) #0: Sun Dec 5 19:35:40 PST 2010 riz@netbsd6:/home/riz/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
resize_ffs(8) does not contain any code to handle ufs2 (ffsv2)
file systems; only ffsv1.
>How-To-Repeat:
Create a ffsv2 file system and try to resize it.
>Fix:
None given.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->riz
Responsible-Changed-By: jnemeth@NetBSD.org
Responsible-Changed-When: Wed, 08 Dec 2010 08:18:00 +0000
Responsible-Changed-Why:
riz requested that the resize_ffs PRs be assigned to him
From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44205 CVS commit: src/sbin/resize_ffs
Date: Wed, 5 Jan 2011 02:18:17 +0000
Module Name: src
Committed By: riz
Date: Wed Jan 5 02:18:16 UTC 2011
Modified Files:
src/sbin/resize_ffs: Makefile TODO resize_ffs.8 resize_ffs.c
Log Message:
Add support for byteswapped file systems (big-endian on little-endian
host, and vice versa), to fix PR#44203.
Add support for growing (but not yet shrinking) UFS2 file systems. Partially
addresses PR#44205.
While I'm here, reformat the code for closer adherence to KNF.
Fairly extensive testing was performed, using the shortly-to-be-committed
updated ATF tests. Patch posted to tech-userlevel on 21 December 2010,
no comments.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/resize_ffs/Makefile
cvs rdiff -u -r1.7 -r1.8 src/sbin/resize_ffs/TODO
cvs rdiff -u -r1.9 -r1.10 src/sbin/resize_ffs/resize_ffs.8
cvs rdiff -u -r1.24 -r1.25 src/sbin/resize_ffs/resize_ffs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.