NetBSD Problem Report #44203

From riz@netbsd6.localdomain  Wed Dec  8 07:35: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 8797863B886
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  8 Dec 2010 07:35:06 +0000 (UTC)
Message-Id: <20101208061955.B92701C0241@netbsd6.localdomain>
Date: Tue,  7 Dec 2010 22:19:55 -0800 (PST)
From: riz@netbsd.org
Reply-To: riz@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: resize_ffs(8) does not handle byteswapped file systems.
X-Send-Pr-Version: 3.95

>Number:         44203
>Category:       bin
>Synopsis:       resize_ffs(8) does not handle byteswapped file systems.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    riz
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 08 07:40:00 +0000 2010
>Closed-Date:    Wed Jan 05 03:09:54 +0000 2011
>Last-Modified:  Wed Jan 05 03:09:54 +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 handle (nor does it claim to handle) file
systems other than in host byteorder.
>How-To-Repeat:
	Create a byteswapped fs, try to resize.
>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:17:09 +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/44203 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.

State-Changed-From-To: open->closed
State-Changed-By: riz@NetBSD.org
State-Changed-When: Wed, 05 Jan 2011 03:09:54 +0000
State-Changed-Why:
I fixed it.


>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.