From b0569c7d4d744e3902ab606284411dd304ceafc6 Mon Sep 17 00:00:00 2001 From: Chris Coulson Date: Thu, 26 Feb 2009 09:06:15 +0200 Subject: s-s-d: Support setting the IO scheduler class and priority Add new option -I, --iosched . Closes: #443535 Signed-off-by: Guillem Jover --- ChangeLog | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 955fa43ca..49e0bb7e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,26 @@ +2009-02-26 Chris Coulson , + Guillem Jover + + * configure.ac (AC_CHECK_HEADERS): Add 'sys/syscall.h'. + * man/start-stop-daemon.8: Document new option --iosched. + * utils/start-stop-daemon.c [HAVE_SYS_SYSCALL_H]: Include + . + (HAVE_IOPRIO_SET) [SYS_ioprio_set, linux]: New macro. + (IOPRIO_CLASS_NONE, IOPRIO_CLASS_RT): New anonymous enum. + (IOPRIO_CLASS_BE, IOPRIO_CLASS_IDLE): Likewise. + (IOPRIO_WHO_PROCESS, IOPRIO_WHO_PGRP, IOPRIO_WHO_USER): Likewise. + (IOPRIO_CLASS_SHIFT, IOPRIO_PRIO_VALUE, IO_SCHED_PRIO_MIN) + (IO_SCHED_PRIO_MAX): New macros. + (io_sched): New variable. + (do_help): Document --iosched. + (ioprio_set) [HAVE_IOPRIO_SET]: New function. + (parse_io_schedule, set_io_schedule): Likewise. + (parse_options): Add 'iosched' to longopts. Add 'I:' to getopt_long + call. Handle 'I' as getopt_long return value. Call parse_io_schedule + if io_schedule_str is not NULL. + (main): Print io_sched values if --test is used. Call set_io_schedule + if io_sched is not NULL. + 2009-02-26 Romain Francoise , Guillem Jover -- cgit v1.2.3