When the file-system containing the audit log file is running low on

disk space a warning is printed.  Make this warning a bit more
informative.

Approved by:	rwatson
This commit is contained in:
Simon L. B. Nielsen 2008-06-10 20:05:32 +00:00
parent b7b4d1fd3f
commit 3bff0167b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179715

View File

@ -177,7 +177,9 @@ audit_record_write(struct vnode *vp, struct ucred *cred, void *data,
&cur_lowspace_trigger, 1)) {
(void)audit_send_trigger(
AUDIT_TRIGGER_LOW_SPACE);
printf("Warning: audit space low\n");
printf("Warning: disk space low (< %d%% free) "
"on audit log file-system\n",
audit_qctrl.aq_minfree);
}
}
}