mirror of
https://github.com/unraid/webgui.git
synced 2026-02-26 04:08:41 -06:00
style: improve layout and readability in DeviceInfo.page
- Adjusted HTML structure for better alignment and spacing of elements, enhancing overall readability. - Updated form input handling to ensure consistent presentation and user experience. - Cleaned up deprecated file system warnings and improved layout for various sections.
This commit is contained in:
@@ -780,7 +780,8 @@ _(File system type)_:
|
||||
<?=mk_option(_var($disk,'fsType'), "luks:zfs", _('zfs')." - "._('encrypted'))?>
|
||||
<?=mk_option(_var($disk,'fsType'), "luks:btrfs", _('btrfs')." - "._('encrypted'))?>
|
||||
<?if (_var($disk,'slots',1) == 1) echo mk_option(_var($disk,'fsType'), "luks:reiserfs", _('reiserfs')." - "._('encrypted'), "disabled")?>
|
||||
</select><span id="reiserfs" class="warning"<?if (!fsType('reiserfs')):?> style="display:none"<?endif;?>><i class="fa fa-warning"></i> _(ReiserFS is deprecated, please use another file system)_!</span>
|
||||
</select>
|
||||
<span id="reiserfs" class="warning"<?if (!fsType('reiserfs')):?> style="display:none"<?endif;?>><i class="fa fa-warning"></i> _(ReiserFS is deprecated, please use another file system)_!</span>
|
||||
<?endif;?>
|
||||
|
||||
<?if (diskType('Data') || isPool($tag)):?>
|
||||
@@ -862,32 +863,42 @@ _(Critical disk utilization threshold)_ (%):
|
||||
|
||||
<?if (fsType('btrfs')):?>
|
||||
<?if (!maintenance_mode()):?>
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-hdd-o"></i>_(Pool Device Status)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-hdd-o"></i> _(Pool Device Status)_
|
||||
</span>
|
||||
</div>
|
||||
<form markdown="1" method="POST" action="/update.php" target="progressFrame">
|
||||
|
||||
_(pool device stats)_:
|
||||
: <?echo "<pre>" . htmlspecialchars(shell_exec("/sbin/btrfs dev stats -T ".escapeshellarg("/mnt/$tag")), ENT_QUOTES, 'UTF-8') . "</pre>"; ?>
|
||||
: <pre><?= htmlspecialchars(shell_exec("/sbin/btrfs dev stats -T ".escapeshellarg("/mnt/$tag")) ?? '', ENT_QUOTES, 'UTF-8') ?></pre>
|
||||
|
||||
<input type="hidden" name="#command" value="/webGui/scripts/btrfs_check">
|
||||
<input type="hidden" name="#arg[1]" value="reset">
|
||||
<input type="hidden" name="#arg[2]" value="/mnt/<?=$tag?>">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Reset)_">
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Reset)_">
|
||||
</span>
|
||||
</form>
|
||||
<?endif;?>
|
||||
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-balance-scale"></i>_(Balance Status)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-balance-scale"></i>_(Balance Status)_
|
||||
</span>
|
||||
</div>
|
||||
<form markdown="1" method="POST" action="/update.php" target="progressFrame" onsubmit="prepareFS(this,'btrfs-balance-<?=$tag?>','/mnt/<?=$tag?>')">
|
||||
<?if (_var($disk,'fsStatus')=="Mounted"):?>
|
||||
<?exec("$docroot/webGui/scripts/btrfs_balance status ".escapeshellarg("/mnt/$tag"), $balance_status, $retval)?>
|
||||
<?$usage = exec("/sbin/btrfs fi usage ".escapeshellarg("/mnt/$tag")." | grep -Pom1 '^Data,.+ \\(\\K[^%]+'");?>
|
||||
|
||||
_(btrfs filesystem usage)_:
|
||||
: <?echo "<pre>" . htmlspecialchars(shell_exec("/sbin/btrfs fi usage -T ".escapeshellarg("/mnt/$tag")), ENT_QUOTES, 'UTF-8') . "</pre>"; ?>
|
||||
: <pre><?= htmlspecialchars(shell_exec("/sbin/btrfs fi usage -T ".escapeshellarg("/mnt/$tag")) ?? '', ENT_QUOTES, 'UTF-8') ?></pre>
|
||||
|
||||
_(btrfs balance status)_:
|
||||
: <?echo "<pre id='btrfs-balance'>".implode("\n", $balance_status)."</pre>"?>
|
||||
: <pre id='btrfs-balance'><?= implode("\n", $balance_status) ?></pre>
|
||||
|
||||
<?if ($retval != 0):?>
|
||||
<input type="hidden" name="#command" value="/webGui/scripts/btrfs_balance">
|
||||
@@ -947,6 +958,7 @@ _(btrfs balance status)_:
|
||||
<input type="hidden" name="#include" value="/webGui/include/update.btrfs.php">
|
||||
<input type="hidden" name="#job" value="balance_<?=$tag?>;<?=$docroot?>/plugins/dynamix/scripts/btrfs_balance start /mnt/<?=$tag?> -dusage=50">
|
||||
<input type="hidden" name="hour" value="">
|
||||
|
||||
_(Balance schedule)_:
|
||||
: <select name="mode" onchange="presetBTRFS(this.form,'#balance-hour')">
|
||||
<?for ($m=0; $m<count($mode); $m++):?>
|
||||
@@ -971,39 +983,51 @@ _(Day of the month)_:
|
||||
</select>
|
||||
|
||||
_(Time of the day)_:
|
||||
: <span id="balance-hour1" style="display:none"><select name="hour1">
|
||||
<?for ($d=0; $d<=23; $d++):?>
|
||||
<?=mk_option(_var($$balance,'hour'), strval($d), sprintf("%02d", $d))?>
|
||||
<?endfor;?>
|
||||
</select>
|
||||
<select name="min">
|
||||
<?for ($d=0; $d<=55; $d+=5):?>
|
||||
<?=mk_option(_var($$balance,'min'), strval($d), sprintf("%02d", $d))?>
|
||||
<?endfor;?>
|
||||
</select> _(HH:MM)_</span>
|
||||
: <span id="balance-hour2" style="display:none"><select name="hour2">
|
||||
<?=mk_option(_var($$balance,'hour'), "*/1", _("Every hour"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/2", _("Every 2 hours"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/3", _("Every 3 hours"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/4", _("Every 4 hours"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/6", _("Every 6 hours"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/8", _("Every 8 hours"))?>
|
||||
</select></span>
|
||||
: <span id="balance-hour1" style="display:none">
|
||||
<select name="hour1">
|
||||
<?for ($d=0; $d<=23; $d++):?>
|
||||
<?=mk_option(_var($$balance,'hour'), strval($d), sprintf("%02d", $d))?>
|
||||
<?endfor;?>
|
||||
</select>
|
||||
<select name="min">
|
||||
<?for ($d=0; $d<=55; $d+=5):?>
|
||||
<?=mk_option(_var($$balance,'min'), strval($d), sprintf("%02d", $d))?>
|
||||
<?endfor;?>
|
||||
</select>
|
||||
_(HH:MM)_
|
||||
</span>
|
||||
<span id="balance-hour2" style="display:none">
|
||||
<select name="hour2">
|
||||
<?=mk_option(_var($$balance,'hour'), "*/1", _("Every hour"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/2", _("Every 2 hours"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/3", _("Every 3 hours"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/4", _("Every 4 hours"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/6", _("Every 6 hours"))?>
|
||||
<?=mk_option(_var($$balance,'hour'), "*/8", _("Every 8 hours"))?>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
_(Block group usage)_ (%):
|
||||
: <input type="number" name="usage" min="0" max="100" value="<?=_var($$balance,'usage')?>" placeholder="50">
|
||||
|
||||
|
||||
: <input type="submit" name="#apply" value="_(Apply)_"><input type="button" value="_(Done)_" onclick="done()">
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" name="#apply" value="_(Apply)_">
|
||||
<input type="button" value="_(Done)_" onclick="done()">
|
||||
</span>
|
||||
</form>
|
||||
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-paint-brush"></i>_(Scrub Status)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-paint-brush"></i>_(Scrub Status)_
|
||||
</span>
|
||||
</div>
|
||||
<form markdown="1" method="POST" action="/update.php" target="progressFrame" onsubmit="prepareFS(this,'btrfs-scrub-<?=$tag?>','/mnt/<?=$tag?>')">
|
||||
<?if (_var($disk,'fsStatus')=="Mounted"):?>
|
||||
<?exec("$docroot/webGui/scripts/btrfs_scrub status ".escapeshellarg("/mnt/$tag"), $scrub_status, $retval)?>
|
||||
|
||||
_(btrfs scrub status)_:
|
||||
: <?echo "<pre id='btrfs-scrub'>".implode("\n", $scrub_status)."</pre>"?>
|
||||
: <pre id='btrfs-scrub'><?=implode("\n", $scrub_status)?></pre>
|
||||
|
||||
<?if ($retval != 0):?>
|
||||
<input type="hidden" name="#command" value="/webGui/scripts/btrfs_scrub">
|
||||
@@ -1012,7 +1036,9 @@ _(btrfs scrub status)_:
|
||||
<input type="hidden" name="#arg[3]" value="">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Scrub)_">
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Scrub)_">
|
||||
</span>
|
||||
|
||||
:info_btrfs_scrub_help:
|
||||
|
||||
@@ -1022,7 +1048,9 @@ _(btrfs scrub status)_:
|
||||
<input type="hidden" name="#arg[2]" value="/mnt/<?=$tag?>">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Cancel)_"> *_(Running)_*
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Cancel)_"> *_(Running)_*
|
||||
</span>
|
||||
|
||||
:info_scrub_cancel_help:
|
||||
|
||||
@@ -1030,7 +1058,10 @@ _(btrfs scrub status)_:
|
||||
<?else:?>
|
||||
|
||||
|
||||
: <input type="submit" value="_(Scrub)_" disabled><b>_(Scrub)_</b> _(is only available when the filesyestem is mounted)_
|
||||
: <span class="inline-block">
|
||||
<input type="submit" value="_(Scrub)_" disabled>
|
||||
<span class="inline-block"><b>_(Scrub)_</b> _(is only available when the filesyestem is mounted)_</span>
|
||||
</span>
|
||||
|
||||
<?endif;?>
|
||||
</form>
|
||||
@@ -1067,36 +1098,48 @@ _(Day of the month)_:
|
||||
</select>
|
||||
|
||||
_(Time of the day)_:
|
||||
: <span id="scrub-hour1" style="display:none"><select name="hour1">
|
||||
<?for ($d=0; $d<=23; $d++):?>
|
||||
<?=mk_option(_var($$scrub,'hour'), strval($d), sprintf("%02d", $d))?>
|
||||
<?endfor;?>
|
||||
</select>
|
||||
<select name="min">
|
||||
<?for ($d=0; $d<=55; $d+=5):?>
|
||||
<?=mk_option(_var($$scrub,'min'), strval($d), sprintf("%02d", $d))?>
|
||||
<?endfor;?>
|
||||
</select> _(HH:MM)_</span>
|
||||
: <span id="scrub-hour2" style="display:none"><select name="hour2">
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/1", _("Every hour"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/2", _("Every 2 hours"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/3", _("Every 3 hours"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/4", _("Every 4 hours"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/6", _("Every 6 hours"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/8", _("Every 8 hours"))?>
|
||||
</select></span>
|
||||
: <span id="scrub-hour1" style="display:none">
|
||||
<select name="hour1">
|
||||
<?for ($d=0; $d<=23; $d++):?>
|
||||
<?=mk_option(_var($$scrub,'hour'), strval($d), sprintf("%02d", $d))?>
|
||||
<?endfor;?>
|
||||
</select>
|
||||
<select name="min">
|
||||
<?for ($d=0; $d<=55; $d+=5):?>
|
||||
<?=mk_option(_var($$scrub,'min'), strval($d), sprintf("%02d", $d))?>
|
||||
<?endfor;?>
|
||||
</select>
|
||||
_(HH:MM)_
|
||||
</span>
|
||||
<span id="scrub-hour2" style="display:none">
|
||||
<select name="hour2">
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/1", _("Every hour"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/2", _("Every 2 hours"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/3", _("Every 3 hours"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/4", _("Every 4 hours"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/6", _("Every 6 hours"))?>
|
||||
<?=mk_option(_var($$scrub,'hour'), "*/8", _("Every 8 hours"))?>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
|
||||
: <input type="submit" name="#apply" value="_(Apply)_"><input type="button" value="_(Done)_" onclick="done()">
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" name="#apply" value="_(Apply)_">
|
||||
<input type="button" value="_(Done)_" onclick="done()">
|
||||
</span>
|
||||
</form>
|
||||
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-shield"></i>_(Check Filesystem Status)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-shield"></i>_(Check Filesystem Status)_
|
||||
</span>
|
||||
</div>
|
||||
<form markdown="1" method="POST" action="/update.php" target="progressFrame" onsubmit="prepareFS(this,'btrfs-check-<?=$tag?>','/dev/<?=_var($disk,'deviceSb')?> <?=_var($disk,'id')?>')">
|
||||
<?if (maintenance_mode()):?>
|
||||
<?exec("$docroot/webGui/scripts/btrfs_check status /dev/"._var($disk,'deviceSb')." "._var($disk,'id'), $check_status, $retval)?>
|
||||
|
||||
_(btrfs check status)_:
|
||||
: <?echo "<pre id='btrfs-check'>".implode("\n", $check_status)."</pre>"?>
|
||||
: <pre id='btrfs-check'><?=implode("\n", $check_status)?></pre>
|
||||
|
||||
<?if ($retval == 0):?>
|
||||
<input type="hidden" name="#command" value="/webGui/scripts/btrfs_check">
|
||||
@@ -1105,7 +1148,11 @@ _(btrfs check status)_:
|
||||
<input type="hidden" name="#arg[3]" value="<?=_var($disk,'id')?>">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Check)_"><input type="text" name="#arg[4]" maxlength="256" value="--readonly"> _(Options (see Help))_
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Check)_">
|
||||
<input type="text" name="#arg[4]" maxlength="256" value="--readonly">
|
||||
<span>_(Options (see Help))_</span>
|
||||
</span>
|
||||
|
||||
:info_btrfs_check_help:
|
||||
|
||||
@@ -1133,7 +1180,11 @@ _(btrfs check status)_:
|
||||
</form>
|
||||
<?endif;?>
|
||||
<?if (fsType('zfs') && !isSubpool($name)):?>
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-hdd-o"></i>_(Pool Status)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-hdd-o"></i>_(Pool Status)_
|
||||
</span>
|
||||
</div>
|
||||
<form markdown="1" method="POST" action="/update.php" target="progressFrame" onsubmit="prepareFS(this,'zfs-scrub-<?=$tag?>','<?=$tag?>')">
|
||||
<?if (_var($disk,'fsStatus')=="Mounted"):?>
|
||||
<?exec("$docroot/webGui/scripts/zfs_scrub status ".escapeshellarg($tag), $zfs_status, $retval); $zfs_status = implode("\n",$zfs_status)?>
|
||||
@@ -1148,10 +1199,12 @@ _(zfs pool status)_:
|
||||
<input type="hidden" name="#arg[2]" value="<?=$tag?>">
|
||||
|
||||
|
||||
: <input type="submit" id="zfs-button" value="<?=$zfs_cmd=='start' ? _('Scrub') : _('Clear')?>">
|
||||
<?if (! is_upgraded_ZFS_pool($name)):?>
|
||||
<input type="button" id="upgradeButton" value="_(Upgrade Pool)_" onclick="upgradeZpool()">
|
||||
<?endif;?>
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" id="zfs-button" value="<?=$zfs_cmd=='start' ? _('Scrub') : _('Clear')?>">
|
||||
<?if (! is_upgraded_ZFS_pool($name)):?>
|
||||
<input type="button" id="upgradeButton" value="_(Upgrade Pool)_" onclick="upgradeZpool()">
|
||||
<?endif;?>
|
||||
</span>
|
||||
|
||||
:info_zfs_scrub_help:
|
||||
|
||||
@@ -1169,11 +1222,20 @@ _(zfs pool status)_:
|
||||
<?else:?>
|
||||
|
||||
|
||||
: <input type="submit" value="_(Scrub)_" disabled><?=!$tag||$tag==prefix($tag) ? "<b>"._('Scrub')."</b> "._('is only available when the filesyestem is mounted') : sprintf(_('See %s Settings'),ucfirst(prefix($tag)))?>
|
||||
: <span class="inline-block">
|
||||
<input type="submit" value="_(Scrub)_" disabled>
|
||||
<span class="inline-block">
|
||||
<?=!$tag||$tag==prefix($tag) ? "<b>"._('Scrub')."</b> "._('is only available when the filesyestem is mounted') : sprintf(_('See %s Settings'),ucfirst(prefix($tag)))?>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<?endif;?>
|
||||
<?if (_var($disk,'fsStatus')=="Mounted"):?>
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-info"></i>_(Pool Information)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-info"></i>_(Pool Information)_
|
||||
</span>
|
||||
</div>
|
||||
<?exec("/usr/sbin/zpool list -v ".escapeshellarg($tag), $zfs_info_status, $info_retval); $zfs_info_status = implode("\n",$zfs_info_status)?>
|
||||
|
||||
_(zfs pool information)_:
|
||||
@@ -1183,7 +1245,11 @@ _(zfs pool information)_:
|
||||
</form>
|
||||
<hr>
|
||||
<?$scrub = str_replace('-','_',"scrub_$tag")?>
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-paint-brush"></i>_(Scrub Schedule)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-paint-brush"></i>_(Scrub Schedule)_
|
||||
</span>
|
||||
</div>
|
||||
<form markdown="1" name="scrub_schedule" method="POST" action="/update.php" target="progressFrame" onsubmit="prepareZFS(this)">
|
||||
<input type="hidden" name="#file" value="dynamix/dynamix.cfg">
|
||||
<input type="hidden" name="#section" value="<?=$scrub?>">
|
||||
@@ -1235,17 +1301,24 @@ _(Time of the day)_:
|
||||
</select></span>
|
||||
|
||||
|
||||
: <input type="submit" name="#apply" value="_(Apply)_"><input type="button" value="_(Done)_" onclick="done()">
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" name="#apply" value="_(Apply)_">
|
||||
<input type="button" value="_(Done)_" onclick="done()">
|
||||
</span>
|
||||
</form>
|
||||
<?endif;?>
|
||||
<?if (fsType('reiserfs')):?>
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-shield"></i>_(Check Filesystem Status)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-shield"></i>_(Check Filesystem Status)_
|
||||
</span>
|
||||
</div>
|
||||
<form markdown="1" method="POST" action="/update.php" target="progressFrame" onsubmit="prepareFS(this,'rfs-check-<?=$tag?>','/dev/<?=_var($disk,'deviceSb')?> <?=_var($disk,'id')?>')">
|
||||
<?if (maintenance_mode()):?>
|
||||
<?exec("$docroot/webGui/scripts/reiserfs_check status /dev/"._var($disk,'deviceSb')." "._var($disk,'id'), $check_status, $retval)?>
|
||||
|
||||
_(reiserfsck status)_:
|
||||
: <?echo "<pre id='rfs-check'>".implode("\n", $check_status)."</pre>"?>
|
||||
: <pre id='rfs-check'><?=implode("\n", $check_status)?></pre>
|
||||
|
||||
<?if ($retval != 0):?>
|
||||
<input type="hidden" name="#command" value="/webGui/scripts/reiserfs_check">
|
||||
@@ -1257,7 +1330,7 @@ _(reiserfsck status)_:
|
||||
: <span class="inline-block">
|
||||
<input type="submit" value="_(Check)_">
|
||||
<input type="text" name="#arg[4]" maxlength="256" value="">
|
||||
<span class="inline-block">_(Options (see Help))_</span>
|
||||
<span>_(Options (see Help))_</span>
|
||||
</span>
|
||||
|
||||
:info_reiserfs_check_help:
|
||||
@@ -1271,7 +1344,7 @@ _(reiserfsck status)_:
|
||||
|
||||
: <span class="inline-block">
|
||||
<input type="submit" value="_(Cancel)_">
|
||||
<span class="inline-block">*_(Running)_*</span>
|
||||
<span>*_(Running)_*</span>
|
||||
</span>
|
||||
|
||||
:info_reiserfs_cancel_help:
|
||||
@@ -1282,20 +1355,24 @@ _(reiserfsck status)_:
|
||||
|
||||
: <span class="inline-block">
|
||||
<input type="submit" value="_(Check)_" disabled>
|
||||
<span class="inline-block">**_(Check)_** _(is only available when array is Started in **Maintenance** mode)_.
|
||||
<span>**_(Check)_** _(is only available when array is Started in **Maintenance** mode)_.
|
||||
</span>
|
||||
|
||||
<?endif;?>
|
||||
</form>
|
||||
<?endif;?>
|
||||
<?if (fsType('xfs')):?>
|
||||
<div class="title nocontrol"><span class="left"><i class="title fa fa-shield"></i>_(Check Filesystem Status)_</span></div>
|
||||
<div class="title nocontrol">
|
||||
<span class="left">
|
||||
<i class="title fa fa-shield"></i>_(Check Filesystem Status)_
|
||||
</span>
|
||||
</div>
|
||||
<form markdown="1" method="POST" action="/update.php" target="progressFrame" onsubmit="prepareFS(this,'xfs-check-<?=$tag?>','/dev/<?=_var($disk,'deviceSb')?> <?=_var($disk,'id')?>')">
|
||||
<?if (maintenance_mode()):?>
|
||||
<?exec("$docroot/webGui/scripts/xfs_check status /dev/"._var($disk,'deviceSb')." "._var($disk,'id'), $check_status, $retval)?>
|
||||
|
||||
_(xfs_repair status)_:
|
||||
: <?echo "<pre id='xfs-check'>".implode("\n", $check_status)."</pre>"?>
|
||||
: <pre id='xfs-check'><?=implode("\n", $check_status)?></pre>
|
||||
|
||||
<?if ($retval == 0 || $retval == 8):?>
|
||||
<input type="hidden" name="#command" value="/webGui/scripts/xfs_check">
|
||||
@@ -1305,7 +1382,10 @@ _(xfs_repair status)_:
|
||||
<input type="hidden" name="#arg[4]" value="-n">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Check)_"><?if ($retval == 0): ?> _(No file system corruption detected)_.<?endif; ?>
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Check)_">
|
||||
<?if ($retval == 0): ?> _(No file system corruption detected)_.<?endif; ?>
|
||||
</span>
|
||||
|
||||
:info_xfs_check_help:
|
||||
|
||||
@@ -1317,7 +1397,10 @@ _(xfs_repair status)_:
|
||||
<input type="hidden" name="#arg[4]" value="-e">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Fix)_"><span style="color: red;">_(File system corruption detected)_.</span>
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Fix)_">
|
||||
<span style="color: red;">_(File system corruption detected)_.</span>
|
||||
</span>
|
||||
|
||||
:info_xfs_check_help:
|
||||
|
||||
@@ -1329,7 +1412,10 @@ _(xfs_repair status)_:
|
||||
<input type="hidden" name="#arg[4]" value="-eL">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Zero Log)_"><span style="color: red;">_(Dirty log detected)_.</span>
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Zero Log)_">
|
||||
<span style="color: red;">_(Dirty log detected)_.</span>
|
||||
</span>
|
||||
|
||||
<p>_(Note)_: _(While there is some risk, if it is not possible to first mount the filesystem to clear the log, zeroing it is the only option to try and repair the filesystem, and in most cases it results in little or no data loss)_.</p>
|
||||
|
||||
@@ -1343,7 +1429,10 @@ _(xfs_repair status)_:
|
||||
<input type="hidden" name="#arg[4]" value="-n">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Check)_">_(File system corruption fixed)_
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Check)_">
|
||||
_(File system corruption fixed)_
|
||||
</span>
|
||||
|
||||
:info_xfs_check_help:
|
||||
|
||||
@@ -1353,7 +1442,10 @@ _(xfs_repair status)_:
|
||||
<input type="hidden" name="#arg[2]" value="/dev/<?=_var($disk,'deviceSb')?>">
|
||||
|
||||
|
||||
: <input type="submit" value="_(Cancel)_"> *_(Running)_*
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Cancel)_">
|
||||
*_(Running)_*
|
||||
</span>
|
||||
|
||||
:info_xfs_cancel_help:
|
||||
|
||||
@@ -1363,7 +1455,7 @@ _(xfs_repair status)_:
|
||||
|
||||
: <span class="inline-block">
|
||||
<input type="submit" value="_(Check)_" disabled>
|
||||
<span class="inline-block">**_(Check)_** _(is only available when array is Started in **Maintenance** mode)_.
|
||||
<span>**_(Check)_** _(is only available when array is Started in **Maintenance** mode)_.
|
||||
</span>
|
||||
|
||||
<?endif;?>
|
||||
|
||||
Reference in New Issue
Block a user