Added: Cumulative parity check

This commit is contained in:
bergware
2021-12-16 11:45:19 +01:00
parent 4dee71fa41
commit 9817fafaa9
+4 -3
View File
@@ -19,6 +19,7 @@ Nchan="device_list,disk_load,parity_list"
$keyfile = file_exists($var['luksKeyfile']);
$missing = file_exists('/var/tmp/missing.tmp');
$encrypt = false;
$activeP = $var['mdResyncPos']>0;
/* only one of $present, $missing, or $wrong will be true, or all will be false */
$forced = $present = $wrong = false;
foreach ($disks as $disk) {
@@ -257,7 +258,7 @@ reload_page();
$('.tooltip_diskio').tooltipster({delay:100,trigger:'custom',triggerOpen:{mouseenter:true},triggerClose:{click:false,scroll:true,mouseleave:true}});
toggle_diskio(true);
<?
$parity = $var['mdResyncPos'] ? "<br><small>_(Disabled)_ -- _(Parity operation is running)_</small>" : "";
$parity = $activeP ? "<br><small>_(Disabled)_ -- _(Parity operation is running)_</small>" : "";
$mover = file_exists('/var/run/mover.pid') ? "<br><small>_(Disabled)_ -- _(Mover is running)_</small>" : "";
$btrfs = exec('pgrep -cf /sbin/btrfs') ? "<br><small>_(Disabled)_ -- _(BTRFS operation is running)_</small>" : "";
?>
@@ -297,7 +298,7 @@ parityStatus.on('message', function(data){
});
devices.start();
<?if ($var['mdResyncPos']):?>
<?if ($activeP):?>
setTimeout(function(){$('#pauseButton').prop('disabled',false);$('#cancelButton').prop('disabled',false);},250);
parityStatus.start();
<?else:?>
@@ -345,7 +346,7 @@ function formatWarning(val) {
<small>_(Yes, I want to do this)_</small></a>
</td></tr>
<? endif;
if (!$var['mdResyncPos']):
if (!$activeP):
if (strstr($var['mdResyncAction'],"recon")):?>
<tr><td></td><td><input type="submit" name="cmdCheck" value="_(Sync)_"></td><td>**_(Sync)_** _(will start **Parity-Sync** and/or **Data-Rebuild**)_.</td></tr>
<? elseif (strstr($var['mdResyncAction'],"clear")):?>