Date: Sat, 1 Jul 2006 16:35:27 GMT From: pri vate <nobody@nowh.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/99693: [patch] add magic(5)/file(1) support for FreeBSD 6.1 dump(8) format Message-ID: <200607011635.k61GZR7O046244@www.freebsd.org> Resent-Message-ID: <200607011640.k61GeJAM007309@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 99693 >Category: bin >Synopsis: [patch] add magic(5)/file(1) support for FreeBSD 6.1 dump(8) format >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 01 16:40:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: pri vate >Release: RELENG_6_1_0_RELEASE >Organization: yes it's me >Environment: >Description: file(1) does not grok 6.1's new dump format (ufs2). >How-To-Repeat: >Fix: the fix is ugly because it does not support the 64 bit date stamps, but here it goes anyway: + + ############################################################################## + + 24 belong 0x19540119 new-fs dump file (ufs2, big endian), + >12 belong >0 Volume %ld, + >692 belong 0 Level zero, type: + >692 belong >0 Level %d, type: + >0 belong 1 tape header, + >0 belong 2 beginning of file record, + >0 belong 3 map of inodes on tape, + >0 belong 4 continuation of file record, + >0 belong 5 end of volume, + >0 belong 6 map of inodes deleted, + >0 belong 7 end of medium (for floppy), + >676 string >\0 Label %s, + >696 string >\0 Filesystem %s, + >760 string >\0 Device %s, + >824 string >\0 Host %s, + >888 belong >0 Flags %x + # next two are actually 64-bit times, we use only the lowermost 32 bits + >900 bedate x This dump %s, + >908 bedate x Previous dump %s, + + 24 lelong 0x19540119 new-fs dump file (ufs2, little endian), + >12 lelong >0 Volume %ld, + >692 lelong 0 Level zero, type: + >692 lelong >0 Level %d, type: + >0 lelong 1 tape header, + >0 lelong 2 beginning of file record, + >0 lelong 3 map of inodes on tape, + >0 lelong 4 continuation of file record, + >0 lelong 5 end of volume, + >0 lelong 6 map of inodes deleted, + >0 lelong 7 end of medium (for floppy), + >676 string >\0 Label %s, + >696 string >\0 Filesystem %s, + >760 string >\0 Device %s, + >824 string >\0 Host %s, + >888 lelong >0 Flags %x + # next two are actually 64-bit times, we use only the lowermost 32 bits + >896 ledate x This dump %s, + >904 ledate x Previous dump %s, >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607011635.k61GZR7O046244>