From tim@robbins.dropbear.id.au  Fri Feb 20 03:26:13 2004
Return-Path: <tim@robbins.dropbear.id.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C8A1316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Feb 2004 03:26:13 -0800 (PST)
Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9AD4C43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Feb 2004 03:26:13 -0800 (PST)
	(envelope-from tim@robbins.dropbear.id.au)
Received: from robbins.dropbear.id.au (203.134.134.95) by smtp02.syd.iprimus.net.au (7.0.024)
        id 402CF870001DD4E0 for FreeBSD-gnats-submit@freebsd.org; Fri, 20 Feb 2004 22:26:10 +1100
Received: by robbins.dropbear.id.au (Postfix, from userid 1000)
	id 7B02541AF; Fri, 20 Feb 2004 22:25:57 +1100 (EST)
Message-Id: <20040220112557.7B02541AF@robbins.dropbear.id.au>
Date: Fri, 20 Feb 2004 22:25:57 +1100 (EST)
From: Tim Robbins <tim@robbins.dropbear.id.au>
Reply-To: Tim Robbins <tim@robbins.dropbear.id.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: e2fsprogs thinks devices are zero bytes in size
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63118
>Category:       ports
>Synopsis:       e2fsprogs thinks devices are zero bytes in size
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 20 03:30:12 PST 2004
>Closed-Date:    Fri Feb 20 23:13:18 PST 2004
>Last-Modified:  Fri Feb 20 23:13:18 PST 2004
>Originator:     Tim Robbins
>Release:        FreeBSD 5.2-tjr i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD cat.robbins.dropbear.id.au 5.2-tjr FreeBSD 5.2-tjr #1: Fri Jan 23 02:11:08 EST 2004 tim@cat.robbins.dropbear.id.au:/usr/obj/home/tim/p4/src/sys/CAT i386

>Description:

Many of the utilities in e2fsprogs seem to think that devices are zero
bytes in size, and complain that a specified disk device is
"not a block special device". FreeBSD does not support block special devices.

e2fsck does not seem to work at all. It complains about a "short read"
on filesystems that mount fine with mount_ext2fs and do not have any
problems when checked with e2fsck running on Debian 3.0 or my modified
version of NetBSD's fsck_ext2fs

>How-To-Repeat:

# mke2fs /dev/ad1s1
mke2fs 1.32 (09-Nov-2002)
/dev/ad1s1 is not a block special device.
Proceed anyway? (y,n) y
mke2fs: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

# e2fsck -f /dev/ad1s1
e2fsck 1.32 (09-Nov-2002)
The filesystem size (according to the superblock) is 194560 blocks
The physical size of the device is 0 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Error reading block 4 (Attempt to read block from filesystem resulted in short read) while reading inode and block bitmaps.  Ignore error<y>?

/dev/ad1s1: e2fsck canceled.

>Fix:

Not known.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: glewis 
State-Changed-When: Fri Feb 20 14:48:05 PST 2004 
State-Changed-Why:  
Tim, please try the updated e2fsprogs port I just committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63118 
State-Changed-From-To: feedback->closed 
State-Changed-By: glewis 
State-Changed-When: Fri Feb 20 23:12:58 PST 2004 
State-Changed-Why:  
Tim confirmed the updated e2fsprogs fixes this. 

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