mirror of
https://github.com/unraid/webgui.git
synced 2026-05-07 12:51:21 -05:00
Added: Cumulative parity check
This commit is contained in:
@@ -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")):?>
|
||||
|
||||
Reference in New Issue
Block a user