Subject: bin/13423: file(1) does not recognize big endian ffs
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dbj@netbsd.org>
List: netbsd-bugs
Date: 07/09/2001 19:40:28
>Number:         13423
>Category:       bin
>Synopsis:       file(1) does not recognize big endian ffs
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 09 16:41:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Darrin B. Jewell
>Release:        NetBSD 1.5.1
>Organization:
unorganized
>Environment:
	
System: NetBSD rocinante.zlz.net 1.5.1 NetBSD 1.5.1 (ROCINANTE) #7: Mon Jun 18 03:37:42 EDT 2001 dbj@rocinante.zlz.net:/u0/usr/src/sys/arch/i386/compile/ROCINANTE i386


>Description:
The file(1) command does not recognize a big endian ffs filesystem.
>How-To-Repeat:
run file(1) on apple ufs filesystem partition.
>Fix:

Index: filesystems
===================================================================
RCS file: /cvsroot/basesrc/usr.bin/file/magdir/filesystems,v
retrieving revision 1.4
diff -u -r1.4 filesystems
--- filesystems	2000/09/22 16:35:01	1.4
+++ filesystems	2001/07/09 23:36:49
@@ -61,7 +61,7 @@
 
 0x18b	string	OS/2	OS/2 Boot Manager
 
-9564	lelong		0x00011954	Unix Fast File system,
+9564	lelong		0x00011954	Unix Fast File system (little-endian),
 >8404	string		x		last mounted on %s,
 >9504	ledate		x		last checkd at %s,
 >8224	ledate		x		last writen at %s,
@@ -75,6 +75,21 @@
 >8256	lelong		x		disk rotational speed %drps,
 >8320	lelong		0		TIME optimization
 >8320	lelong		1		SPACE optimization
+
+9564	belong		0x00011954	Unix Fast File system (little-endian),
+>8404	string		x		last mounted on %s,
+>9504	bedate		x		last checkd at %s,
+>8224	bedate		x		last writen at %s,
+>8228	belong		x		number of blocks %d,
+>8232	belong		x		number of data blocks %d,
+>8236	belong		x		number of cylinder groups %d,
+>8240	belong		x		number of basic blocks %d,
+>8244	belong		x		number of fragment blocks %d,
+>8248	belong		x		minimum percentage of free blocks %d,
+>8252	belong		x		rotational delay %dms,
+>8256	belong		x		disk rotational speed %drps,
+>8320	belong		0		TIME optimization
+>8320	belong		1		SPACE optimization
 
 # ext2/ext3 filesystems - Andreas Dilger <adilger@turbolabs.com>
 0x438	leshort		0xEF53		Linux
>Release-Note:
>Audit-Trail:
>Unformatted: