summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_advanced_misc.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-01 19:26:51 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-01 19:26:51 +0545
commit28a05cf19c62cc75c9d99fc46c8aecf1091e1ef6 (patch)
tree0d638ac70b5cffba030f3613c2d5553d22393dca /src/usr/local/www/system_advanced_misc.php
parentdb653fc6f1fea2a4807320d9bd50f362490ab2d5 (diff)
downloadpfsense-28a05cf19c62cc75c9d99fc46c8aecf1091e1ef6.zip
pfsense-28a05cf19c62cc75c9d99fc46c8aecf1091e1ef6.tar.gz
Use MiB units for memory disk size
Forum: https://forum.pfsense.org/index.php?topic=106547.0 The underlying FreeBSD command seems to allocate space in MiB - e.g. https://www.freebsd.org/doc/handbook/disks-virtual.html examples show a 5m disk getting 10240 sectors (of 512 bytes) = 5120 KiB = 5 MiB. Even though the formatted space shown by df ends up being less, the underlying total allocated space is the specified size in MiB. /etc/rc.embedded does commands like: mdmfs -S -M -s 123m md /tmp Which will make a 123MiB memory disk.
Diffstat (limited to 'src/usr/local/www/system_advanced_misc.php')
-rw-r--r--src/usr/local/www/system_advanced_misc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr/local/www/system_advanced_misc.php b/src/usr/local/www/system_advanced_misc.php
index 844b991..b104137 100644
--- a/src/usr/local/www/system_advanced_misc.php
+++ b/src/usr/local/www/system_advanced_misc.php
@@ -130,11 +130,11 @@ if ($_POST) {
}
if (!empty($_POST['use_mfs_tmp_size']) && (!is_numeric($_POST['use_mfs_tmp_size']) || ($_POST['use_mfs_tmp_size'] < 40))) {
- $input_errors[] = gettext("/tmp Size must be numeric and should not be less than 40MB.");
+ $input_errors[] = gettext("/tmp Size must be numeric and should not be less than 40MiB.");
}
if (!empty($_POST['use_mfs_var_size']) && (!is_numeric($_POST['use_mfs_var_size']) || ($_POST['use_mfs_var_size'] < 60))) {
- $input_errors[] = gettext("/var Size must be numeric and should not be less than 60MB.");
+ $input_errors[] = gettext("/var Size must be numeric and should not be less than 60MiB.");
}
if (!empty($_POST['proxyport']) && !is_port($_POST['proxyport'])) {
@@ -526,8 +526,8 @@ $section->addInput(new Form_Input(
'number',
$pconfig['use_mfs_tmp_size'],
['placeholder' => 40]
-))->setHelp('Set the size, in MB, for the /tmp '.
- 'RAM disk. Leave blank for 40MB. Do not set lower than 40.');
+))->setHelp('Set the size, in MiB, for the /tmp '.
+ 'RAM disk. Leave blank for 40MiB. Do not set lower than 40.');
$section->addInput(new Form_Input(
'use_mfs_var_size',
@@ -535,8 +535,8 @@ $section->addInput(new Form_Input(
'number',
$pconfig['use_mfs_var_size'],
['placeholder' => 60]
-))->setHelp('Set the size, in MB, for the /var '.
- 'RAM disk. Leave blank for 60MB. Do not set lower than 60.');
+))->setHelp('Set the size, in MiB, for the /var '.
+ 'RAM disk. Leave blank for 60MiB. Do not set lower than 60.');
$section->addInput(new Form_Input(
'rrdbackup',
OpenPOWER on IntegriCloud