clean(linux/local): remove space reservation useless code (#2956)
This commit is contained in:
parent
5b71060c20
commit
0e85d2332f
|
@ -160,9 +160,6 @@ sub manage_selection {
|
||||||
$mount !~ /$self->{option_results}->{filter_mountpoint}/);
|
$mount !~ /$self->{option_results}->{filter_mountpoint}/);
|
||||||
|
|
||||||
$size *= 1024;
|
$size *= 1024;
|
||||||
if (defined($self->{option_results}->{space_reservation})) {
|
|
||||||
$size = int($size - ($self->{option_results}->{space_reservation} * $size / 100));
|
|
||||||
}
|
|
||||||
$self->{disks}->{$mount} = { display => $mount, fs => $fs, type => $type, total => $size, used => $used * 1024 };
|
$self->{disks}->{$mount} = { display => $mount, fs => $fs, type => $type, total => $size, used => $used * 1024 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -215,11 +212,6 @@ Filter filesystem type (regexp can be used).
|
||||||
|
|
||||||
Filter filesystem (regexp can be used).
|
Filter filesystem (regexp can be used).
|
||||||
|
|
||||||
=item B<--space-reservation>
|
|
||||||
|
|
||||||
Some filesystem has space reserved (like ext4 for root).
|
|
||||||
The value is in percent of total (Default: none).
|
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
Loading…
Reference in New Issue