Пример #1
0
function CLIENT_REMOUNT_FOLDERS()
{
    $unix = new unix();
    $mount = $unix->find_program("umount");
    $glfs = new gluster_client();
    $array = $glfs->get_mounted();
    if (is_array($array)) {
        while (list($index, $volfile) = each($array)) {
            echo "Stopping Gluster client......: " . $volfile . "\n";
            shell_exec("umount -l {$volfile}");
        }
    } else {
        echo "Stopping Gluster client......: no mounted path\n";
    }
    MASTERS_GET_SOURCES();
    CLIENT_MOUNT_FOLDERS();
}
Пример #2
0
function CLIENT_REMOUNT_FOLDERS()
{
    $unix = new unix();
    $mount = $unix->find_program("mount");
    $glfs = new gluster_client();
    $array = $glfs->get_mounted();
    if (is_array($array)) {
        while (list($index, $volfile) = each($array)) {
            system_admin_events("Remount {$volfile}", __FUNCTION__, __FILE__, __LINE__, "cluster");
            echo "Remount Gluster client......: " . $volfile . "\n";
            NOTIFY_ALL_MASTERS("Task: remount {$volfile}", __FUNCTION__, __FILE__, __LINE__);
            shell_exec("{$mount} -o remount {$volfile}");
        }
    } else {
        echo "Stopping Gluster client......: no mounted path\n";
    }
    MASTERS_GET_SOURCES();
    CLIENT_MOUNT_FOLDERS();
}