Please sign in to comment.
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 <firstname.lastname@example.org> Reviewed-by: Tony Hutter <email@example.com> Reviewed-by: George Melikov <firstname.lastname@example.org> Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Signed-off-by: Garrett Fields <email@example.com> Closes #8004
- Loading branch information...