From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 30 03:40:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E8881065695 for ; Wed, 30 Dec 2009 03:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EF9268FC1B for ; Wed, 30 Dec 2009 03:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBU3e1C9054068 for ; Wed, 30 Dec 2009 03:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBU3e1E5054067; Wed, 30 Dec 2009 03:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 30 Dec 2009 03:40:01 GMT Resent-Message-Id: <200912300340.nBU3e1E5054067@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tigger Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C6F0106566B for ; Wed, 30 Dec 2009 03:34:04 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 6B08B8FC17 for ; Wed, 30 Dec 2009 03:34:04 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBU3Y4Do030745 for ; Wed, 30 Dec 2009 03:34:04 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBU3Y3Kd030744; Wed, 30 Dec 2009 03:34:03 GMT (envelope-from nobody) Message-Id: <200912300334.nBU3Y3Kd030744@www.freebsd.org> Date: Wed, 30 Dec 2009 03:34:03 GMT From: Tigger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/142155: dumpfs drops leading 0 (zero) from superblock id X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2009 03:40:02 -0000 >Number: 142155 >Category: bin >Synopsis: dumpfs drops leading 0 (zero) from superblock id >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 30 03:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Tigger >Release: FreeBSD 8.0 >Organization: n/a >Environment: FreeBSD eeeor.goo 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #8: Mon Dec 28 20:31:32 EST 2009 tigger@eeeor.goo:/usr/obj/usr/src/sys/EEEOR i386 >Description: dumpfs will drop a leading 0 (zero) from the reported id in the superblock location. I'm using dumpfs to get the ufsid of drives (is there are better way?) in order to add the ids to /etc/fstab - to prevent drive lost when moving drives around or adding new ones, Something I've been hit with twice in the last month, once one a remote box! >How-To-Repeat: As you can see below, the id should be '[ 4ae2d4ec 06f7fec5 ]', not '[ 4ae2d4ec 6f7fec5 ]' root@eeeor:/home/tigger# dumpfs / | head -18 magic 19540119 (UFS2) time Wed Dec 30 14:16:57 2009 superblock location 65536 id [ 4ae2d4ec 6f7fec5 ] ncg 6 size 524288 blocks 506487 bsize 16384 shift 14 mask 0xffffc000 fsize 2048 shift 11 mask 0xfffff800 frag 8 shift 3 fsbtodb 2 minfree 8% optim time symlinklen 120 maxbsize 16384 maxbpg 2048 maxcontig 8 contigsumsize 8 nbfree 41427 ndir 865 nifree 129262 nffree 17862 bpg 11761 fpg 94088 ipg 23552 unrefs 0 nindir 2048 inopb 64 maxfilesize 140806241583103 sbsize 2048 cgsize 16384 csaddr 3000 cssize 2048 sblkno 40 cblkno 48 iblkno 56 dblkno 3000 cgrotor 0 fmod 0 ronly 0 clean 0 avgfpdir 64 avgfilesize 16384 flags none fsmnt / volname swuid 0 root@eeeor:/home/tigger# df -hc / Filesystem Size Used Avail Capacity Mounted on /dev/ufsid/4ae2d4ec06f7fec5 989M 307M 603M 34% / total 989M 307M 603M 34% >Fix: No idea, sorry. >Release-Note: >Audit-Trail: >Unformatted: