/opensolaris-onvv-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}") {
|
/opensolaris-onvv-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"
|
/opensolaris-onvv-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.h | 71 /* The zone's zonepath */ 72 char *zonepath; member in struct:zone_mounts 74 /* The length of zonepath */ 107 extern int clone_copy(char *source_zonepath, char *zonepath); 119 extern int clone_snapshot_zfs(char *snap_name, char *zonepath, 121 extern int clone_zfs(char *source_zonepath, char *zonepath, char *presnapbuf, 123 extern void create_zfs_zonepath(char *zonepath); 124 extern int destroy_zfs(char *zonepath); 125 extern boolean_t is_zonepath_zfs(char *zonepath); 126 extern int move_zfs(char *zonepath, cha [all...] |
H A D | zfs.c | 356 * Remove the sw inventory file from inside this zonepath that we picked up out 384 * Make a ZFS clone on zonepath from snapshot_name. 387 clone_snap(char *snapshot_name, char *zonepath) argument 413 "%s: out of memory\n"), zonepath); 417 err = zfs_clone(zhp, zonepath, props); 426 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL) 450 * This function takes a zonepath and attempts to determine what the ZFS 452 * assume that zonepath is an existing directory or ZFS fs since we use 455 * The way this works is that we look at the parent directory of the zonepath 457 * append the last component of the zonepath t 478 path2name(char *zonepath, char *zfs_name, int len) argument 850 clone_snapshot_zfs(char *snap_name, char *zonepath, char *validatesnap) argument 916 clone_zfs(char *source_zonepath, char *zonepath, char *presnapbuf, char *postsnapbuf) argument 992 create_zfs_zonepath(char *zonepath) argument 1059 destroy_zfs(char *zonepath) argument 1151 is_zonepath_zfs(char *zonepath) argument 1186 move_zfs(char *zonepath, char *new_zonepath) argument 1502 zone_mounts_init(zone_mounts_t *mounts, const char *zonepath) argument 1548 zone_mount_rootfs(zone_mounts_t *mounts, const char *zonepath) argument 1638 zone_unmount_rootfs(zone_mounts_t *mounts, const char *zonepath, boolean_t force) argument [all...] |
H A D | zoneadm.c | 140 #define SHELP_MOVE "move zonepath" 279 return (gettext("Move the zone to a new zonepath.")); 283 "the zonepath are untouched).\n\tThe zone can subsequently " 899 "zonepath", path_copy); 910 * zonepath is a literal that should not be translated. 912 (void) fprintf(stderr, gettext("%s zonepath (%s) and " 913 "%s zonepath (%s) overlap.\n"), 967 * The zonepath is supposed to be mode 700 but its 969 * chmod() the zonepath itself to 700. 1885 const char *, const char *, char *, size_t), char *zonename, char *zonepath) 1884 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 1904 char zonepath[MAXPATHLEN]; local 2684 char zonepath[MAXPATHLEN], checkpath[MAXPATHLEN]; local 2819 char zonepath[MAXPATHLEN]; local 3409 clone_copy(char *source_zonepath, char *zonepath) argument 3444 char zonepath[MAXPATHLEN]; local 3749 cleanup_zonepath(char *zonepath, boolean_t all) argument 3868 char zonepath[MAXPATHLEN]; local 3965 mounts.num_root_overlay_mounts, zonepath); local 4189 char zonepath[MAXPATHLEN]; local 4529 char zonepath[MAXPATHLEN]; local 4794 char rootpath[MAXPATHLEN], zonepath[MAXPATHLEN]; local 5399 char zonepath[MAXPATHLEN]; local [all...] |
/opensolaris-onvv-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...] |
/opensolaris-onvv-gate/usr/src/lib/libbrand/common/ |
H A D | libbrand.c | 318 const char *zonename, const char *zonepath, const char *username, 339 if (zonepath == NULL) 341 dst += strlcpy(dbuf + dst, zonepath, dbuf_size - dst); 384 const char *zonepath, const char *username, const char *curr_zone, 434 zonename, zonepath, username, curr_zone) != 0) 449 const char *zonepath, char *buf, size_t len) 452 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, 458 const char *zonepath, char *buf, size_t len) 461 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, 479 const char *zonepath, cha 317 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 383 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 448 brand_get_attach(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 457 brand_get_boot(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 478 brand_get_clone(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 487 brand_get_detach(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 496 brand_get_halt(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 543 brand_get_install(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 568 brand_get_postattach(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 577 brand_get_postclone(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 586 brand_get_postinstall(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 595 brand_get_postsnap(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 604 brand_get_poststatechange(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 613 brand_get_predetach(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 622 brand_get_presnap(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 631 brand_get_prestatechange(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 640 brand_get_preuninstall(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 649 brand_get_query(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 658 brand_get_uninstall(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 667 brand_get_validatesnap(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 684 brand_get_verify_adm(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 693 brand_get_sysboot(brand_handle_t bh, const char *zonename, const char *zonepath, char *buf, size_t len) argument 785 i_brand_platform_iter_mounts(struct brand_handle *bhp, const char *zonepath, int (*func)(void *, const char *, const char *, const char *, const char *), void *data, const xmlChar *mount_type) argument 860 brand_platform_iter_gmounts(brand_handle_t bh, const char *zonepath, int (*func)(void *, const char *, const char *, const char *, const char *), void *data) argument [all...] |
/opensolaris-onvv-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)
|
/opensolaris-onvv-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...] |
/opensolaris-onvv-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
|
/opensolaris-onvv-gate/usr/src/lib/libbe/common/ |
H A D | be_mount.c | 567 * for the current BE since the zone's zonepath is loopback mounted 1665 * Description: This function loopback mounts a zonepath into the altroot 1671 * zonepath - pointer to zone path in the current BE 1680 loopback_mount_zonepath(const char *zonepath, be_mount_data_t *md) argument 1707 * before attempting the loopback mount of zonepath under altroot, 1712 /* get the parent directory for zonepath */ 1713 p = strrchr(zonepath, '/'); 1714 if (p != NULL && p != zonepath) { 1716 p - zonepath + 1)) == NULL) { 1720 (void) strlcpy(parent_dir, zonepath, 2302 char *zonepath = NULL; local 2408 char *zonepath = NULL; local 2495 be_mount_one_zone(zfs_handle_t *be_zhp, be_mount_data_t *md, char *zonename, char *zonepath, char *zonepath_ds) argument 2575 be_unmount_one_zone(be_unmount_data_t *ud, char *zonename, char *zonepath, char *zonepath_ds) argument [all...] |
H A D | be_zones.c | 71 * zone's zonepath. 73 * zonepath - pointer to zonepath 82 be_make_zoneroot(char *zonepath, char *zoneroot, int zoneroot_size) argument 84 (void) snprintf(zoneroot, zoneroot_size, "%s/root", zonepath); 91 * under a zonepath, find the zone roots that belong to the 95 * zonepath_ds - pointer to zone's zonepath dataset. 144 "find active zone root in zonepath dataset %s: %s\n"), 155 "find active zone root in zonepath dataset %s\n"), 171 * zonepath_ds - dataset of the zone's zonepath [all...] |
H A D | be_create.c | 1513 char *zonepath = NULL; local 1585 zonepath = z_zlist_get_zonepath(zlist, i); 1588 * Get the dataset of this zonepath. If its not 1591 if ((zonepath_ds = be_get_ds_from_dir(zonepath)) == NULL) 1596 * dataset of its zonepath. 1629 * zonepath dataset as well. 1631 * zonepath_ds - pointer to zone's zonepath dataset. 1666 "destroy zone roots under zonepath dataset %s: %s\n"), 1684 * dataset, destroy it and the zonepath dataset as well. 1698 /* Get handle to zonepath datase 1792 char *zonepath = NULL; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/zonecfg/ |
H A D | zonecfg_lex.l | 197 <TSTATE>zonepath { return ZONEPATH; } 198 <CSTATE>zonepath { return ZONEPATH; }
|
/opensolaris-onvv-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1348 size_t rootlen, const char *zonepath, char *luroot, size_t lurootlen) 1361 (void) snprintf(luroot, lurootlen, "%s/lu", zonepath); 1666 char zonepath[MAXPATHLEN]; local 1685 if (zone_get_zonepath(zone_name, zonepath, sizeof (zonepath)) != Z_OK) { 1729 if (brand_platform_iter_gmounts(bh, zonepath, 1754 * <zonepath>/root. But when mounting a zone for administration 1756 * updates rootpath to be <zonepath>/lu/a so we'll mount all 1761 * a bunch of global zone file system paths into <zonepath>/lu. 1764 * <zonepath>/l 1347 build_mounted_pre_var(zlog_t *zlogp, char *rootpath, size_t rootlen, const char *zonepath, char *luroot, size_t lurootlen) argument 3662 is_zonepath_zfs(char *zonepath) argument 3704 char zonepath[MAXPATHLEN]; local 4969 char zonepath[MAXPATHLEN]; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/tsol/misc/ |
H A D | txzonemgr.sh | 234 set zonepath=/zone/$zonename" 415 zonepath=$(zoneadm -z $zonename list -p|cut -d : -f4) 416 ZONE_ETC_DIR=$zonepath/root/etc 549 zonepath=$(zoneadm -z $zonename list -p|cut -d : -f4) 550 sys-unconfig -R $zonepath/root 2>/dev/null 1018 zonepath=$(zoneadm -z $1 list -p|cut -d : -f4) 1019 ZONE_ETC_DIR=$zonepath/root/etc
|