Subject: kern/26823: FFS_EI problems
To: None <gnats-bugs@gnats.NetBSD.org>
From: Simon Burge <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 09/01/2004 22:43:47
>Number: 26823
>Category: kern
>Synopsis: FFS_EI problems
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 01 12:44:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 2.0G from late August.
>Organization:
Wasabi Systems
>Environment:
NetBSD walnut.thistledown.com.au 2.0G NetBSD 2.0G (WALNUT) #0: Tue Aug 31 11:30:30 UTC 2004 simonb@thoreau:/var/tmp/WALNUT evbppc
Architecture: powerpc
Machine: evbppc
>Description:
An ffs filesystem of the opposite endianness can be mounted, but
gets a "bad file descriptor" error when trying to access the root
of the filesystem.
>How-To-Repeat:
walnut:~ 1# umount /archive
walnut:~ 2# fsck_ffs -B le /dev/rwd1e
** /dev/rwd1e
CONVERT TO LITTLE ENDIAN? [yn] y
** Swapped byte order
** Last Mounted on /archive
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
11731 files, 9963424 used, 1291063 free (391 frags, 161334 blocks, 0.0% fragmentation)
***** FILE SYSTEM WAS MODIFIED *****
walnut:~ 3# mount /dev/wd1e /archive
walnut:~ 4# ls /archive
ls: /archive: Bad file descriptor
Exit 1
walnut:~ 5# umount /archive
walnut:~ 6# fsck_ffs -B be /dev/rwd1e
** /dev/rwd1e
CONVERT TO BIG ENDIAN? [yn] y
** Last Mounted on /archive
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
11731 files, 9963424 used, 1291063 free (391 frags, 161334 blocks, 0.0% fragmentation)
***** FILE SYSTEM WAS MODIFIED *****
walnut:~ 7# mount /dev/wd1e /archive
walnut:~ 8# ls /archive
audio/ euclid/ misc/
>Fix:
None given.
>Release-Note:
>Audit-Trail:
>Unformatted: