Misc. tweaks.

This commit is contained in:
Tom Mortensen
2016-01-23 11:33:18 -08:00
parent b0ad16c8b0
commit 74b7d4871f
2 changed files with 4 additions and 3 deletions

View File

@@ -163,14 +163,15 @@ if (file_exists($realfile)) {
<input type="hidden" name="#command" value="/webGui/scripts/btrfs_scrub">
<input type="hidden" name="#arg[1]" value="start">
<input type="hidden" name="#arg[2]" value="/var/lib/docker">
<input type="hidden" name="#arg[3]" value="-r">
<dl>
<dt>&nbsp;</dt>
<dd><input type="submit" value="Scrub"><label><input type="checkbox" name="#arg[3]" value="-r" checked> Don't fix file system errors</label></dd>
<dd><input type="submit" value="Scrub"><label><input type="checkbox" name="#arg[3]" value=""> Correct file system errors</label></dd>
</dl>
<blockquote class="inline_help">
<p><b>Scrub</b> runs the <i>btrfs scrub</i> program to check file system integrity.</p>
<p>If repair is needed you should uncheck the <i>Don't fix file system errors</i> option and run a second Scrub pass; this will permit <i>btrfs scrub</i> to fix the file system.</p>
<p>If repair is needed you should check the *Correct file system errors* and run a second Scrub pass; this will permit <i>btrfs scrub</i> to fix the file system.</p>
</blockquote>
<?else:?>

View File

@@ -8,7 +8,7 @@ case "$1" in
# one might wonder: why exec the scrub command, passing -B and put in background, vs just
# executing scrub without -B and without explicit background. It's because it handles case
# where user adds -B themselves as one of the options, which would hang webGui process until
# scrub completes which would not be good. scrub balance does not have have this btw.
# scrub completes which would not be good. btrfs balance does not have this btw.
exec /sbin/btrfs scrub start -B $3 $2 &>/dev/null &
;;
'status')