diff options
author | Chris Coulson <chrisccoulson@googlemail.com> | 2009-02-26 09:06:15 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-02-26 09:06:15 +0200 |
commit | b0569c7d4d744e3902ab606284411dd304ceafc6 (patch) | |
tree | 82ba06ae53c7e213f93263d235694fbb4ebdf754 /ChangeLog | |
parent | 69c9250259d3abb8feb632898e5a495e74a33fc8 (diff) | |
download | dpkg-b0569c7d4d744e3902ab606284411dd304ceafc6.tar.gz |
s-s-d: Support setting the IO scheduler class and priority
Add new option -I, --iosched <class[:priority]>.
Closes: #443535
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -1,3 +1,26 @@ +2009-02-26 Chris Coulson <chrisccoulson@googlemail.com>, + Guillem Jover <guillem@debian.org> + + * 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 + <sys/syscall.h>. + (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 <rfrancoise@debian.org>, Guillem Jover <guillem@debian.org> |