]> err.no Git - util-linux/commit
ionice: add -t option
authorLubomir Kundrak <lkundrak@redhat.com>
Mon, 28 Apr 2008 11:15:26 +0000 (13:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Jun 2008 11:08:51 +0000 (13:08 +0200)
commit4d125dfc419b9e54dcec85c8a4e929de4d3a4b50
treeee59095ca7640940ab388eb8f94ed4f9442fc210
parent0b0beca2bbc88abd3d20a70a19a27b9c4fdaba4a
ionice: add -t option

This patch allows "tolerant" behavior, i.e. proceeding even if
priority could not be set. This might be of use in case something
(selinux, old kernel, etc.) does not allow the requested scheduling
priority to be set.

This could be to some extend done as follows:

ionice -c3 command || command

but the downside is that one could not really tell if what failed was
setting priority or command itself, which could result in duplicate
command run.

This patch solves the situation, so that user can do

ionice -t -c3 command

Addresses-Red-Hat-Bugzilla: #443842
Signed-off-by: Lubomir Kundrak <lkundrak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/ionice.1
schedutils/ionice.c