/titanic_41/usr/src/cmd/zoneadm/ |
H A D | zoneadm.h | 74 char *zonepath; member 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, char *new_zonepath); 131 extern int zone_mounts_init(zone_mounts_t *mounts, const char *zonepath); 133 extern int zone_mount_rootfs(zone_mounts_t *mounts, const char *zonepath); [all …]
|
H A D | zfs.c | 361 clone_snap(char *snapshot_name, char *zonepath) in clone_snap() argument 387 "%s: out of memory\n"), zonepath); in clone_snap() 391 err = zfs_clone(zhp, zonepath, props); in clone_snap() 400 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL) in clone_snap() 452 path2name(char *zonepath, char *zfs_name, int len) in path2name() argument 463 if ((bnm = strdup(zonepath)) == NULL) in path2name() 466 if ((dnm = strdup(zonepath)) == NULL) { in path2name() 824 clone_snapshot_zfs(char *snap_name, char *zonepath, char *validatesnap) in clone_snapshot_zfs() argument 843 if (path2name(zonepath, clone_name, sizeof (clone_name)) != Z_OK) { in clone_snapshot_zfs() 844 if ((err = clone_copy(snap_path, zonepath)) == Z_OK) in clone_snapshot_zfs() [all …]
|
H A D | zoneadm.c | 1990 const char *, const char *, char *, size_t), char *zonename, char *zonepath) in get_hook() argument 1995 if (bp(bh, zonename, zonepath, cmd + EXEC_LEN, len - EXEC_LEN) != 0) in get_hook() 2009 char zonepath[MAXPATHLEN]; in verify_brand() local 2019 (void) strlcpy(zonepath, "-", sizeof (zonepath)); in verify_brand() 2020 } else if ((err = zonecfg_get_zonepath(handle, zonepath, in verify_brand() 2021 sizeof (zonepath))) != Z_OK) { in verify_brand() 2038 target_zone, zonepath); in verify_brand() 2789 char zonepath[MAXPATHLEN], checkpath[MAXPATHLEN]; in verify_details() local 2803 if ((err = zonecfg_get_zonepath(handle, zonepath, sizeof (zonepath))) != in verify_details() 2822 if (strcmp(zonepath, checkpath) != 0) { in verify_details() [all …]
|
/titanic_41/usr/src/lib/libbrand/common/ |
H A D | libbrand.c | 322 const char *zonename, const char *zonepath, const char *username, in i_substitute_tokens() argument 343 if (zonepath == NULL) in i_substitute_tokens() 345 dst += strlcpy(dbuf + dst, zonepath, dbuf_size - dst); in i_substitute_tokens() 388 const char *zonepath, const char *username, const char *curr_zone, in brand_get_value() argument 438 zonename, zonepath, username, curr_zone) != 0) in brand_get_value() 453 const char *zonepath, char *buf, size_t len) in brand_get_attach() argument 456 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, in brand_get_attach() 462 const char *zonepath, char *buf, size_t len) in brand_get_boot() argument 465 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, in brand_get_boot() 483 const char *zonepath, char *buf, size_t len) in brand_get_clone() argument [all …]
|
/titanic_41/usr/src/lib/brand/shared/zone/ |
H A D | uninstall.ksh | 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" 112 $nop /bin/rmdir "$zonepath" 2>/dev/null [all …]
|
H A D | query.ksh | 32 zonepath=$2 36 get_zonepath_ds $zonepath
|
H A D | common.ksh | 277 sort $fstmpfile | nawk -v zonepath=$zonepath '{ 307 sort -r $fstmpfile | nawk -v zonepath=$zonepath '{ 318 /usr/bin/nawk -v zonepath=$1 '{ 996 chmod 700 $zonepath
|
/titanic_41/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} '{
|
/titanic_41/usr/src/cmd/allocate/ |
H A D | allocate3.c | 899 char zonepath[MAXPATHLEN]; in exec_clean() local 904 zonepath[0] = '\0'; in exec_clean() 910 (void) strcpy(zonepath, "/"); in exec_clean() 918 (void) strcpy(zonepath, zoneroot); in exec_clean() 949 pw_ent.pw_name, devzone, zonepath, NULL); in exec_clean() 959 devzone, zonepath, NULL); in exec_clean() 971 dprintf("zonepath=%s ", zonepath); in exec_clean() 974 pw_ent.pw_name, devzone, zonepath, NULL); in exec_clean() 1701 char zonepath[MAXPATHLEN]; in create_znode() local 1711 (void) strcpy(zonepath, zoneroot); in create_znode() [all …]
|
/titanic_41/usr/src/lib/brand/solaris10/s10_support/ |
H A D | s10_support.c | 199 get_ku_patchlist(char *zonepath, char **patchlist) in get_ku_patchlist() argument 207 "%s/root/var/sadm/pkg/SUNWcakr/pkginfo", zonepath) in get_ku_patchlist() 249 char zonepath[MAXPATHLEN]; in have_valid_ku() local 259 if (zone_get_zonepath(zonename, zonepath, sizeof (zonepath)) != Z_OK) in have_valid_ku() 267 zonepath) >= sizeof (sanity_skip)) in have_valid_ku() 273 if (get_ku_patchlist(zonepath, &patchlist) != 0 || patchlist == NULL) in have_valid_ku()
|
/titanic_41/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 | uninstall.ksh | 40 zonepath=$2 95 zoneroot=$zonepath/root
|
H A D | common.ksh | 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 | prestate.ksh | 46 zonepath=$2
|
H A D | attach.ksh | 81 zonepath="$ZONEPATH" 178 get_zonepath_ds $zonepath
|
H A D | detach.ksh | 40 zonepath="$ZONEPATH"
|
H A D | clone.ksh | 52 sourcezonepath=`/usr/sbin/zonecfg -z $sourcezone info zonepath | \
|
H A D | image_install.ksh | 113 zonepath="$ZONEPATH"
|
/titanic_41/usr/src/lib/libbe/common/ |
H A D | be_mount.c | 1725 loopback_mount_zonepath(const char *zonepath, be_mount_data_t *md) in loopback_mount_zonepath() argument 1758 p = strrchr(zonepath, '/'); in loopback_mount_zonepath() 1759 if (p != NULL && p != zonepath) { in loopback_mount_zonepath() 1761 p - zonepath + 1)) == NULL) { in loopback_mount_zonepath() 1765 (void) strlcpy(parent_dir, zonepath, p - zonepath + 1); in loopback_mount_zonepath() 1831 md->altroot, zonepath); in loopback_mount_zonepath() 1837 if (mount(zonepath, altzonepath, mflag, MNTTYPE_LOFS, in loopback_mount_zonepath() 1842 zonepath, altzonepath, strerror(err)); in loopback_mount_zonepath() 2347 char *zonepath = NULL; in be_mount_zones() local 2369 zonepath = z_zlist_get_zonepath(zlst, k); in be_mount_zones() [all …]
|
H A D | be_zones.c | 86 be_make_zoneroot(char *zonepath, char *zoneroot, int zoneroot_size) in be_make_zoneroot() argument 88 (void) snprintf(zoneroot, zoneroot_size, "%s/root", zonepath); in be_make_zoneroot()
|
H A D | be_create.c | 1616 char *zonepath = NULL; in be_destroy_zones() local 1688 zonepath = z_zlist_get_zonepath(zlist, i); in be_destroy_zones() 1694 if ((zonepath_ds = be_get_ds_from_dir(zonepath)) == NULL) in be_destroy_zones() 1895 char *zonepath = NULL; in be_copy_zones() local 1987 zonepath = z_zlist_get_zonepath(zlist, i); in be_copy_zones() 1997 if ((ds = be_get_ds_from_dir(zonepath)) == NULL) in be_copy_zones() 2005 be_make_zoneroot(zonepath, zoneroot, sizeof (zoneroot)); in be_copy_zones()
|
/titanic_41/usr/src/lib/libtsol/common/ |
H A D | getpathbylabel.c | 232 struct mnttab *autofs_mnt, char *globalpath, char *zonepath, int global_len) in getnfspathbyautofs() argument 321 zp_len = strlen(zonepath); in getnfspathbyautofs() 358 char zonepath[MAXPATHLEN]; in getglobalpath() local 368 (void) strncpy(zonepath, prefix, MAXPATHLEN); in getglobalpath() 402 globalpath, zonepath, MAXPATHLEN) == 0) { in getglobalpath()
|
/titanic_41/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1355 size_t rootlen, const char *zonepath, char *luroot, size_t lurootlen) in build_mounted_pre_var() argument 1368 (void) snprintf(luroot, lurootlen, "%s/lu", zonepath); in build_mounted_pre_var() 1673 char zonepath[MAXPATHLEN]; in mount_filesystems() local 1692 if (zone_get_zonepath(zone_name, zonepath, sizeof (zonepath)) != Z_OK) { in mount_filesystems() 1736 if (brand_platform_iter_gmounts(bh, zonepath, in mount_filesystems() 1791 rootpath, sizeof (rootpath), zonepath, luroot, sizeof (luroot))) in mount_filesystems() 3669 is_zonepath_zfs(char *zonepath) in is_zonepath_zfs() argument 3676 if (statvfs64(zonepath, &buf1) != 0) in is_zonepath_zfs() 3682 if ((path = strdup(zonepath)) == NULL) in is_zonepath_zfs() 3711 char zonepath[MAXPATHLEN]; in validate_rootds_label() local [all …]
|
/titanic_41/usr/src/cmd/zonecfg/ |
H A D | zonecfg_lex.l | 197 <TSTATE>zonepath { return ZONEPATH; } 198 <CSTATE>zonepath { return ZONEPATH; }
|
/titanic_41/usr/src/cmd/tsol/misc/ |
H A D | txzonemgr.sh | 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
|