From owner-cvs-sbin Mon Oct 14 15:24:59 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA00522 for cvs-sbin-outgoing; Mon, 14 Oct 1996 15:24:59 -0700 (PDT) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA00471; Mon, 14 Oct 1996 15:24:26 -0700 (PDT) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <14760(3)>; Mon, 14 Oct 1996 15:23:54 PDT Received: from localhost ([127.0.0.1]) by crevenia.parc.xerox.com with SMTP id <177480>; Mon, 14 Oct 1996 15:23:47 -0700 X-Mailer: exmh version 1.6.7 5/3/96 To: Bruce Evans cc: cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Subject: Re: cvs commit: src/sbin/savecore savecore.c In-reply-to: Your message of "Mon, 14 Oct 1996 14:38:13 PDT." <199610142138.HAA13903@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 14 Oct 1996 15:23:35 PDT From: Bill Fenner Message-Id: <96Oct14.152347pdt.177480@crevenia.parc.xerox.com> Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199610142138.HAA13903@godzilla.zeta.org.au>you write: >However, >writing the last K is unlikely to work anyway because statfs can't >report the exact amount free in advance (it can't know how many >indirect blocks there will be in advance). Thus setting minfree to >0 is bogus. But savecore could make a pretty good guess about the number of indirect blocks, right? needed = kernelsize + dumpsize; needed += fudge(needed); Bill