ureadahead: Add --force-ssd-mode option for vms

Adds command line option: --force-ssd-mode (off by default).
Querying sysfs to detect whether disk is rotational does not work for
virtual devices in vm, and if set will write pack header with rotational
field set to 0. This option will remove running unnecessary code
intended for hdd; any attempts to set highest priority (IOPRIO_CLASS_RT)
requiring CAP_SYS_ADMIN capability which ARCVM SELinux will deny.

There is no functional effect if option is not used.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
3 files changed