From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 6 20:20:01 2012 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AAF01C1C for ; Thu, 6 Dec 2012 20:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8FCC88FC12 for ; Thu, 6 Dec 2012 20:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qB6KK0mG061369 for ; Thu, 6 Dec 2012 20:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qB6KK0BG061368; Thu, 6 Dec 2012 20:20:00 GMT (envelope-from gnats) Date: Thu, 6 Dec 2012 20:20:00 GMT Message-Id: <201212062020.qB6KK0BG061368@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Andy Kosela Subject: Re: bin/163992: dumpfs(8): dumpfs -m is broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andy Kosela List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 20:20:01 -0000 The following reply was made to PR bin/163992; it has been noted by GNATS. From: Andy Kosela To: bug-followup@freebsd.org Cc: freebsd@sopwith.solgatos.com Subject: Re: bin/163992: dumpfs(8): dumpfs -m is broken Date: Thu, 06 Dec 2012 21:19:04 +0100 This is a multi-part message in MIME format. --=_50c0fdb8.llS4mBD6t3PrprtFlk3TrGmzKqrbSQX0aw5WEeZ+SgpjW30k Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline I consider this a bug. Can you test the following patch? Thanks, --Andy --=_50c0fdb8.llS4mBD6t3PrprtFlk3TrGmzKqrbSQX0aw5WEeZ+SgpjW30k Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch.txt" Index: dumpfs.c =================================================================== --- dumpfs.c (revision 243937) +++ dumpfs.c (working copy) @@ -417,7 +417,8 @@ printf("-f %d ", fs->fs_fsize); printf("-g %d ", fs->fs_avgfilesize); printf("-h %d ", fs->fs_avgfpdir); - /* -i is dumb */ + printf("-i %d ", fs->fs_fsize * ((((fs->fs_fpg / fs->fs_frag) * + fs->fs_bsize) / fs->fs_ipg) / fs->fs_fsize + 1)); if (fs->fs_flags & FS_SUJ) printf("-j "); if (fs->fs_flags & FS_GJOURNAL) --=_50c0fdb8.llS4mBD6t3PrprtFlk3TrGmzKqrbSQX0aw5WEeZ+SgpjW30k--