From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 9 22:49:12 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6954216A400 for ; Sat, 9 Jun 2007 22:49:12 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E6D3013C469 for ; Sat, 9 Jun 2007 22:49:11 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hx9gw-0001ih-P2 for freebsd-hackers@freebsd.org; Sun, 10 Jun 2007 00:45:55 +0200 Received: from 78-1-71-165.adsl.net.t-com.hr ([78.1.71.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Jun 2007 00:45:54 +0200 Received: from ivoras by 78-1-71-165.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Jun 2007 00:45:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sun, 10 Jun 2007 00:41:31 +0200 Lines: 56 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig97E7BF4F0A87352BF8777670" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-71-165.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) X-Enigmail-Version: 0.94.3.0 Sender: news Cc: freebsd-fs@freebsd.org Subject: file(1) cannot detect UFS2? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 22:49:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig97E7BF4F0A87352BF8777670 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! I'm trying to use file(1) to detect file system type on partitions, and so far it's working for any file system I've cared to try (the usual MS and Linux list) *except* UFS2. Detecting UFS1 works, though much more verbosely than it needs to be, but UFS2 isn't detected at all. I'd like to ask someone familiar with UFS2 to take a quick peak and add the appropriate rules to the file(1) magic database, if anyone's interest= ed. At the very least, I need someone to commit this patch: --- magic.old Fri Jun 8 17:42:01 2007 +++ magic Fri Jun 8 17:51:11 2007 @@ -4821,6 +4821,10 @@ >8320 belong 0 TIME optimization >8320 belong 1 SPACE optimization +66908 lelong 0x19540119 Unix Fast File system v2 (little-endian) + +66908 belong 0x19540119 Unix Fast File system v2 (big-endian) + # ext2/ext3 filesystems - Andreas Dilger 0x438 leshort 0xEF53 Linux >0x44c lelong x rev %d I don't know if it's correct (the offset seems a bit high...), but it works for me :) --------------enig97E7BF4F0A87352BF8777670 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGayybldnAQVacBcgRAvEKAJ9oQlUi3M883/uRWnnnhlbakoOaXQCfVA/N JyYva7TU7A7im+UizooO5eM= =iHEb -----END PGP SIGNATURE----- --------------enig97E7BF4F0A87352BF8777670--