Date: Sun, 10 Jun 2007 00:41:31 +0200 From: Ivan Voras <ivoras@fer.hr> To: freebsd-hackers@freebsd.org Cc: freebsd-fs@freebsd.org Subject: file(1) cannot detect UFS2? Message-ID: <f4fab1$fh9$1@sea.gmane.org>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 interested. 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 <adilger@turbolabs.com> 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 :) [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f4fab1$fh9$1>
