},
used => { type => 'string', optional => 1 },
gpt => { type => 'boolean' },
+ mounted => { type => 'boolean' },
size => { type => 'integer'},
osdid => { type => 'integer'},
vendor => { type => 'string', optional => 1 },
size => $sysdata->{size},
serial => $data->{serial},
gpt => $data->{gpt},
+ mounted => exists $mounted->{$devpath},
rpm => $data->{rpm},
type => $type,
wwn => $data->{wwn},
}
my $fstype = $info->{fstype};
- if (defined($fstype)) {
- return "${fstype} (mounted)" if $mounted->{$devpath};
- return "${fstype}";
- }
+ return "${fstype}" if defined($fstype);
return 'mounted' if $mounted->{$devpath};
return if !$is_partition;
$partitions->{$part}->{devpath} = "$partpath/$part";
$partitions->{$part}->{parent} = "$devpath";
+ $partitions->{$part}->{mounted} = exists $mounted->{"$partpath/$part"};
$partitions->{$part}->{gpt} = $data->{gpt};
$partitions->{$part}->{type} = 'partition';
$partitions->{$part}->{size} =