function gstripe_process_updatenotification($mode, $data)
{
    global $config;
    $retval = 0;
    switch ($mode) {
        case UPDATENOTIFY_MODE_NEW:
            $retval |= rc_exec_service("geom load stripe");
            $retval |= disks_raid_gstripe_configure($data);
            break;
        case UPDATENOTIFY_MODE_MODIFIED:
            $retval |= rc_exec_service("geom start stripe");
            break;
        case UPDATENOTIFY_MODE_DIRTY:
            $retval |= disks_raid_gstripe_delete($data);
            if (is_array($config['gstripe']['vdisk'])) {
                $index = array_search_ex($data, $config['gstripe']['vdisk'], "uuid");
                if (false !== $index) {
                    unset($config['gstripe']['vdisk'][$index]);
                    write_config();
                }
            }
            break;
    }
    return $retval;
}
            disks_raid_gstripe_configure();
            config_unlock();
            write_config();
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            if (file_exists($d_raidconfdirty_path)) {
                unlink($d_raidconfdirty_path);
            }
        }
    }
}
if ($_GET['act'] == "del") {
    if ($a_raid[$_GET['id']]) {
        $raidname = $a_raid[$_GET['id']]['name'];
        disks_raid_gstripe_delete($raidname);
        unset($a_raid[$_GET['id']]);
        write_config();
        touch($d_raidconfdirty_path);
        pfSenseHeader("disks_raid_gstripe.php");
        exit;
    }
}
include "head.inc";
/* put your custom HTML head content here        */
/* using some of the $pfSenseHead function calls */
echo $pfSenseHead->getHTML();
?>

<body link="#0000CC" vlink="#0000CC" alink="#0000CC" onload="<?php 
echo $jsevents["body"]["onload"];