]> git.ipfire.org Git - thirdparty/util-linux.git/commit - schedutils/ionice.c
ionice: add the way to specify the target processes with pgid and uid
authorMasatake YAMATO <yamato@redhat.com>
Thu, 30 Jan 2014 14:52:38 +0000 (23:52 +0900)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Feb 2014 10:44:12 +0000 (11:44 +0100)
commitbd2ff3d2d952d75a6707846831623455647a9a8d
treedfe56a6a80ff14bbc7ba0b7d58a17b87e6a782f7
parentd6cecc3fbab62e5ccd850a41273b6ced24bb29d2
ionice: add the way to specify the target processes with pgid and uid

ioprio_get and ioprio_set system call accept not only process ID but
also process group ID(pgid) and user ID(uid) to specify the target
process(es).  However, ionice command accepts only process ID.  With
this patch a user can specify the target processes with pgid(-P
option) and uid(-u option).

[kzak@redhat.com: - tiny cleanup in usage()]

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/ionice.1
schedutils/ionice.c