Commit bfecaf65 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added the checkkomspace program.

Import fsusage, from GNU fileutils-4.1.
Testsuite: slow machines workaround.
parent 3bb3cf16
2003-10-03 Per Cederqvist <ceder@ceder.dyndns.org>
Added the checkkomspace program.
* doc/lyskomd.texi (Parameters): Document these:
Free space warning level
Free space warning percent
Free inodes warning level
Free inodes warning percent
Free space critical level
Free space critical percent
Free inodes critical level
Free inodes critical percent
(Invoking checkkomspace): New node.
* src/server/stderrlog.c: New file.
(kom_log): Moved here from dbck.c
(restart_kom): Ditto.
* src/server/server-config.c (parameters): Added these parameters:
Free space warning level
Free space warning percent
Free inodes warning level
Free inodes warning percent
Free space critical level
Free space critical percent
Free inodes critical level
Free inodes critical percent
* src/server/param.h (struct kom_par): Added
chkspc_warn_space_abs, chkspc_warn_space_percent,
chkspc_warn_inode_abs, chkspc_warn_inode_percent,
chkspc_crit_space_abs, chkspc_crit_space_percent,
chkspc_crit_inode_abs and chkspc_crit_inode_percent.
* src/server/dbck.c (kom_log): Moved to stderrlog.c.
(restart_kom): Ditto.
* src/server/checkkomspace.c: New file.
* src/server/Makefile.am (sbin_PROGRAMS): Added checkkomspace, but
only if HAVE_FSUSAGE.
(READ_CONFIG): Removed log.c.
(komrunning_SOURCES): Added log.c.
(updateLysKOM_SOURCES): Added log.c.
(checkkomspace_SOURCES): New variable.
(dbck_SOURCES): Added strderrlog.c.
(splitkomdb_SOURCES): Added log.c.
* src/server/.cvsignore: Added checkkomspace.
* src/server/testsuite/lyskomd.0/Makefile.am (EXTRA_DIST): Added
50.exp.
* src/server/testsuite/lyskomd.0/50.exp: New file. Test
checkkomspace.
Import fsusage, from GNU fileutils-4.1.
* AUTHORS: Document the origin of fsusage.
* Makefile.am (SUBDIRS): Added m4.
(ACLOCAL_AMFLAGS): Added -I m4.
* m4/fsusage.m4: New file, taken verbatim from GNU fileutils-4.1.
* m4/Makefile.am: New file.
* mkmi: Added "-I m4" to top-level aclocal.
* src/server/fsusage.h: New file, taken verbatim from GNU
fileutils-4.1.
* src/server/fsusage.c: New file, taken verbatim from GNU
fileutils-4.1.
* configure.in: Added several tests required by fsusage:
(AC_C_VOLATILE): Required by fsusage.
(AC_CHECK_HEADERS): Added inttypes.h, limits.h, sys/mount.h,
sys/vfs.h, sys/fs/s5param.h, sys/filsys.h, sys/statfs.h,
sys/statvfs.h, sys/dustat.h, fcntl.h.
(jm_FILE_SYSTEM_USAGE): Call it.
(HAVE_FSUSAGE): New automake conditional.
(AC_CONFIG_FILES): Added m4/Makefile.
Testsuite: slow machines workaround.
* src/server/testsuite/lyskomd.0/29.exp (startup): Increase the
sync interval to 6 hours, so that it doesn't interfere on slow
machines.
2003-08-31 Per Cederqvist <ceder@ceder.dyndns.org> 2003-08-31 Per Cederqvist <ceder@ceder.dyndns.org>
Fixed errors in the generated grammars found by Peter Zander. Fixed errors in the generated grammars found by Peter Zander.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment