1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
/*
* Copyright (C) 2000-2006 SWsoft. 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_PKGSET_NOTSET 29
/*****************************
VPS 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_PKGSET_NOT_FOUND 90
#define VZ_GET_LAST_VERSION 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
#endif /* _VZ_ERROR_H_ */
|