aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freenas/pkg/freenas_guiconfig.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freenas/pkg/freenas_guiconfig.inc')
-rw-r--r--packages/freenas/pkg/freenas_guiconfig.inc35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/freenas/pkg/freenas_guiconfig.inc b/packages/freenas/pkg/freenas_guiconfig.inc
index 8acd5ff4..7dd5ec47 100644
--- a/packages/freenas/pkg/freenas_guiconfig.inc
+++ b/packages/freenas/pkg/freenas_guiconfig.inc
@@ -35,6 +35,8 @@ $d_diskdirty_path = $g['varrun_path'] . "/disk.dirty";
$d_raidconfdirty_path = $g['varrun_path'] . "/raid.conf.dirty";
$d_userconfdirty_path = $g['varrun_path'] . "/user.conf.dirty";
$d_groupconfdirty_path = $g['varrun_path'] . "/group.conf.dirty";
+$d_smbshareconfdirty_path = $g['varrun_path'] . "/smbshare.conf.dirty";
+$d_upnpconfdirty_path = $g['varrun_path'] . "/upnp.conf.dirty";
$freenas_config =& $config['installedpackages']['freenas']['config'][0];
@@ -80,6 +82,39 @@ function gmirror_sort() {
}
+function gconcat_sort() {
+ global $g, $config;
+
+ function gconcatcmp($a, $b) {
+ return strcmp($a['name'], $b['name']);
+ }
+
+ usort($config['gconcat']['vdisk'], "gconcatcmp");
+
+}
+
+function gstripe_sort() {
+ global $g, $config;
+
+ function gstripecmp($a, $b) {
+ return strcmp($a['name'], $b['name']);
+ }
+
+ usort($config['gstripe']['vdisk'], "gstripecmp");
+
+}
+
+function graid5_sort() {
+ global $g, $config;
+
+ function graid5cmp($a, $b) {
+ return strcmp($a['name'], $b['name']);
+ }
+
+ usort($config['graid5']['vdisk'], "graid5cmp");
+
+}
+
/* TODO: This needs to be changed */
function users_sort() {
global $g, $config;