summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-05-06 01:13:29 -0500
committerChris Buechler <cmb@pfsense.org>2016-05-06 01:14:05 -0500
commit0972379a34651d63b234fcf965b9dc2901fbcf93 (patch)
tree92c3ee7336c896d496f8446b3565bdeb7eb121c4 /src
parent96860e98c36e507a48e4c06e8c618d5287be2bf7 (diff)
downloadpfsense-0972379a34651d63b234fcf965b9dc2901fbcf93.zip
pfsense-0972379a34651d63b234fcf965b9dc2901fbcf93.tar.gz
Update diag_nanobsd.php now that permanent rw is default. Ticket #6184
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/diag_nanobsd.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_nanobsd.php b/src/usr/local/www/diag_nanobsd.php
index 921ed2f..4627e79 100644
--- a/src/usr/local/www/diag_nanobsd.php
+++ b/src/usr/local/www/diag_nanobsd.php
@@ -174,11 +174,13 @@ if ($mounted_rw) {
/* refcount_read returns -1 when shared memory section does not exist */
/* refcount can be zero here when the user has set nanobsd_force_rw */
/* refcount 1 is normal, so only display the count for abnormal values */
+ /*
if ($refcount == 1 || $refcount == 0 || $refcount == -1) {
$refdisplay = "";
} else {
$refdisplay = " ". sprintf(gettext("(Reference count %s)"), $refcount);
}
+ */
$lbl = gettext("Read/Write") . $refdisplay;
$btnlbl = gettext("Switch to Read-Only");
} else {
@@ -188,6 +190,7 @@ if ($mounted_rw) {
// Only show the changero button if force read/write is off, or the file system is not in writable state, or there is an unusual refcount.
// If force read/write is on, and the file system is in writable state, and refcount is normal then the user has no reason to mess about.
+/*
if (!isset($config['system']['nanobsd_force_rw']) || !$mounted_rw || ($refcount > 1)) {
$robtn = new Form_Button(
'changero',
@@ -198,12 +201,14 @@ if (!isset($config['system']['nanobsd_force_rw']) || !$mounted_rw || ($refcount
$robtn->addClass(($mounted_rw) ? 'btn-success' : 'btn-warning' . ' btn-sm');
$lbl .= ' ' . $robtn;
}
-
+*/
$section->addInput(new Form_StaticText(
'Read/Write status',
$lbl
-))->setHelp('This setting is only temporary, and can be switched dynamically in the background.');
+))->setHelp('NanoBSD is now always read-write to avoid read-write to read-only mount problems.');
+//))->setHelp('This setting is only temporary, and can be switched dynamically in the background.');
+/*
$section->addInput(new Form_Checkbox(
'nanobsd_force_rw',
'Permanent Read/Write',
@@ -223,6 +228,7 @@ $section->addInput(new Form_StaticText(
null,
$permbtn
));
+*/
$section->addInput(new Form_Input(
'destslice',
OpenPOWER on IntegriCloud