/illumos-gate/usr/src/cmd/tsol/demo/ |
H A D | runwlabel.ksh | 38 zonepath=`getzonepath "$1" | sed -e 's/\/root$//'` 42 for zone in `zoneadm list -pi | nawk -F: -v zonepath=${zonepath} '{ 43 if ("$4" == "${zonepath}") {
|
/illumos-gate/usr/src/lib/brand/solaris10/zone/ |
H A D | poststate.ksh | 47 zonepath=$2 55 echo "global:installed:/" > $zonepath/root/etc/zones/index
|
H A D | prestate.ksh | 46 zonepath=$2
|
H A D | uninstall.ksh | 40 zonepath=$2 95 zoneroot=$zonepath/root
|
H A D | detach.ksh | 38 # XXX shared/common script currently uses lower case zonename & zonepath 40 zonepath="$ZONEPATH"
|
H A D | attach.ksh | 79 # XXX shared/common script currently uses lower case zonename & zonepath 81 zonepath="$ZONEPATH" 108 # '-d -' means use the existing zonepath. 178 get_zonepath_ds $zonepath
|
H A D | common.ksh | 47 f_no_ds=$(gettext "No zonepath dataset; the zonepath must be a ZFS dataset.") 187 # Find the active dataset under the zonepath dataset to mount on zonepath/root. 197 get_zonepath_ds $zonepath 204 mount -F zfs $ACTIVE_DS $zonepath/root || fail_fatal "$f_zfs_mount" 213 get_zonepath_ds $zonepath
|
H A D | clone.ksh | 52 sourcezonepath=`/usr/sbin/zonecfg -z $sourcezone info zonepath | \
|
H A D | image_install.ksh | 37 no_installing=$(gettext " Installing: Using pre-existing data in zonepath") 111 # XXX shared/common script currently uses lower case zonename & zonepath 113 zonepath="$ZONEPATH"
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.h | 73 /* The zone's zonepath */ 74 char *zonepath; member in struct:zone_mounts 76 /* The length of zonepath */ 109 extern int clone_copy(char *source_zonepath, char *zonepath); 121 extern int clone_snapshot_zfs(char *snap_name, char *zonepath, 123 extern int clone_zfs(char *source_zonepath, char *zonepath, char *presnapbuf, 125 extern void create_zfs_zonepath(char *zonepath); 126 extern int destroy_zfs(char *zonepath); 127 extern boolean_t is_zonepath_zfs(char *zonepath); 128 extern int move_zfs(char *zonepath, cha [all...] |
H A D | zfs.c | 331 * Remove the sw inventory file from inside this zonepath that we picked up out 359 * Make a ZFS clone on zonepath from snapshot_name. 362 clone_snap(char *snapshot_name, char *zonepath) argument 387 "%s: out of memory\n"), zonepath); 391 err = zfs_clone(zhp, zonepath, props); 400 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL) 424 * This function takes a zonepath and attempts to determine what the ZFS 426 * assume that zonepath is an existing directory or ZFS fs since we use 429 * The way this works is that we look at the parent directory of the zonepath 431 * append the last component of the zonepath t 452 path2name(char *zonepath, char *zfs_name, int len) argument 824 clone_snapshot_zfs(char *snap_name, char *zonepath, char *validatesnap) argument 890 clone_zfs(char *source_zonepath, char *zonepath, char *presnapbuf, char *postsnapbuf) argument 966 create_zfs_zonepath(char *zonepath) argument 1032 destroy_zfs(char *zonepath) argument 1124 is_zonepath_zfs(char *zonepath) argument 1159 move_zfs(char *zonepath, char *new_zonepath) argument 1464 zone_mounts_init(zone_mounts_t *mounts, const char *zonepath) argument 1510 zone_mount_rootfs(zone_mounts_t *mounts, const char *zonepath) argument 1600 zone_unmount_rootfs(zone_mounts_t *mounts, const char *zonepath, boolean_t force) argument [all...] |
H A D | zoneadm.c | 143 #define SHELP_MOVE "move zonepath" 288 return (gettext("Move the zone to a new zonepath.")); 292 "the zonepath are untouched).\n\tThe zone can subsequently " 908 "zonepath", path_copy); 919 * zonepath is a literal that should not be translated. 921 (void) fprintf(stderr, gettext("%s zonepath (%s) and " 922 "%s zonepath (%s) overlap.\n"), 976 * The zonepath is supposed to be mode 700 but its 978 * chmod() the zonepath itself to 700. 1991 const char *, const char *, char *, size_t), char *zonename, char *zonepath) 1990 get_hook(brand_handle_t bh, char *cmd, size_t len, int (*bp)(brand_handle_t, const char *, const char *, char *, size_t), char *zonename, char *zonepath) argument 2010 char zonepath[MAXPATHLEN]; local 2790 char zonepath[MAXPATHLEN], checkpath[MAXPATHLEN]; local 2925 char zonepath[MAXPATHLEN]; local 3516 clone_copy(char *source_zonepath, char *zonepath) argument 3551 char zonepath[MAXPATHLEN]; local 3856 cleanup_zonepath(char *zonepath, boolean_t all) argument 3975 char zonepath[MAXPATHLEN]; local 4072 mounts.num_root_overlay_mounts, zonepath); local 4296 char zonepath[MAXPATHLEN]; local 4636 char zonepath[MAXPATHLEN]; local 4901 char rootpath[MAXPATHLEN], zonepath[MAXPATHLEN]; local 5506 char zonepath[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/lib/brand/shared/zone/ |
H A D | query.ksh | 32 zonepath=$2 36 get_zonepath_ds $zonepath
|
H A D | uninstall.ksh | 47 w_no_ds=$(gettext "Warning: no zonepath dataset found.") 95 printf "$m_rm\n" "$zonepath/SUNWattached.xml" 96 $nop /bin/rm -f "$zonepath/SUNWattached.xml" 99 printf "$m_rm_r\n" "$zonepath/lu" 100 $nop /bin/rm -rf "$zonepath/lu" 103 printf "$m_rm_r\n" "$zonepath/dev" 104 $nop /bin/rm -rf "$zonepath/dev" 107 printf "$m_rm_r\n" "$zonepath/root" 108 $nop /bin/rm -rf "$zonepath/root" 111 printf "$m_rm\n" "$zonepath" [all...] |
H A D | common.ksh | 268 # Mount zonecfg fs entries into the zonepath. 277 sort $fstmpfile | nawk -v zonepath=$zonepath '{ 285 cmd="/usr/bin/mkdir -p " zonepath "/root" $1 " >/dev/null 2>&1" 289 zonepath "/root" $1; 298 # Unmount zonecfg fs entries from the zonepath. 307 sort -r $fstmpfile | nawk -v zonepath=$zonepath '{ 308 cmd="/usr/sbin/umount " zonepath "/root" $1 315 # Find the dataset mounted on the zonepath [all...] |
/illumos-gate/usr/src/lib/libbrand/common/ |
H A D | libbrand.c | 322 const char *zonename, const char *zonepath, const char *username, 343 if (zonepath == NULL) 345 dst += strlcpy(dbuf + dst, zonepath, dbuf_size - dst); 388 const char *zonepath, const char *username, const char *curr_zone, 438 zonename, zonepath, username, curr_zone) != 0) 453 const char *zonepath, char *buf, size_t len) 456 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, 462 const char *zonepath, char *buf, size_t len) 465 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, 483 const char *zonepath, cha 321 i_substitute_tokens(const char *sbuf, char *dbuf, int dbuf_size, const char *zonename, const char *zonepath, const char *username, const char *curr_zone) argument 387 brand_get_value(struct brand_handle *bhp, const char *zonename, const char *zonepath, const char *username, const char *curr_zone, char *buf, size_t len, const xmlChar *tagname, boolean_t substitute, boolean_t optional) argument 452 brand_get_attach(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 461 brand_get_boot(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 482 brand_get_clone(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 491 brand_get_detach(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 500 brand_get_halt(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 509 brand_get_shutdown(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 571 brand_get_install(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 596 brand_get_postattach(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 605 brand_get_postclone(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 614 brand_get_postinstall(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 623 brand_get_postsnap(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 632 brand_get_poststatechange(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 641 brand_get_predetach(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 650 brand_get_presnap(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 659 brand_get_prestatechange(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 668 brand_get_preuninstall(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 677 brand_get_query(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 686 brand_get_uninstall(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 695 brand_get_validatesnap(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 712 brand_get_verify_adm(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 721 brand_get_sysboot(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 813 i_brand_platform_iter_mounts(struct brand_handle *bhp, const char *zonename, const char *zonepath, int (*func)(void *, const char *, const char *, const char *, const char *), void *data, const xmlChar *mount_type) argument 888 brand_platform_iter_gmounts(brand_handle_t bh, const char *zonename, const char *zonepath, int (*func)(void *, const char *, const char *, const char *, const char *), void *data) argument [all...] |
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/ |
H A D | s10_support.c | 199 get_ku_patchlist(char *zonepath, char **patchlist) argument 207 "%s/root/var/sadm/pkg/SUNWcakr/pkginfo", zonepath) 249 char zonepath[MAXPATHLEN]; local 259 if (zone_get_zonepath(zonename, zonepath, sizeof (zonepath)) != Z_OK) 267 zonepath) >= sizeof (sanity_skip)) 273 if (get_ku_patchlist(zonepath, &patchlist) != 0 || patchlist == NULL)
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 899 char zonepath[MAXPATHLEN]; local 904 zonepath[0] = '\0'; 910 (void) strcpy(zonepath, "/"); 918 (void) strcpy(zonepath, zoneroot); 949 pw_ent.pw_name, devzone, zonepath, NULL); 959 devzone, zonepath, NULL); 971 dprintf("zonepath=%s ", zonepath); 974 pw_ent.pw_name, devzone, zonepath, NULL); 1701 char zonepath[MAXPATHLE local 1789 char zonepath[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | getpathbylabel.c | 232 struct mnttab *autofs_mnt, char *globalpath, char *zonepath, int global_len) 321 zp_len = strlen(zonepath); 358 char zonepath[MAXPATHLEN]; local 368 (void) strncpy(zonepath, prefix, MAXPATHLEN); 402 globalpath, zonepath, MAXPATHLEN) == 0) { 231 getnfspathbyautofs(struct mntlist *mlist, zoneid_t zoneid, struct mnttab *autofs_mnt, char *globalpath, char *zonepath, int global_len) argument
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_mount.c | 615 * for the current BE since the zone's zonepath is loopback mounted 1713 * Description: This function loopback mounts a zonepath into the altroot 1716 * zonepath - pointer to zone path in the current BE 1725 loopback_mount_zonepath(const char *zonepath, be_mount_data_t *md) argument 1752 * before attempting the loopback mount of zonepath under altroot, 1757 /* get the parent directory for zonepath */ 1758 p = strrchr(zonepath, '/'); 1759 if (p != NULL && p != zonepath) { 1761 p - zonepath + 1)) == NULL) { 1765 (void) strlcpy(parent_dir, zonepath, 2347 char *zonepath = NULL; local 2453 char *zonepath = NULL; local 2540 be_mount_one_zone(zfs_handle_t *be_zhp, be_mount_data_t *md, char *zonename, char *zonepath, char *zonepath_ds) argument 2620 be_unmount_one_zone(be_unmount_data_t *ud, char *zonename, char *zonepath, char *zonepath_ds) argument [all...] |
H A D | be_zones.c | 75 * zone's zonepath. 77 * zonepath - pointer to zonepath 86 be_make_zoneroot(char *zonepath, char *zoneroot, int zoneroot_size) argument 88 (void) snprintf(zoneroot, zoneroot_size, "%s/root", zonepath); 95 * under a zonepath, find the zone roots that belong to the 99 * zonepath_ds - pointer to zone's zonepath dataset. 159 "find active zone root in zonepath dataset %s: %s\n"), 170 "find active zone root in zonepath dataset %s\n"), 186 * zonepath_ds - dataset of the zone's zonepath [all...] |
H A D | be_create.c | 1616 char *zonepath = NULL; local 1688 zonepath = z_zlist_get_zonepath(zlist, i); 1691 * Get the dataset of this zonepath. If its not 1694 if ((zonepath_ds = be_get_ds_from_dir(zonepath)) == NULL) 1699 * dataset of its zonepath. 1732 * zonepath dataset as well. 1734 * zonepath_ds - pointer to zone's zonepath dataset. 1769 "destroy zone roots under zonepath dataset %s: %s\n"), 1787 * dataset, destroy it and the zonepath dataset as well. 1801 /* Get handle to zonepath datase 1895 char *zonepath = NULL; local [all...] |
/illumos-gate/usr/src/cmd/zonecfg/ |
H A D | zonecfg_lex.l | 199 <TSTATE>zonepath { return ZONEPATH; } 200 <CSTATE>zonepath { return ZONEPATH; }
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1357 size_t rootlen, const char *zonepath, char *luroot, size_t lurootlen) 1370 (void) snprintf(luroot, lurootlen, "%s/lu", zonepath); 1675 char zonepath[MAXPATHLEN]; local 1694 if (zone_get_zonepath(zone_name, zonepath, sizeof (zonepath)) != Z_OK) { 1738 if (brand_platform_iter_gmounts(bh, zone_name, zonepath, 1763 * <zonepath>/root. But when mounting a zone for administration 1765 * updates rootpath to be <zonepath>/lu/a so we'll mount all 1770 * a bunch of global zone file system paths into <zonepath>/lu. 1773 * <zonepath>/l 1356 build_mounted_pre_var(zlog_t *zlogp, char *rootpath, size_t rootlen, const char *zonepath, char *luroot, size_t lurootlen) argument 3670 is_zonepath_zfs(char *zonepath) argument 3712 char zonepath[MAXPATHLEN]; local 5088 char zonepath[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/cmd/tsol/misc/ |
H A D | txzonemgr.sh | 235 set zonepath=/zone/$zonename" 416 zonepath=$(zoneadm -z $zonename list -p|cut -d : -f4) 417 ZONE_ETC_DIR=$zonepath/root/etc 550 zonepath=$(zoneadm -z $zonename list -p|cut -d : -f4) 551 sys-unconfig -R $zonepath/root 2>/dev/null 1019 zonepath=$(zoneadm -z $1 list -p|cut -d : -f4) 1020 ZONE_ETC_DIR=$zonepath/root/etc
|