15c51f124SMoriah Waterland /* 25c51f124SMoriah Waterland * CDDL HEADER START 35c51f124SMoriah Waterland * 45c51f124SMoriah Waterland * The contents of this file are subject to the terms of the 55c51f124SMoriah Waterland * Common Development and Distribution License (the "License"). 65c51f124SMoriah Waterland * You may not use this file except in compliance with the License. 75c51f124SMoriah Waterland * 85c51f124SMoriah Waterland * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95c51f124SMoriah Waterland * or http://www.opensolaris.org/os/licensing. 105c51f124SMoriah Waterland * See the License for the specific language governing permissions 115c51f124SMoriah Waterland * and limitations under the License. 125c51f124SMoriah Waterland * 135c51f124SMoriah Waterland * When distributing Covered Code, include this CDDL HEADER in each 145c51f124SMoriah Waterland * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155c51f124SMoriah Waterland * If applicable, add the following below this CDDL HEADER, with the 165c51f124SMoriah Waterland * fields enclosed by brackets "[]" replaced with your own identifying 175c51f124SMoriah Waterland * information: Portions Copyright [yyyy] [name of copyright owner] 185c51f124SMoriah Waterland * 195c51f124SMoriah Waterland * CDDL HEADER END 205c51f124SMoriah Waterland */ 215c51f124SMoriah Waterland /* 22*6e1ae2a3SGary Pennington * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 235c51f124SMoriah Waterland */ 245c51f124SMoriah Waterland 255c51f124SMoriah Waterland 265c51f124SMoriah Waterland 275c51f124SMoriah Waterland #ifndef _ZONES_STRINGS_H 285c51f124SMoriah Waterland #define _ZONES_STRINGS_H 295c51f124SMoriah Waterland 305c51f124SMoriah Waterland 315c51f124SMoriah Waterland /* 325c51f124SMoriah Waterland * Module: zones_strings.h 335c51f124SMoriah Waterland * Group: libinstzones 345c51f124SMoriah Waterland * Description: This header contains strings used in libinstzones 355c51f124SMoriah Waterland * library modules. 365c51f124SMoriah Waterland */ 375c51f124SMoriah Waterland 385c51f124SMoriah Waterland #include <libintl.h> 395c51f124SMoriah Waterland 405c51f124SMoriah Waterland /* 415c51f124SMoriah Waterland * C++ prefix 425c51f124SMoriah Waterland */ 435c51f124SMoriah Waterland 445c51f124SMoriah Waterland #ifdef __cplusplus 455c51f124SMoriah Waterland extern "C" { 465c51f124SMoriah Waterland #endif 475c51f124SMoriah Waterland 485c51f124SMoriah Waterland /* constants */ 495c51f124SMoriah Waterland 505c51f124SMoriah Waterland #ifndef TEXT_DOMAIN 515c51f124SMoriah Waterland #define TEXT_DOMAIN "SUNW_INSTALL_LIBZONES" 525c51f124SMoriah Waterland #endif 535c51f124SMoriah Waterland 545c51f124SMoriah Waterland #ifndef ILIBSTR 555c51f124SMoriah Waterland #define ILIBSTR(x) dgettext(TEXT_DOMAIN, x) 565c51f124SMoriah Waterland #endif 575c51f124SMoriah Waterland 585c51f124SMoriah Waterland /* 595c51f124SMoriah Waterland * message strings 605c51f124SMoriah Waterland */ 615c51f124SMoriah Waterland 625c51f124SMoriah Waterland /* BEGIN CSTYLED */ 635c51f124SMoriah Waterland 645c51f124SMoriah Waterland /* 655c51f124SMoriah Waterland * I18N: these messages are debugging message and are only displayed 665c51f124SMoriah Waterland * when special debugging output has been enabled - these messages 675c51f124SMoriah Waterland * will never be displayed during normal product usage 685c51f124SMoriah Waterland */ 695c51f124SMoriah Waterland 705c51f124SMoriah Waterland #define DBG_ARG ILIBSTR("argument <%d> = <%s>") 715c51f124SMoriah Waterland #define DBG_LIBRARY_NOT_FOUND ILIBSTR("unable to dlopen library <%s>: %s") 725c51f124SMoriah Waterland #define DBG_MNTPT_NAMES ILIBSTR("mount point for global zone path <%s> in zone <%s> is global zone mount point <%s> non-global zone mount point <%s>") 735c51f124SMoriah Waterland #define DBG_TO_ZONEHALT ILIBSTR("halting zone <%s>") 745c51f124SMoriah Waterland #define DBG_TO_ZONEREADY ILIBSTR("readying zone <%s>") 755c51f124SMoriah Waterland #define DBG_TO_ZONERUNNING ILIBSTR("running zone <%s>") 765c51f124SMoriah Waterland #define DBG_TO_ZONEUNMOUNT ILIBSTR("unmounting zone <%s>") 775c51f124SMoriah Waterland #define DBG_UNMOUNTING_DEV ILIBSTR("unmounting package device <%s>") 785c51f124SMoriah Waterland #define DBG_ZONES_ADJLCKOBJ_EXIT ILIBSTR("lock object <%s> adjusted to <%s> for root path <%s> resolved <%s>") 795c51f124SMoriah Waterland #define DBG_ZONES_APLK ILIBSTR("acquire lock zone <%s> lock <%s> pid <%ld>") 805c51f124SMoriah Waterland #define DBG_ZONES_APLK_EXIT ILIBSTR("acquire lock failure zone <%s> lock <%s> pid <%ld>: return <%d> status <%d> <%s>") 815c51f124SMoriah Waterland #define DBG_ZONES_APLK_RESULTS ILIBSTR("acquire lock success zone <%s> lock <%s> key <%s> results <%s>") 825c51f124SMoriah Waterland #define DBG_ZONES_ARE_IMPLEMENTED ILIBSTR("zones are implemented") 835c51f124SMoriah Waterland #define DBG_ZONES_CHG_Z_STATE ILIBSTR("change zone <%s> from state <%d> to state <%d>") 845c51f124SMoriah Waterland #define DBG_ZONES_CHG_Z_STATE_ENTRY ILIBSTR("change zone <%d> to state <%d>") 855c51f124SMoriah Waterland #define DBG_ZONES_GET_ZONE_STATE ILIBSTR("state of zone <%s> is <%ld>") 865c51f124SMoriah Waterland #define DBG_ZONES_LCK_OBJ ILIBSTR("lock zone object <%s> zone <%s> pid <%ld> locks <%s>") 875c51f124SMoriah Waterland #define DBG_ZONES_LCK_OBJ_FOUND ILIBSTR("lock zone examining object <%s> key <%s>: match") 885c51f124SMoriah Waterland #define DBG_ZONES_LCK_OBJ_NOTFOUND ILIBSTR("lock zone examining object <%s> key <%s>: NO MATCH") 895c51f124SMoriah Waterland #define DBG_ZONES_LCK_OBJ_NOTHELD ILIBSTR("object <%s> not locked on zone <%s>") 905c51f124SMoriah Waterland #define DBG_ZONES_LCK_THIS ILIBSTR("lock this zone flags <0x%08lx>") 915c51f124SMoriah Waterland #define DBG_ZONES_LCK_ZONE ILIBSTR("lock zone <%s> flags <0x%08lx>") 925c51f124SMoriah Waterland #define DBG_ZONES_LCK_ZONES ILIBSTR("lock zones flags <0x%08lx>") 935c51f124SMoriah Waterland #define DBG_ZONES_LCK_ZONES_EXIST ILIBSTR("locking all non-global zones defined") 945c51f124SMoriah Waterland #define DBG_ZONES_LCK_ZONES_NOZONES ILIBSTR("no zones locked: no non-global zones exist") 955c51f124SMoriah Waterland #define DBG_ZONES_LCK_ZONES_UNIMP ILIBSTR("no zones locked: zones are not implemented") 965c51f124SMoriah Waterland #define DBG_ZONES_LCK_ZONE_PKGADM ILIBSTR("locking package administration: zone <%s> object <%s>") 975c51f124SMoriah Waterland #define DBG_ZONES_LCK_ZONE_ZONEADM ILIBSTR("locking zone administration: zone <%s> object <%s>") 985c51f124SMoriah Waterland #define DBG_ZONES_MOUNT_IN_LZ_ENTRY ILIBSTR("mount in non-global zone: zone <%s> global-zone path <%s>") 995c51f124SMoriah Waterland #define DBG_ZONES_NGZ_LIST_STATES ILIBSTR("non-global zone <%s> current state <%d> kernel status <%d>") 1005c51f124SMoriah Waterland #define DBG_ZONES_NOT_IMPLEMENTED ILIBSTR("zones are NOT implemented") 1015c51f124SMoriah Waterland #define DBG_ZONES_RELK ILIBSTR("release lock zone <%s> lock <%s> key <%s>") 1025c51f124SMoriah Waterland #define DBG_ZONES_RELK_EXIT ILIBSTR("release lock <%s> key <%s> to zone <%s>: return <%d> status <%d> results <%s>") 1035c51f124SMoriah Waterland #define DBG_ZONES_ULK_OBJ ILIBSTR("unlock zone object <%s> zone <%s> locks <%s>") 1045c51f124SMoriah Waterland #define DBG_ZONES_ULK_OBJ_FOUND ILIBSTR("unlock zone examining object <%s> key <%s>: match") 1055c51f124SMoriah Waterland #define DBG_ZONES_ULK_OBJ_NONE ILIBSTR("no objects locked on zone <%s>") 1065c51f124SMoriah Waterland #define DBG_ZONES_ULK_OBJ_NOTFOUND ILIBSTR("unlock zone examining object <%s> key <%s>: NO MATCH") 1075c51f124SMoriah Waterland #define DBG_ZONES_ULK_OBJ_NOTHELD ILIBSTR("object <%s> not locked on zone <%s>") 1085c51f124SMoriah Waterland #define DBG_ZONES_ULK_THIS ILIBSTR("unlock this zone flags <0x%08lx>") 1095c51f124SMoriah Waterland #define DBG_ZONES_ULK_ZONE ILIBSTR("unlock zone <%s> flags <0x%08lx>") 1105c51f124SMoriah Waterland #define DBG_ZONES_ULK_ZONES ILIBSTR("unlock zones flags <0x%08lx>") 1115c51f124SMoriah Waterland #define DBG_ZONES_ULK_ZONES_EXIST ILIBSTR("unlocking all non-global zones defined") 1125c51f124SMoriah Waterland #define DBG_ZONES_ULK_ZONES_NOZONES ILIBSTR("no zones unlocked: no non-global zones exist") 1135c51f124SMoriah Waterland #define DBG_ZONES_ULK_ZONES_UNIMP ILIBSTR("no zones unlocked: zones are not implemented") 1145c51f124SMoriah Waterland #define DBG_ZONES_ULK_ZONE_PKGADM ILIBSTR("unlocking package administration: zone <%s> object <%s>") 1155c51f124SMoriah Waterland #define DBG_ZONES_ULK_ZONE_ZONEADM ILIBSTR("unlocking zone administration: zone <%s> object <%s>") 1165c51f124SMoriah Waterland #define DBG_ZONES_UNMOUNT_FROM_LZ_ENTRY ILIBSTR("unmount non-global zone: mount point <%s>") 1175c51f124SMoriah Waterland #define DBG_ZONE_EXEC_CMD_ENTER ILIBSTR("execute command <%s> on zone <%s> this zone <%s>") 1185c51f124SMoriah Waterland #define DBG_BRANDS_ARE_IMPLEMENTED ILIBSTR("brands are implemented") 1195c51f124SMoriah Waterland #define DBG_BRANDS_NOT_IMPLEMENTED ILIBSTR("brands are NOT implemented") 1205c51f124SMoriah Waterland 1215c51f124SMoriah Waterland /* 1225c51f124SMoriah Waterland * I18N: these messages are error messages that can be displayed 1235c51f124SMoriah Waterland * during the normal usage of the products 1245c51f124SMoriah Waterland */ 1255c51f124SMoriah Waterland 1265c51f124SMoriah Waterland #define ERR_CANNOT_CREATE_CONTRACT ILIBSTR("unable to create contract: %s") 1275c51f124SMoriah Waterland #define ERR_CAPTURE_FILE ILIBSTR("unable to open command output capture file <%s>: %s") 1285c51f124SMoriah Waterland #define ERR_FORK ILIBSTR("unable to create new process: %s") 1295c51f124SMoriah Waterland #define ERR_GET_ZONEID ILIBSTR("unable to get id of zone <%s>: %s") 1305c51f124SMoriah Waterland #define ERR_GZMOUNT_FAILED ILIBSTR("unable to mount global path <%s> local path <%s> zone <%s>: %s") 1315c51f124SMoriah Waterland #define ERR_GZMOUNT_RESOLVEPATH ILIBSTR("unable to determine zone <%s> dev path from <%s>: %s") 1325c51f124SMoriah Waterland #define ERR_GZMOUNT_SNPRINTFGMP_FAILED ILIBSTR("unable to create global zone mount point <%s> from <%s> <%s> <%s>: combined path exceeds maximum length of <%ld>") 1335c51f124SMoriah Waterland #define ERR_GZMOUNT_SNPRINTFLMP_FAILED ILIBSTR("unable to create local zone mount point <%s> from <%s>: combined path exceeds maximum length of <%ld>") 1345c51f124SMoriah Waterland #define ERR_GZMOUNT_SNPRINTFUUID_FAILED ILIBSTR("unable to create uuid <%s>: combined uuid exceeds maximum length of <%ld>") 1355c51f124SMoriah Waterland #define ERR_GZMOUNT_SNPRINTF_FAILED ILIBSTR("unable to create path <%s> from <%s>: combined path exceeds maximum length of <%ld>") 1365c51f124SMoriah Waterland #define ERR_GZPATH_NOT_ABSOLUTE ILIBSTR("unable to mount global zone path <%s>: path must be absolute") 1375c51f124SMoriah Waterland #define ERR_GZPATH_NOT_DIR ILIBSTR("unable to mount global zone path <%s>: %s") 1385c51f124SMoriah Waterland #define ERR_GZUMOUNT_FAILED ILIBSTR("unable to unmount <%s>: %s") 1395c51f124SMoriah Waterland #define ERR_LZMNTPT_NOTDIR ILIBSTR("unable to unmount global zone mount point <%s>: %s") 1405c51f124SMoriah Waterland #define ERR_LZMNTPT_NOT_ABSOLUTE ILIBSTR("unable to unmount <%s>: path must be absolute") 1415c51f124SMoriah Waterland #define ERR_LZROOT_NOTDIR ILIBSTR("unable to use <%s> as zone root path: %s") 1425c51f124SMoriah Waterland #define ERR_MALLOC ILIBSTR("unable to allocate %s memory, errno %d: %s") 1435c51f124SMoriah Waterland #define ERR_MEM ILIBSTR("unable to allocate memory.") 1445c51f124SMoriah Waterland #define ERR_MEMORY ILIBSTR("memory allocation failure, errno=%d") 1455c51f124SMoriah Waterland #define ERR_MNTPT_MKDIR ILIBSTR("unable to create temporary mount point <%s> in zone <%s>: %s") 1465c51f124SMoriah Waterland #define ERR_NO_ZONE_ROOTPATH ILIBSTR("unable to get root path of zone <%s>: %s") 1475c51f124SMoriah Waterland #define ERR_ROOTPATH_EMPTY ILIBSTR("unable to get root path of zone <%s>: empty path returned") 1485c51f124SMoriah Waterland #define ERR_ZEXEC_ASSEMBLE ILIBSTR("unable to establish connection with zone <%s>: could not assemble new environment") 1495c51f124SMoriah Waterland #define ERR_ZEXEC_BADSTATE ILIBSTR("unable to establish connection with zone <%s>: zone is in state '%s'") 1505c51f124SMoriah Waterland #define ERR_ZEXEC_BADZONE ILIBSTR("unable to establish connection with zone <%s>: no such zone") 1515c51f124SMoriah Waterland #define ERR_ZEXEC_EFAULT ILIBSTR("one or more file descriptors may be non-local (such as open across nfs): %s") 1525c51f124SMoriah Waterland #define ERR_ZEXEC_EXECFAILURE ILIBSTR("unable to establish connection with zone <%s>: exec failure: %s") 1535c51f124SMoriah Waterland #define ERR_ZEXEC_GETPPRIV ILIBSTR("unable to establish connection with zone <%s>: getppriv failed: %s") 1545c51f124SMoriah Waterland #define ERR_ZEXEC_GZUSED ILIBSTR("unable to establish connection with zone <%s>: global zone specified") 1555c51f124SMoriah Waterland #define ERR_ZEXEC_NOROOTPATH ILIBSTR("unable to establish connection with zone <%s>: cannot get root path: %s") 1565c51f124SMoriah Waterland #define ERR_ZEXEC_NOTRUNNING ILIBSTR("unable to establish connection with zone <%s>: not running - in state '%s'") 1575c51f124SMoriah Waterland #define ERR_ZEXEC_NOT_IN_GZ ILIBSTR("unable to establish connection with zone <%s>: not in the global zone") 1585c51f124SMoriah Waterland #define ERR_ZEXEC_NOZONEID ILIBSTR("unable to establish connection with zone <%s>: cannot get zone id: %s") 1595c51f124SMoriah Waterland #define ERR_ZEXEC_PRIVS ILIBSTR("unable to establish connection with zone <%s>: you lack sufficient privilege to access the zone") 1605c51f124SMoriah Waterland #define ERR_ZEXEC_PRIV_ALLOCSET ILIBSTR("unable to establish connection with zone <%s>o: priv_allocset failed: %s") 1615c51f124SMoriah Waterland #define ERR_ZEXEC_ZONEENTER ILIBSTR("unable to establish connection with zone <%s>: could not enter zone: %s") 1625c51f124SMoriah Waterland #define ERR_ZONEBOOT_CMD_ERROR ILIBSTR("unable to boot zone: problem running <%s> on zone <%s>: error %d%s%s") 1635c51f124SMoriah Waterland #define ERR_ZONEBOOT_CMD_SIGNAL ILIBSTR("unable to boot zone: problem running <%s> on zone <%s>: terminated by signal") 1645c51f124SMoriah Waterland #define ERR_ZONEBOOT_DIDNT_BOOT ILIBSTR("unable to boot zone <%s>: zone failed to transition to running state") 1655c51f124SMoriah Waterland #define ERR_ZONEBOOT_EXEC ILIBSTR("unable to boot zone: could not execute zone administration command <%s>: %s") 1665c51f124SMoriah Waterland #define ERR_ZONEHALT_EXEC ILIBSTR("unable to halt zone: could not execute zone administration command <%s>: %s") 1675c51f124SMoriah Waterland #define ERR_ZONEINDEX_OPEN ILIBSTR("unable to open zone index file %s: %s") 1685c51f124SMoriah Waterland #define ERR_ZONEREADY_CMDFAIL ILIBSTR("unable to ready zone: problem running <%s> on zone <%s>: %s%s%s") 1695c51f124SMoriah Waterland #define ERR_ZONEREADY_DIDNT_READY ILIBSTR("unable to ready zone <%s>: zone failed to transition to ready state") 1705c51f124SMoriah Waterland #define ERR_ZONEREADY_EXEC ILIBSTR("unable to ready zone: could not execute zone administration command <%s>: %s") 1715c51f124SMoriah Waterland #define ERR_ZONEROOT_NOTDIR ILIBSTR("unable to use temporary mount point <%s> in zone <%s>: %s") 1725c51f124SMoriah Waterland #define ERR_ZONES_LCK_THIS_PKGADM ILIBSTR("Unable to acquire package administration lock for this system; try again later") 1735c51f124SMoriah Waterland #define ERR_ZONES_LCK_THIS_ZONEADM ILIBSTR("Unable to acquire zone administration lock for this system; please try again later") 1745c51f124SMoriah Waterland #define ERR_ZONES_LCK_ZONES_FAILED ILIBSTR("Unable to acquire lock on non-global zone <%s>: releasing all locks") 1755c51f124SMoriah Waterland #define ERR_ZONES_LCK_ZONE_PKGADM ILIBSTR("Unable to acquire package administration lock for zone <%s>; please try again later") 1765c51f124SMoriah Waterland #define ERR_ZONES_LCK_ZONE_ZONEADM ILIBSTR("Unable to acquire zone administration lock for zone <%s>; please try again later") 1775c51f124SMoriah Waterland #define ERR_ZONES_NOT_IMPLEMENTED ILIBSTR("error: zones not implemented") 1785c51f124SMoriah Waterland #define ERR_ZONES_ULK_THIS_PACKAGE ILIBSTR("Unable to release package administration lock for this system; try again later") 1795c51f124SMoriah Waterland #define ERR_ZONES_ULK_THIS_ZONES ILIBSTR("Unable to release zone administration lock for this system; please try again later") 1805c51f124SMoriah Waterland #define ERR_ZONE_LIST_EMPTY ILIBSTR("empty zone list specified") 1815c51f124SMoriah Waterland #define ERR_ZONE_NAME_ILLEGAL ILIBSTR("illegal zone name %.*s") 1825c51f124SMoriah Waterland #define ERR_ZONE_NONEXISTENT ILIBSTR("zone %s does not exist") 1835c51f124SMoriah Waterland #define ERR_OPEN_READ ILIBSTR("unable to open <%s> for reading: (%d) %s") 1845c51f124SMoriah Waterland #define ERR_ZONEUNMOUNT_CMD_SIGNAL ILIBSTR("unable to unmount zone: problem running <%s> on zone <%s>: terminated by signal") 1855c51f124SMoriah Waterland #define ERR_ZONEUNMOUNT_EXEC ILIBSTR("unable to unmount zone: could not execute zone administration command <%s>: %s") 1865c51f124SMoriah Waterland #define ERR_ZONEUNMOUNT_CMD_ERROR ILIBSTR("unable to unmount zone: problem running <%s> on zone <%s>: error %d%s%s") 1875c51f124SMoriah Waterland #define ERR_BRAND_GETBRAND ILIBSTR("unable to get zone brand: zonecfg_get_brand: %s") 1885c51f124SMoriah Waterland 1895c51f124SMoriah Waterland /* 1905c51f124SMoriah Waterland * I18N: these are messages that can be displayed during the normal 1915c51f124SMoriah Waterland * usage of the products 1925c51f124SMoriah Waterland */ 1935c51f124SMoriah Waterland 1945c51f124SMoriah Waterland #define MSG_PROG_ERR ILIBSTR("ERROR: %s") 1955c51f124SMoriah Waterland #define MSG_ZONES_LCK_THIS_PKGADM ILIBSTR("## Waiting for up to <%ld> seconds for package administration commands to become available (another user is administering packages)") 1965c51f124SMoriah Waterland #define MSG_ZONES_LCK_THIS_ZONEADM ILIBSTR("## Waiting for up to <%ld> seconds for zone administration commands to become available (another user is administering zones)") 1975c51f124SMoriah Waterland #define MSG_ZONES_LCK_ZONE_PKGADM ILIBSTR("## Waiting for up to <%ld> seconds for package administration commands to become available (another user is administering packages on zone <%s>)") 1985c51f124SMoriah Waterland #define MSG_ZONES_LCK_ZONE_ZONEADM ILIBSTR("## Waiting for up to <%ld> seconds for zone administration commands to become available (another user is administering zones on zone <%s>)") 1995c51f124SMoriah Waterland 2005c51f124SMoriah Waterland /* 2015c51f124SMoriah Waterland * I18N: these messages are warning messages that can be displayed 2025c51f124SMoriah Waterland * during the normal usage of the products 2035c51f124SMoriah Waterland */ 2045c51f124SMoriah Waterland 2055c51f124SMoriah Waterland #define WRN_ZONES_ULK_ZONE_PKGADM ILIBSTR("WARNING: Unable to release package administration lock for zone <%s>") 2065c51f124SMoriah Waterland #define WRN_ZONES_ULK_ZONE_ZONEADM ILIBSTR("WARNING: Unable to release zone administration lock for zone <%s>") 2075c51f124SMoriah Waterland 2085c51f124SMoriah Waterland /* END CSTYLED */ 2095c51f124SMoriah Waterland 2105c51f124SMoriah Waterland /* 2115c51f124SMoriah Waterland * C++ postfix 2125c51f124SMoriah Waterland */ 2135c51f124SMoriah Waterland 2145c51f124SMoriah Waterland #ifdef __cplusplus 2155c51f124SMoriah Waterland } 2165c51f124SMoriah Waterland #endif 2175c51f124SMoriah Waterland 2185c51f124SMoriah Waterland #endif /* _ZONES_STRINGS_H */ 219