From owner-svn-src-head@freebsd.org Fri Apr 14 20:04:36 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56E60D3EA9D; Fri, 14 Apr 2017 20:04:36 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com [IPv6:2607:f8b0:400e:c00::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 217DA1FD; Fri, 14 Apr 2017 20:04:36 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pf0-x230.google.com with SMTP id s16so44179652pfs.0; Fri, 14 Apr 2017 13:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=ZebSJd16E7ja05nWnz39h9nKWC2zCPpDy73zRsqwB44=; b=gvq+YFJAXHClT2fyhZ6qWT2AsnwEnadAQZA3bOi2+ooNJepC8HIOEID/slfLs1fcaT 04du6qdOfP4zRPwly8FJMDAmtEPX8Ba1lXznsoMkrny0p2N9WPc71Wx41FU2hjpDh2X9 Zfl8ln0ik/dwaZbuIxMjQdJtLFzb8NM+G/w/VlfCjzXC0ns5Qxf9FGrb7TFGU9nOQkLE A5LwzmFhnukoQ4CKGwG8bC2OwX/CFbgwBSkZSHPU5SUVqrUBShCxA1HGnMQe4bA2xuTi 2YGQxElf2LSJs91wAtsVazTkNSOKXu8IWnTvX0vC3Jagr4W78ojPhzcKL6IR4dh72Shg /pLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=ZebSJd16E7ja05nWnz39h9nKWC2zCPpDy73zRsqwB44=; b=aSGCXZmMTEWOXsQu/AWaUAkGcC3l6d1VRKDJTjs5bjn+O0DmrXWRtOrHnLv3rJrwme JkbMtZwG6jpWLHmP6u0b5dxqkc81NAgA8ocsOB0W+Iy/zW6ruPBU53UerGoI8pbHgnkx wbcp3N5id5HVBmXnQWrMinOsA5gCmUajzf8+fBXHLr/wAfwHc4TIACMniwEVoTGzhZZs R7lR72QynAGyMuDgArylsZ+VekzuXj5bSQOJZeWpP6C8aVTDxogcUTBlCRGLS3lghTix 8zGyRdrCspMFe7SL4aT0xeZml9hAObMyeImMfOFzjeox1MwuOzGxR37byxBPHErkz7YQ 8vqg== X-Gm-Message-State: AN3rC/6I8czDtu7ct1qCyLdaiuQNNQfBqsfnHkYbldSnmAuv2dFS2fxw wBmUWGaQNOQ03cx4Vd8= X-Received: by 10.99.223.70 with SMTP id h6mr8945310pgj.50.1492200275476; Fri, 14 Apr 2017 13:04:35 -0700 (PDT) Received: from pinklady.local (c-73-19-52-228.hsd1.wa.comcast.net. [73.19.52.228]) by smtp.gmail.com with ESMTPSA id b128sm4727562pgc.16.2017.04.14.13.04.34 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Apr 2017 13:04:34 -0700 (PDT) Subject: Re: svn commit: r316938 - head/sbin/savecore Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9D992930-BC47-4C34-9469-C80D9504EB99"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail From: "Ngie Cooper (yaneurabeya)" In-Reply-To: Date: Fri, 14 Apr 2017 13:04:33 -0700 Cc: Ngie Cooper , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Message-Id: <7DCBB59B-388F-463D-8FFF-06390E5B5165@gmail.com> References: <201704141941.v3EJfmCW003347@repo.freebsd.org> <499FA6FF-E691-4941-B96C-3806072D14AA@gmail.com> To: Alan Somers X-Mailer: Apple Mail (2.3124) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 20:04:36 -0000 --Apple-Mail=_9D992930-BC47-4C34-9469-C80D9504EB99 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Apr 14, 2017, at 13:02, Alan Somers wrote: ... > Right: check_size() needs to know the on-disk size of the core dump. > But it doesn't have any way to know the on-disk size until after it's > written everything to disk. That's why I simply disabled the check at > $WORK. Another possibility would be for savecore to ignore the > up-front check, but handle ENOSPC by deleting the fragmentary vmcore > file. I never tried to implement that. Let me dig through the gzip format a bit. There should be a reasonably = good upper bound approximation that we can use for compressed minidumps. Thanks! -Ngie --Apple-Mail=_9D992930-BC47-4C34-9469-C80D9504EB99 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJY8StRAAoJEPWDqSZpMIYVHy4P/3WBVmu2EtkkpvcIGCcO/2Bx YGCw021TgUG5BP1YF99gQUwgRaIk0cX6wj1XQxqS+UOyZPmsiyVGA64qF0ExibGt U1D8e8wBx/cz/3i0czH4oWGvboeN3S/5GRPDfPLcXKqqrBJIXw7a58zuS8Zvm6W8 2xHRD6DtxwsPW5RSPYnWcyb0Dvya1Y7U6BnEmirVjlKxbWeQE3zYiVuMvXiPoIUy TSMvO5gKpWuRkvg9uz8Uzl9d0pb6Z6EHm8UI6uUXDq4oZCULCkrG0quloedQTu5m EWRnK6Y6xxXNt1g8zre7/Ivyixs/7JirXVRpiYtSLNT4FOCXbYeF7iFiLdkOpZlN Xffz3wvw4l9a48Z/2gAEHd8D10NdmYMU5sfkykeCJMjHnBL+DScPxZb4HdOD9PDi 1Jj7pfSDZAk3E6FEV6z2i3wOlnwVI/r0UFORDX3M2bPjHCrI4PI6lRMZSiVUSqSE IqvkEMM9iI1twKKbS0F3UF8znbS3SPfX2FJ3WaG21plXMTCGoWU2k0PWIPn1FFHj yMgfTZUnFgvTywsQNVNe1newV663kYZxX0iXB8glmtGmw4nWi+eqcGQWSVJhJsNN A+8uayzrRspjr4RhQfBBirb4JbbNQ5vClkdkvISD0W88m6Nf8YT3iswgzPZwoYBn 96RzsLFZZ9HWLxUvLZze =Q9El -----END PGP SIGNATURE----- --Apple-Mail=_9D992930-BC47-4C34-9469-C80D9504EB99--