Home
last modified time | relevance | path

Searched refs:zonepath (Results 1 – 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/cmd/zoneadm/
H A Dzoneadm.h74 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 Dzfs.c369 clone_snap(char *snapshot_name, char *zonepath) in clone_snap() argument
394 "%s: out of memory\n"), zonepath); in clone_snap()
398 err = zfs_clone(zhp, zonepath, props); in clone_snap()
407 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL) in clone_snap()
459 path2name(char *zonepath, char *zfs_name, int len) in path2name() argument
470 if ((bnm = strdup(zonepath)) == NULL) in path2name()
473 if ((dnm = strdup(zonepath)) == NULL) { in path2name()
831 clone_snapshot_zfs(char *snap_name, char *zonepath, char *validatesnap) in clone_snapshot_zfs() argument
850 if (path2name(zonepath, clone_name, sizeof (clone_name)) != Z_OK) { in clone_snapshot_zfs()
851 if ((err = clone_copy(snap_path, zonepath)) == Z_OK) in clone_snapshot_zfs()
[all …]
H A Dzoneadm.c2000 const char *, const char *, char *, size_t), char *zonename, char *zonepath) in get_hook() argument
2005 if (bp(bh, zonename, zonepath, cmd + EXEC_LEN, len - EXEC_LEN) != 0) in get_hook()
2019 char zonepath[MAXPATHLEN]; in verify_brand() local
2029 (void) strlcpy(zonepath, "-", sizeof (zonepath)); in verify_brand()
2030 } else if ((err = zonecfg_get_zonepath(handle, zonepath, in verify_brand()
2031 sizeof (zonepath))) != Z_OK) { in verify_brand()
2048 target_zone, zonepath); in verify_brand()
2799 char zonepath[MAXPATHLEN], checkpath[MAXPATHLEN]; in verify_details() local
2813 if ((err = zonecfg_get_zonepath(handle, zonepath, sizeof (zonepath))) != in verify_details()
2832 if (strcmp(zonepath, checkpath) != 0) { in verify_details()
[all …]
/illumos-gate/usr/src/lib/libbrand/common/
H A Dlibbrand.c312 const char *zonename, const char *zonepath, const char *username, in i_substitute_tokens() argument
333 if (zonepath == NULL) in i_substitute_tokens()
335 dst += strlcpy(dbuf + dst, zonepath, dbuf_size - dst); in i_substitute_tokens()
378 const char *zonepath, const char *username, const char *curr_zone, in brand_get_value() argument
428 zonename, zonepath, username, curr_zone) != 0) in brand_get_value()
443 const char *zonepath, char *buf, size_t len) in brand_get_attach() argument
446 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, in brand_get_attach()
452 const char *zonepath, char *buf, size_t len) in brand_get_boot() argument
455 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL, in brand_get_boot()
473 const char *zonepath, char *buf, size_t len) in brand_get_clone() argument
[all …]
/illumos-gate/usr/src/lib/brand/shared/zone/
H A Duninstall.ksh95 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 Dquery.ksh32 zonepath=$2
36 get_zonepath_ds $zonepath
H A Dcommon.ksh277 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
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate3.c898 char zonepath[MAXPATHLEN]; in exec_clean() local
903 zonepath[0] = '\0'; in exec_clean()
909 (void) strcpy(zonepath, "/"); in exec_clean()
917 (void) strcpy(zonepath, zoneroot); in exec_clean()
948 pw_ent.pw_name, devzone, zonepath, NULL); in exec_clean()
958 devzone, zonepath, NULL); in exec_clean()
970 dprintf("zonepath=%s ", zonepath); in exec_clean()
973 pw_ent.pw_name, devzone, zonepath, NULL); in exec_clean()
1700 char zonepath[MAXPATHLEN]; in create_znode() local
1710 (void) strcpy(zonepath, zoneroot); in create_znode()
[all …]
/illumos-gate/usr/src/cmd/tsol/demo/
H A Drunwlabel.ksh38 zonepath=`getzonepath "$1" | sed -e 's/\/root$//'`
42 for zone in `zoneadm list -pi | nawk -F: -v zonepath=${zonepath} '{
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/
H A Ds10_support.c199 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()
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_mount.c1697 loopback_mount_zonepath(const char *zonepath, be_mount_data_t *md) in loopback_mount_zonepath() argument
1730 p = strrchr(zonepath, '/'); in loopback_mount_zonepath()
1731 if (p != NULL && p != zonepath) { in loopback_mount_zonepath()
1733 p - zonepath + 1)) == NULL) { in loopback_mount_zonepath()
1737 (void) strlcpy(parent_dir, zonepath, p - zonepath + 1); in loopback_mount_zonepath()
1803 md->altroot, zonepath); in loopback_mount_zonepath()
1809 if (mount(zonepath, altzonepath, mflag, MNTTYPE_LOFS, in loopback_mount_zonepath()
1814 zonepath, altzonepath, strerror(err)); in loopback_mount_zonepath()
2302 char *zonepath = NULL; in be_mount_zones() local
2324 zonepath = z_zlist_get_zonepath(zlst, k); in be_mount_zones()
[all …]
H A Dbe_zones.c87 be_make_zoneroot(char *zonepath, char *zoneroot, int zoneroot_size) in be_make_zoneroot() argument
89 (void) snprintf(zoneroot, zoneroot_size, "%s/root", zonepath); in be_make_zoneroot()
H A Dbe_create.c1691 char *zonepath = NULL; in be_destroy_zones() local
1763 zonepath = z_zlist_get_zonepath(zlist, i); in be_destroy_zones()
1769 if ((zonepath_ds = be_get_ds_from_dir(zonepath)) == NULL) in be_destroy_zones()
1974 char *zonepath = NULL; in be_copy_zones() local
2066 zonepath = z_zlist_get_zonepath(zlist, i); in be_copy_zones()
2076 if ((ds = be_get_ds_from_dir(zonepath)) == NULL) in be_copy_zones()
2084 be_make_zoneroot(zonepath, zoneroot, sizeof (zoneroot)); in be_copy_zones()
/illumos-gate/usr/src/lib/brand/solaris10/zone/
H A Dpoststate.ksh47 zonepath=$2
55 echo "global:installed:/" > $zonepath/root/etc/zones/index
H A Duninstall.ksh40 zonepath=$2
95 zoneroot=$zonepath/root
H A Dcommon.ksh197 get_zonepath_ds $zonepath
204 mount -F zfs $ACTIVE_DS $zonepath/root || fail_fatal "$f_zfs_mount"
213 get_zonepath_ds $zonepath
H A Dattach.ksh81 zonepath="$ZONEPATH"
178 get_zonepath_ds $zonepath
H A Dprestate.ksh46 zonepath=$2
H A Ddetach.ksh40 zonepath="$ZONEPATH"
H A Dclone.ksh52 sourcezonepath=`/usr/sbin/zonecfg -z $sourcezone info zonepath | \
H A Dimage_install.ksh113 zonepath="$ZONEPATH"
/illumos-gate/usr/src/lib/libtsol/common/
H A Dgetpathbylabel.c229 struct mnttab *autofs_mnt, char *globalpath, char *zonepath, int global_len) in getnfspathbyautofs() argument
318 zp_len = strlen(zonepath); in getnfspathbyautofs()
355 char zonepath[MAXPATHLEN]; in getglobalpath() local
365 (void) strncpy(zonepath, prefix, MAXPATHLEN); in getglobalpath()
399 globalpath, zonepath, MAXPATHLEN) == 0) { in getglobalpath()
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dvplat.c1375 size_t rootlen, const char *zonepath, char *luroot, size_t lurootlen) in build_mounted_pre_var() argument
1388 (void) snprintf(luroot, lurootlen, "%s/lu", zonepath); in build_mounted_pre_var()
1693 char zonepath[MAXPATHLEN]; in mount_filesystems() local
1712 if (zone_get_zonepath(zone_name, zonepath, sizeof (zonepath)) != Z_OK) { in mount_filesystems()
1756 if (brand_platform_iter_gmounts(bh, zone_name, zonepath, in mount_filesystems()
1811 rootpath, sizeof (rootpath), zonepath, luroot, sizeof (luroot))) in mount_filesystems()
3780 is_zonepath_zfs(char *zonepath) in is_zonepath_zfs() argument
3787 if (statvfs64(zonepath, &buf1) != 0) in is_zonepath_zfs()
3793 if ((path = strdup(zonepath)) == NULL) in is_zonepath_zfs()
3822 char zonepath[MAXPATHLEN]; in validate_rootds_label() local
[all …]
/illumos-gate/usr/src/cmd/tsol/misc/
H A Dtxzonemgr.sh416 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
/illumos-gate/usr/src/cmd/zonecfg/
H A Dzonecfg_lex.l199 <TSTATE>zonepath { return ZONEPATH; }
200 <CSTATE>zonepath { return ZONEPATH; }

12