MFC r316740:

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)
This commit is contained in:
Enji Cooper 2017-05-31 08:42:44 +00:00
parent 3df1162dbc
commit 9a83895417
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=319305

View File

@ -277,7 +277,8 @@ check_space(const char *savedir, off_t dumpsize, int bounds)
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);