svn commit: r316740 - head/sbin/savecore
Ngie Cooper
ngie at FreeBSD.org
Wed Apr 12 20:08:41 UTC 2017
Author: ngie
Date: Wed Apr 12 20:08:39 2017
New Revision: 316740
URL: https://svnweb.freebsd.org/changeset/base/316740
Log:
Clarify `minfree` warning message in check_space(..)
- State that the units are kB.
- Be more complete/concise in terms of what is required (in this case
`minfree` must be at least `X`kB)
MFC after: 7 weeks
Sponsored by: Dell EMC Isilon
Modified:
head/sbin/savecore/savecore.c
Modified: head/sbin/savecore/savecore.c
==============================================================================
--- head/sbin/savecore/savecore.c Wed Apr 12 19:27:14 2017 (r316739)
+++ head/sbin/savecore/savecore.c Wed Apr 12 20:08:39 2017 (r316740)
@@ -303,7 +303,8 @@ check_space(const char *savedir, off_t d
needed -= saved_dump_size(bounds);
if ((minfree > 0 ? spacefree : totfree) - needed < minfree) {
syslog(LOG_WARNING,
- "no dump, not enough free space on device (%lld available, need %lld)",
+ "no dump: not enough free space on device (%lldkB "
+ "available; need at least %lldkB)",
(long long)(minfree > 0 ? spacefree : totfree),
(long long)needed);
return (0);
More information about the svn-src-all
mailing list