Fix as the small limit is much smaller
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled

(does it even make sense to have?)

https://forum.virtualmin.com/t/backup-and-restore-failures-no-space-left-on-device/136639/32?u=ilia
This commit is contained in:
Ilia Ross
2026-02-25 01:40:02 +02:00
parent 7cbe00ade2
commit d4850c3aa3

View File

@@ -85,7 +85,7 @@ my @rv = ({ 'type' => 'html',
# Check if the filesystem the Webmin temp dir is on is too small
my $tmp = $gconfig{'tempdir'} || &default_webmin_temp_dir();
my $small = $gconfig{'tempdir_min_size'} || 10*1024*1024*1024; # 10 GB
my $small = $gconfig{'tempdir_min_size'} || 10*1024*1024; # 10 MB
foreach my $disk (sort { length($b->{'dir'}) <=> length($a->{'dir'}) } @$disks) {
if (&is_under_directory($disk->{'dir'}, $tmp)) {
if ($disk->{'total'} <= $small && &foreign_available("webmin")) {