svn commit: r316938 - head/sbin/savecore

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Fri Apr 14 20:07:05 UTC 2017


> On Apr 14, 2017, at 13:04, Ngie Cooper (yaneurabeya) <yaneurabeya at gmail.com> wrote:
> 
> 
>> On Apr 14, 2017, at 13:02, Alan Somers <asomers at freebsd.org> 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 mini dumps.

Also: deleting truncated dumps sounds great to me: their value when truncated is pretty low from what I remember.
-Ngie

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170414/0c81e3b5/attachment.sig>


More information about the svn-src-head mailing list