]> git.ipfire.org Git - thirdparty/util-linux.git/commit
ionice: make -t more tolerant
authorKarel Zak <kzak@redhat.com>
Fri, 22 Jul 2011 10:37:57 +0000 (12:37 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 22 Jul 2011 10:55:01 +0000 (12:55 +0200)
commitcbc1dc969b83d7cca64297b78d32d337c7ba3414
tree276790e1887ebd46c57ddad6ddc0a08d9325127d
parentfe040397f9f935188f97676ce0180ad0e76bb764
ionice: make -t more tolerant

* replace errx() with warnx() for unknown -c class

  The right place to check I/O scheduler features is in kernel. We should
  not try to be more smart than kernel.

* make the code ready (robust) for unknown sched.classes

* fix -t behavior

old version:
  $ ionice -c 4 -t bash
  ionice: bad prio class 4

new version:
  $ ionice -c 4 -t bash

Reported-by: Voelker, Bernhard" <bernhard.voelker@siemens-enterprise.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/ionice.c