static struct cfs_operations cfs_ops;
+// FIXME: remove openvz stuff for 7.x
static gboolean
name_is_openvz_script(
const char *name,
} else {
stbuf->st_mode = S_IFREG | (quorate ? 0666 : 0444);
stbuf->st_nlink = 1;
+ // FIXME: remove openvz stuff for 7.x
if (name_is_openvz_script(te->name, NULL)) {
stbuf->st_mode |= S_IXUSR;
}
*vmtype_ret = VMTYPE_QEMU;
nodename = g_strdup(sa[0]);
} else if (strcmp(sa[1], "openvz") == 0) {
+ // FIXME: remove openvz stuff for 7.x
*vmtype_ret = VMTYPE_OPENVZ;
nodename = g_strdup(sa[0]);
} else if (strcmp(sa[1], "lxc") == 0) {
if (!vmlist_add_dir(memdb, vmlist, node_te->name, VMTYPE_QEMU, te))
ret = FALSE;
}
+ // FIXME: remove openvz stuff for 7.x
if ((te = g_hash_table_lookup(node_te->data.entries, "openvz"))) {
if (!vmlist_add_dir(memdb, vmlist, node_te->name, VMTYPE_OPENVZ, te))
ret = FALSE;
g_free(lnktarget);
cfs_plug_base_insert(bplug, (cfs_plug_t*)lnk);
+ // FIXME: remove openvz stuff for 7.x
lnktarget = g_strdup_printf("nodes/%s/openvz", nodename);
lnk = cfs_plug_link_new("openvz", lnktarget);
g_free(lnktarget);
if (vminfo->vmtype == VMTYPE_QEMU) {
return "qemu";
} else if (vminfo->vmtype == VMTYPE_OPENVZ) {
+ // FIXME: remove openvz stuff for 7.x
return "openvz";
} else if (vminfo->vmtype == VMTYPE_LXC) {
return "lxc";
g_return_val_if_fail(vmlist != NULL, FALSE);
g_return_val_if_fail(nodename != NULL, FALSE);
g_return_val_if_fail(vmid != 0, FALSE);
+ // FIXME: remove openvz stuff for 7.x
g_return_val_if_fail(vmtype == VMTYPE_QEMU || vmtype == VMTYPE_OPENVZ ||
vmtype == VMTYPE_LXC, FALSE);
g_return_if_fail(cfs_status.vmlist != NULL);
g_return_if_fail(nodename != NULL);
g_return_if_fail(vmid != 0);
+ // FIXME: remove openvz stuff for 7.x
g_return_if_fail(vmtype == VMTYPE_QEMU || vmtype == VMTYPE_OPENVZ ||
vmtype == VMTYPE_LXC);
#include "memdb.h"
#define VMTYPE_QEMU 1
+// FIXME: remove openvz stuff for 7.x
#define VMTYPE_OPENVZ 2
#define VMTYPE_LXC 3