Home
last modified time | relevance | path

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

12

/titanic_51/usr/src/cmd/zoneadm/
H A Dzoneadm.h73 /* The zone's zonepath */
74 char *zonepath; member
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 Dzfs.c330 * Remove the sw inventory file from inside this zonepath that we picked up out
358 * Make a ZFS clone on zonepath from snapshot_name.
361 clone_snap(char *snapshot_name, char *zonepath) in clone_snap() argument
386 "%s: out of memory\n"), zonepath); in clone_snap()
390 err = zfs_clone(zhp, zonepath, props); in clone_snap()
399 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL) in clone_snap()
423 * This function takes a zonepath and attempts to determine what the ZFS
425 * assume that zonepath is an existing directory or ZFS fs since we use
428 * The way this works is that we look at the parent directory of the zonepath
430 * append the last component of the zonepath t
451 path2name(char * zonepath,char * zfs_name,int len) path2name() argument
823 clone_snapshot_zfs(char * snap_name,char * zonepath,char * validatesnap) clone_snapshot_zfs() argument
889 clone_zfs(char * source_zonepath,char * zonepath,char * presnapbuf,char * postsnapbuf) clone_zfs() argument
965 create_zfs_zonepath(char * zonepath) create_zfs_zonepath() argument
1031 destroy_zfs(char * zonepath) destroy_zfs() argument
1123 is_zonepath_zfs(char * zonepath) is_zonepath_zfs() argument
1158 move_zfs(char * zonepath,char * new_zonepath) move_zfs() argument
1463 zone_mounts_init(zone_mounts_t * mounts,const char * zonepath) zone_mounts_init() argument
1509 zone_mount_rootfs(zone_mounts_t * mounts,const char * zonepath) zone_mount_rootfs() argument
1599 zone_unmount_rootfs(zone_mounts_t * mounts,const char * zonepath,boolean_t force) zone_unmount_rootfs() argument
[all...]
H A Dzoneadm.c143 #define SHELP_MOVE "move zonepath"
288 return (gettext("Move the zone to a new zonepath.")); in long_help()
292 "the zonepath are untouched).\n\tThe zone can subsequently " in long_help()
908 "zonepath", path_copy); in crosscheck_zonepaths()
919 * zonepath is a literal that should not be translated. in crosscheck_zonepaths()
921 (void) fprintf(stderr, gettext("%s zonepath (%s) and " in crosscheck_zonepaths()
922 "%s zonepath (%s) overlap.\n"), in crosscheck_zonepaths()
976 * The zonepath is supposed to be mode 700 but its in validate_zonepath()
978 * chmod() the zonepath itself to 700. in validate_zonepath()
1991 const char *, const char *, char *, size_t), char *zonename, char *zonepath) in get_hook() argument
2010 char zonepath[MAXPATHLEN]; verify_brand() local
2790 char zonepath[MAXPATHLEN], checkpath[MAXPATHLEN]; verify_details() local
2925 char zonepath[MAXPATHLEN]; install_func() local
3516 clone_copy(char * source_zonepath,char * zonepath) clone_copy() argument
3551 char zonepath[MAXPATHLEN]; clone_func() local
3856 cleanup_zonepath(char * zonepath,boolean_t all) cleanup_zonepath() argument
3975 char zonepath[MAXPATHLEN]; move_func() local
4296 char zonepath[MAXPATHLEN]; detach_func() local
4636 char zonepath[MAXPATHLEN]; attach_func() local
4901 char rootpath[MAXPATHLEN], zonepath[MAXPATHLEN]; uninstall_func() local
5506 char zonepath[MAXPATHLEN]; sysboot_func() local
[all...]
/titanic_51/usr/src/lib/libbrand/common/
H A Dlibbrand.c322 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, cha in brand_get_clone() argument
492 brand_get_detach(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_detach() argument
501 brand_get_halt(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_halt() argument
510 brand_get_shutdown(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_shutdown() argument
572 brand_get_install(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_install() argument
597 brand_get_postattach(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_postattach() argument
606 brand_get_postclone(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_postclone() argument
615 brand_get_postinstall(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_postinstall() argument
624 brand_get_postsnap(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_postsnap() argument
633 brand_get_poststatechange(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_poststatechange() argument
642 brand_get_predetach(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_predetach() argument
651 brand_get_presnap(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_presnap() argument
660 brand_get_prestatechange(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_prestatechange() argument
669 brand_get_preuninstall(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_preuninstall() argument
678 brand_get_query(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_query() argument
687 brand_get_uninstall(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_uninstall() argument
696 brand_get_validatesnap(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_validatesnap() argument
713 brand_get_verify_adm(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_verify_adm() argument
722 brand_get_sysboot(brand_handle_t bh,const char * zonename,const char * zonepath,char * buf,size_t len) brand_get_sysboot() argument
813 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) i_brand_platform_iter_mounts() argument
888 brand_platform_iter_gmounts(brand_handle_t bh,const char * zonepath,int (* func)(void *,const char *,const char *,const char *,const char *),void * data) brand_platform_iter_gmounts() argument
[all...]
/titanic_51/usr/src/lib/brand/shared/zone/
H A Duninstall.ksh47 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 Dquery.ksh32 zonepath=$2
36 get_zonepath_ds $zonepath
H A Dcommon.ksh268 # 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...]
/titanic_51/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} '{
43 if ("$4" == "${zonepath}") {
/titanic_51/usr/src/cmd/allocate/
H A Dallocate3.c899 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[MAXPATHLE in create_znode() local
1789 char zonepath[MAXPATHLEN]; remove_znode() local
[all...]
/titanic_51/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()
/titanic_51/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.ksh47 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 Dprestate.ksh46 zonepath=$2
H A Dattach.ksh79 # 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 Ddetach.ksh38 # XXX shared/common script currently uses lower case zonename & zonepath
40 zonepath="$ZONEPATH"
H A Dclone.ksh52 sourcezonepath=`/usr/sbin/zonecfg -z $sourcezone info zonepath | \
H A Dimage_install.ksh37 no_installing=$(gettext " Installing: Using pre-existing data in zonepath")
111 # XXX shared/common script currently uses lower case zonename & zonepath
113 zonepath="$ZONEPATH"
/titanic_51/usr/src/lib/libbe/common/
H A Dbe_mount.c615 * for the current BE since the zone's zonepath is loopback mounted in be_mount_zone_root()
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) in loopback_mount_zonepath() argument
1752 * before attempting the loopback mount of zonepath under altroot, in loopback_mount_zonepath()
1757 /* get the parent directory for zonepath */ in loopback_mount_zonepath()
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, in loopback_mount_zonepath()
2347 char *zonepath = NULL; be_mount_zones() local
2453 char *zonepath = NULL; be_unmount_zones() local
2541 be_mount_one_zone(zfs_handle_t * be_zhp,be_mount_data_t * md,char * zonename,char * zonepath,char * zonepath_ds) be_mount_one_zone() argument
2620 be_unmount_one_zone(be_unmount_data_t * ud,char * zonename,char * zonepath,char * zonepath_ds) be_unmount_one_zone() argument
[all...]
H A Dbe_zones.c75 * zone's zonepath.
77 * zonepath - pointer to zonepath
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()
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"), in be_find_active_zone_root()
170 "find active zone root in zonepath dataset %s\n"), in be_find_active_zone_root()
186 * zonepath_ds - dataset of the zone's zonepath
[all...]
H A Dbe_create.c1614 char *zonepath = NULL; in be_destroy_zones() local
1686 zonepath = z_zlist_get_zonepath(zlist, i); in be_destroy_zones()
1689 * Get the dataset of this zonepath. If its not in be_destroy_zones()
1692 if ((zonepath_ds = be_get_ds_from_dir(zonepath)) == NULL) in be_destroy_zones()
1697 * dataset of its zonepath. in be_destroy_zones()
1730 * zonepath dataset as well.
1732 * zonepath_ds - pointer to zone's zonepath dataset.
1767 "destroy zone roots under zonepath dataset %s: %s\n"), in be_destroy_zone_roots()
1785 * dataset, destroy it and the zonepath dataset as well. in be_destroy_zone_roots()
1799 /* Get handle to zonepath datase in be_destroy_zone_roots()
1893 char *zonepath = NULL; be_copy_zones() local
[all...]
/titanic_51/usr/src/lib/libtsol/common/
H A Dgetpathbylabel.c232 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_51/usr/src/cmd/zoneadmd/
H A Dvplat.c1356 size_t rootlen, const char *zonepath, char *luroot, size_t lurootlen) in build_mounted_pre_var() argument
1369 (void) snprintf(luroot, lurootlen, "%s/lu", zonepath); in build_mounted_pre_var()
1674 char zonepath[MAXPATHLEN]; in mount_filesystems() local
1693 if (zone_get_zonepath(zone_name, zonepath, sizeof (zonepath)) != Z_OK) { in mount_filesystems()
1737 if (brand_platform_iter_gmounts(bh, zonepath, in mount_filesystems()
1762 * <zonepath>/root. But when mounting a zone for administration in mount_filesystems()
1764 * updates rootpath to be <zonepath>/lu/a so we'll mount all in mount_filesystems()
1769 * a bunch of global zone file system paths into <zonepath>/lu. in mount_filesystems()
1772 * <zonepath>/l in mount_filesystems()
3669 is_zonepath_zfs(char * zonepath) is_zonepath_zfs() argument
3711 char zonepath[MAXPATHLEN]; validate_rootds_label() local
4994 char zonepath[MAXPATHLEN]; vplat_bringup() local
[all...]
/titanic_51/usr/src/cmd/zonecfg/
H A Dzonecfg_lex.l197 <TSTATE>zonepath { return ZONEPATH; }
198 <CSTATE>zonepath { return ZONEPATH; }
/titanic_51/usr/src/cmd/tsol/misc/
H A Dtxzonemgr.sh235 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

12