svn commit: r316938 - head/sbin/savecore

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


> 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 minidumps.
Thanks!
-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-all/attachments/20170414/6b3e9e9f/attachment-0001.sig>


More information about the svn-src-all mailing list