Defaults if not other specified to only collect data from mounted
devices. Do not grab any uuid details from those volumes and also do
not try to determine the disk usage.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
my (%options) = @_;
my %volumes;
+ # Defaults.
+ my %defaults = (
+ "devices" => "mounted",
+ "uuids" => "False",
+ "df" => "False"
+ );
+
+ # Merge and overwrite the defaults with the given options.
+ %options = (%defaults, %options);
+
# Grab all available devices if requested.
if($options{'devices'} eq "all") {
# Get all available devices.