Permalink
Switch branches/tags
vzctl.open-3.0.0-4 vzctl.open-3.0.0-3 vzctl.open-3.0.0-2 vzctl.open-3.0.0-1 vzctl.open-2.7.0-28 vzctl.open-2.7.0-27 vzctl.open-2.7.0-26 vzctl.open-2.7.0-25 vzctl.open-2.7.0-24 vzctl.open-2.7.0-23 vzctl-4.5.1 vzctl-4.5.1-20130928-funtoo vzctl-4.5.1-20130923-funtoo vzctl-4.5 vzctl-4.4 vzctl-4.3.1 vzctl-4.3.1-funtoo vzctl-4.3 vzctl-4.2 vzctl-4.1.2 vzctl-4.1.1 vzctl-4.1 vzctl-4.0 vzctl-3.3 vzctl-3.3-r3-funtoo vzctl-3.3-r2-funtoo vzctl-3.3-r1-funtoo vzctl-3.2.1 vzctl-3.2 vzctl-3.1 vzctl-3.0.30.2 vzctl-3.0.30.2-funtoo vzctl-3.0.30.1 vzctl-3.0.30 vzctl-3.0.29.3 vzctl-3.0.29.2 vzctl-3.0.29.1 vzctl-3.0.29 vzctl-3.0.28.3-funtoo vzctl-3.0.28.2 vzctl-3.0.28.1 vzctl-3.0.28 vzctl-3.0.27 vzctl-3.0.27-r1-funtoo vzctl-3.0.27-funtoo vzctl-3.0.26.3 vzctl-3.0.26.3-funtoo vzctl-3.0.26.2 vzctl-3.0.26.1 vzctl-3.0.26 vzctl-3.0.25.2 vzctl-3.0.25.1 vzctl-3.0.25.1-funtoo vzctl-3.0.25 vzctl-3.0.25-r3-funtoo vzctl-3.0.25-r2-funtoo vzctl-3.0.25-r1-funtoo vzctl-3.0.25-funtoo vzctl-3.0.24.2 vzctl-3.0.24.1 vzctl-3.0.24 vzctl-3.0.24-r4-funtoo vzctl-3.0.23.2 vzctl-3.0.23.1 vzctl-3.0.23 vzctl-3.0.22 vzctl-3.0.21 vzctl-3.0.20 vzctl-3.0.19 vzctl-3.0.19-1 vzctl-3.0.18 vzctl-3.0.17 vzctl-3.0.17-1 vzctl-3.0.16 vzctl-3.0.15 vzctl-3.0.14 vzctl-3.0.13-1 vzctl-3.0.12-1 vzctl-3.0.11 vzctl-3.0.11-3 vzctl-3.0.11-2 vzctl-3.0.10 vzctl-3.0.9-1 vzctl-3.0.0-8 vzctl-3.0.0-7 vzctl-3.0.0-6 vzctl-3.0.0-5 master-4.5.1 master-4.1.2 master-4.1.1 master-3.0.30.2 master-3.0.30.1 master-3.0.29.3 master-3.0.29.2 master-3.0.29.1 master-3.0.28.3 master-3.0.28.2 master-3.0.28.1 3.0.25.1-funtoo 3.0.25-r2-funtoo
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
153 lines (142 sloc) 4.47 KB
/*
* Copyright (C) 2000-2009, Parallels, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _VZERROR_H_
#define _VZERROR_H_
/*****************************
System errors
******************************/
#define VZ_SETUBC_ERROR 1
#define VZ_SETFSHD_ERROR 2
#define VZ_SYSTEM_ERROR 3
/* not a VZ-capable kernel */
#define VZ_BAD_KERNEL 5
#define VZ_RESOURCE_ERROR 6
#define VZ_ENVCREATE_ERROR 7
#define VZ_COMMAND_EXECUTION_ERROR 8
#define VZ_LOCKED 9
/* global config file not found */
#define VZ_NOCONFIG 10
#define VZ_NOSCRIPT 11
#define VZ_NO_ACCES 12
#define VZ_SET_CAP 13
#define VZ_NOVECONFIG 14
#define VZ_EXEC_TIMEOUT 15
#define VZ_CHKPNT_ERROR 16
#define VZ_RESTORE_ERROR 17
#define VZ_SETLUID_ERROR 18
/****************************
Argument errors
****************************/
#define VZ_INVALID_PARAMETER_SYNTAX 20
#define VZ_INVALID_PARAMETER_VALUE 21
#define VZ_VE_ROOT_NOTSET 22
#define VZ_VE_PRIVATE_NOTSET 23
#define VZ_VE_TMPL_NOTSET 24
#define VZ_NOTENOUGHPARAMS 27
#define VZ_NOTENOUGHUBCPARAMS 28
#define VZ_VE_OSTEMPLATE_NOTSET 29
/*****************************
CT errors
*****************************/
#define VZ_VE_NOT_RUNNING 31
#define VZ_VE_RUNNING 32
#define VZ_STOP_ERROR 33
#define VZ_CANT_ADDIP 34
#define VZ_VALIDATE_ERROR 35
#define VZ_OVERCOMMIT_ERROR 36
/****************************
Filesystem errros
****************************/
/* private area is not mounted */
#define VZ_FS_NOT_MOUNTED 40
/* private area is already mounted */
#define VZ_FS_MOUNTED 41
/* no private area with this id */
#define VZ_FS_NOPRVT 43
/* private area with this id already exists */
#define VZ_FS_PRVT_AREA_EXIST 44
#define VZ_FS_NO_DISK_SPACE 46
/* template private area is not properly created */
#define VZ_FS_BAD_TMPL 47
/* cannot create new private area */
#define VZ_FS_NEW_VE_PRVT 48
/* cannot create mounpoint */
#define VZ_FS_MPOINTCREATE 49
/* cannot mount ve private area */
#define VZ_FS_CANTMOUNT 50
/* cannot umount ve private area */
#define VZ_FS_CANTUMOUNT 51
/* error deleting ve private area */
#define VZ_FS_DEL_PRVT 52
/* private area doesn't exist */
#define VZ_UNK_MOUNT_TYPE 53
#define VZ_CANT_CREATE_DIR 54
#define VZ_NOTENOUGH_QUOTA_LIMITS 55
/*********************************
Disk quota errors
*********************************/
/* disk quota not supported */
#define VZ_DQ_ON 60
#define VZ_DQ_INIT 61
#define VZ_DQ_SET 62
#define VZ_DISKSPACE_NOT_SET 63
#define VZ_DISKINODES_NOT_SET 64
#define VZ_ERROR_SET_USER_QUOTA 65
#define VZ_DQ_OFF 66
#define VZ_DQ_UGID_NOTINITIALIZED 67
#define VZ_GET_QUOTA_USAGE 68
/* add some more codes here */
/*********************************
"vzctl set" errors
*********************************/
/* incorrect hostname */
#define VZ_BADHOSTNAME 70
/* incorrect ip address */
#define VZ_BADIP 71
/* incorrect dns nameserver address */
#define VZ_BADDNSSRV 72
/* incorrect dns domain name */
#define VZ_BADDNSSEARCH 73
/* error changing password */
#define VZ_CHANGEPASS 74
#define VZ_VE_LCKDIR_NOTSET 77
#define VZ_IP_INUSE 78
#define VZ_ACTIONSCRIPT_ERROR 79
#define VZ_CP_CONFIG 82
#define VZ_INVALID_CONFIG 85
#define VZ_SET_DEVICES 86
#define VZ_INSTALL_APPS_ERROR 87
#define VZ_IP_NA 89
/* Template Error */
#define VZ_OSTEMPLATE_NOT_FOUND 91
#define VZ_GET_IP_ERROR 100
#define VZ_NETDEV_ERROR 104
#define VZ_VE_START_DISABLED 105
#define VZ_SET_IPTABLES 106
#define VZ_NO_DISTR_CONF 107
#define VZ_NO_DISTR_ACTION_SCRIPT 108
#define VZ_APPLY_CONFIG_ERROR 109
#define VZ_CUSTOM_REINSTALL_ERROR 128
#define VZ_SET_MEMINFO_ERROR 129
#define VZ_VETH_ERROR 130
#define VZ_SET_NAME_ERROR 131
#define VZ_WAIT_FAILED 133
#define VZ_CONFIG_SAVE_ERROR 139
#define VZ_SET_OSRELEASE 144
#define VZ_SET_IO 148
#endif /* _VZ_ERROR_H_ */