freebsd-nq/contrib
Garrett Fields 5b3bfd86a4 Check scheduler for "noop" before setting "noop"
Originally code only checked for presence of "/sys/block/$i/queue/
scheduler".  "sh: write error: Invalid argument" was produced when
trying to set "noop" on certain devices (eg. virtio) when it isn't
a listed option. This modification continues to check for the presence
of "/sys/block/$i/queue/scheduler" and also checks that it contains
"noop" as an option before setting "noop".

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: Garrett Fields <ghfields@gmail.com>
Closes #8004
2018-10-10 08:46:22 -07:00
..
bash_completion.d Add bash completions by Aneurin Price. 2014-08-06 15:03:28 -07:00
dracut Use zfs-import.target in contrib/dracut 2018-07-31 10:15:41 -07:00
initramfs Check scheduler for "noop" before setting "noop" 2018-10-10 08:46:22 -07:00
pyzfs pyzfs: add missing libzfs_core functions 2018-08-20 10:11:52 -07:00
Makefile.am Adopt pyzfs from ClusterHQ 2018-05-01 10:33:35 -07:00