/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/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_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...] |
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...] |
/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/lib/libproc/common/ |
H A D | Pzone.c | 191 i_zone_get_zonepath(char *zone_name, char *zonepath, size_t rp_sz) argument 210 return (zone_get_zonepath_fp(zone_name, zonepath, rp_sz));
|
/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/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/cmd/zoneadmd/ |
H A D | zoneadmd.c | 626 char zonepath[MAXPATHLEN]; local 630 zonepath, sizeof (zonepath)) != Z_OK) { 635 (void) snprintf(luroot, sizeof (luroot), "%s/lu", zonepath);
|
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/zonecfg/ |
H A D | zonecfg.c | 164 "zonepath", 199 "zonepath", 343 "set zonepath=", 375 "info zonepath", 862 "zonepath. '%s -b' results in a blank " 1849 char zonepath[MAXPATHLEN], outfile[MAXPATHLEN], pool[MAXNAMELEN]; local 1908 if (zonecfg_get_zonepath(handle, zonepath, sizeof (zonepath)) == Z_OK && 1909 strlen(zonepath) > 0) 1911 pt_to_str(PT_ZONEPATH), zonepath); 5006 char zonepath[MAXPATHLEN]; local 6093 char zonepath[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | zone.c | 430 * have to worry about the zonepath itself. 5387 char *zonepath; local 5430 zonepath = kmem_alloc(size, KM_SLEEP); 5431 bcopy(zone->zone_rootpath, zonepath, size); 5432 zonepath[size - 1] = '\0'; 5441 zonepath = "/"; 5451 zonepath = kmem_alloc(size, KM_SLEEP); 5452 bcopy(zone_prefix, zonepath, prefix_len); 5453 bcopy(zone->zone_name, zonepath + 5455 zonepath[siz [all...] |
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 122 #define DTD_ATTR_ZONEPATH (const xmlChar *) "zonepath" 945 zonecfg_set_zonepath(zone_dochandle_t handle, char *zonepath) argument 955 modpath = strdup(zonepath); 1101 * since we need to walk all zonepath's in order to be able to detect conflicts 1112 char name[ZONENAME_MAX], zonepath[MAXPATHLEN]; local 1125 if ((err = zonecfg_get_zonepath(handle, zonepath, 1126 sizeof (zonepath))) != Z_OK) 1128 (void) strlcpy(ze.zone_path, zonepath + strlen(zonecfg_root), 1518 char path[MAXPATHLEN], zonepath[MAXPATHLEN], rpath[MAXPATHLEN]; local 1532 error = zonecfg_get_zonepath(handle, zonepath, sizeo 5563 zone_get_zonepath(char *zone_name, char *zonepath, size_t rp_sz) argument [all...] |