Date: Thu, 6 Dec 2012 20:20:00 GMT From: Andy Kosela <akosela@andykosela.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/163992: dumpfs(8): dumpfs -m is broken Message-ID: <201212062020.qB6KK0BG061368@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/163992; it has been noted by GNATS. From: Andy Kosela <akosela@andykosela.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212062020.qB6KK0BG061368>