Home
last modified time | relevance | path

Searched refs:altroot (Results 1 – 25 of 29) sorted by relevance

12

/titanic_41/usr/src/cmd/boot/scripts/
H A Dextract_boot_filelist.ksh49 altroot=$1
52 cd $altroot/
64 altroot=""
73 altroot="$OPTARG"
97 if [ "$altroot" == "" ] || [ $platform_provided = yes ]; then
116 if [ -f $altroot/$list ]; then
117 grep ^platform$ $altroot/$list > /dev/null
119 build_platform $altroot
121 cat $altroot/$list | grep -v ^platform$
123 cat $altroot/$list | grep -v ^platform$ | \
[all …]
/titanic_41/usr/src/lib/libbe/common/
H A Dbe_mount.c249 _be_mount(char *be_name, char **altroot, int flags) in _be_mount() argument
261 if (be_name == NULL || altroot == NULL) in _be_mount()
316 if (*altroot == NULL) { in _be_mount()
326 tmp_altroot = *altroot; in _be_mount()
329 md.altroot = tmp_altroot; in _be_mount()
348 free(md.altroot); in _be_mount()
397 *altroot = tmp_altroot; in _be_mount()
510 ud.altroot = mountpoint; in _be_unmount()
599 if (lstat(md->altroot, &buf) != 0) { in be_mount_zone_root()
600 if (mkdirp(md->altroot, 0755) != 0) { in be_mount_zone_root()
[all …]
H A Dlibbe_priv.h94 char *altroot; /* Location of where to mount BE */ member
100 char *altroot; /* Location of where BE is mounted */ member
118 char *altroot; member
H A Dbe_utils.c2029 if (!zfs_is_mounted(zhp, &md.altroot)) { in be_update_zone_vfstab()
2031 if ((ret = be_make_tmp_mountpoint(&md.altroot)) != BE_SUCCESS) { in be_update_zone_vfstab()
2042 free(md.altroot); in be_update_zone_vfstab()
2050 md.altroot); in be_update_zone_vfstab()
2062 (void) rmdir(md.altroot); in be_update_zone_vfstab()
2066 zfs_get_name(zhp), md.altroot); in be_update_zone_vfstab()
2072 free(md.altroot); in be_update_zone_vfstab()
/titanic_41/usr/src/lib/libzonecfg/common/
H A Dscratchops.c149 size_t kernlen, char *altroot, size_t altlen) in zonecfg_get_scratch() argument
175 if (altroot != NULL && strlcpy(altroot, cp2, altlen) >= altlen) in zonecfg_get_scratch()
183 zonecfg_find_scratch(FILE *fp, const char *zonename, const char *altroot, in zonecfg_find_scratch() argument
192 if (strcmp(zone, zonename) == 0 && strcmp(altroot, aroot) == 0) in zonecfg_find_scratch()
200 size_t namelen, char *altroot, size_t altlen) in zonecfg_reverse_scratch() argument
206 sizeof (kzone), altroot, altlen) == 0) { in zonecfg_reverse_scratch()
215 const char *altroot) in zonecfg_add_scratch() argument
219 if (fprintf(fp, "%s %s %s\n", zonename, kernzone, altroot) == EOF) in zonecfg_add_scratch()
/titanic_41/usr/src/cmd/svr4pkg/pkgadm/
H A Dlistcert.c60 char *altroot = NULL; in listcert() local
92 altroot = optarg; in listcert()
138 if (altroot != NULL) { in listcert()
139 if (strlcpy(keystore_file, altroot, MAXPATHLEN) >= MAXPATHLEN) { in listcert()
140 log_msg(LOG_MSG_ERR, MSG_TOO_LONG, altroot); in listcert()
145 log_msg(LOG_MSG_ERR, MSG_TOO_LONG, altroot); in listcert()
151 if (geteuid() == 0 || altroot != NULL) { in listcert()
H A Daddcert.c72 char *altroot = NULL; in addcert() local
115 altroot = optarg; in addcert()
185 if (altroot != NULL) { in addcert()
186 if (strlcpy(keystore_file, altroot, MAXPATHLEN) >= MAXPATHLEN) { in addcert()
187 log_msg(LOG_MSG_ERR, MSG_TOO_LONG, altroot); in addcert()
192 log_msg(LOG_MSG_ERR, MSG_TOO_LONG, altroot); in addcert()
198 if (geteuid() == 0 || altroot != NULL) { in addcert()
H A Dremovecert.c60 char *altroot = NULL; in removecert() local
82 altroot = optarg; in removecert()
108 if (geteuid() == 0 || altroot != NULL) { in removecert()
/titanic_41/usr/src/lib/libc/i386/sys/
H A Duadmin.c172 char *altroot; in uadmin() local
216 altroot = "-R /stubboot "; in uadmin()
218 altroot = ""; in uadmin()
255 altroot, entry); in uadmin()
259 "-o %s%s%s", altroot, quote, in uadmin()
/titanic_41/usr/src/lib/libc/amd64/sys/
H A Duadmin.c172 char *altroot; in uadmin() local
216 altroot = "-R /stubboot "; in uadmin()
218 altroot = ""; in uadmin()
255 altroot, entry); in uadmin()
259 "-o %s%s%s", altroot, quote, in uadmin()
/titanic_41/usr/src/lib/libinstzones/common/
H A Dzones_lofs.c221 const char *altroot; in z_resolve_lofs() local
234 altroot = zonecfg_get_root(); in z_resolve_lofs()
235 arlen = strlen(altroot); in z_resolve_lofs()
276 (strncmp(mnp->mnt_special, altroot, arlen) != 0 || in z_resolve_lofs()
/titanic_41/usr/src/cmd/avs/dscfg/
H A Ddscfg.c85 char altroot[MAX_FILENAME]; /* specifed root location */ variable
325 "%s%s", altroot, DEFAULT_PARSER_LOC); in print_config()
536 strcpy(altroot, optarg);
627 rflg ? altroot : NULL);
641 rflg ? altroot : NULL);
752 " %s/var/tmp/.dscfg.bak", altroot,
753 altroot, altroot);
/titanic_41/usr/src/cmd/dladm/
H A Ddladm.c1799 char *altroot = NULL; in do_create_aggr() local
1875 altroot = optarg; in do_create_aggr()
1909 if (altroot != NULL) in do_create_aggr()
1910 altroot_cmd(altroot, argc, argv); in do_create_aggr()
1973 i_dladm_aggr_get_linkid(const char *altroot, const char *arg, in i_dladm_aggr_get_linkid() argument
1986 if (altroot != NULL) in i_dladm_aggr_get_linkid()
2003 char *altroot = NULL; in do_delete_aggr() local
2015 altroot = optarg; in do_delete_aggr()
2027 status = i_dladm_aggr_get_linkid(altroot, argv[optind], &linkid, flags); in do_delete_aggr()
2031 if (altroot != NULL) in do_delete_aggr()
[all …]
/titanic_41/usr/src/lib/brand/solaris10/zone/
H A Dprestate.ksh49 altroot=$5 # unused at this time for s10 branded zones
H A Dpoststate.ksh50 altroot=$5 # unused at this time for s10 branded zones
/titanic_41/usr/src/test/zfs-tests/tests/functional/cachefile/
H A Dcachefile_003_pos.ksh83 log_must $ZPOOL create -o altroot=$TESTDIR -o cachefile=${opts[i]} \
/titanic_41/usr/src/cmd/flowadm/
H A Dflowadm.c216 char *altroot = NULL; variable
347 altroot = optarg; in do_add_flow()
399 t_arg, altroot); in do_add_flow()
428 altroot = optarg; in do_remove_flow()
456 status = dladm_flow_remove(handle, flowname, t_arg, altroot); in do_remove_flow()
463 state.fs_altroot = altroot; in do_remove_flow()
/titanic_41/usr/src/lib/libdscfg/common/
H A Dcfg.h110 char *cfg_location(char *location, int mode, char *altroot);
H A Dcfg.c2258 cfg_location(char *location, int mode, char *altroot) in cfg_location() argument
2274 if (altroot) { in cfg_location()
2275 strcpy(wellknown, altroot); in cfg_location()
2343 if (altroot) { in cfg_location()
2344 strcpy(loc, altroot); in cfg_location()
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_get/
H A Dzpool_get.cfg32 typeset -a properties=("size" "capacity" "altroot" "health" "guid" "version"
/titanic_41/usr/src/cmd/zoneadmd/
H A Dzoneadmd.c464 const char *altroot; in brand_prestatechg() local
469 altroot = zonecfg_get_root(); in brand_prestatechg()
471 state, cmd, altroot) > sizeof (cmdbuf)) in brand_prestatechg()
487 const char *altroot; in brand_poststatechg() local
492 altroot = zonecfg_get_root(); in brand_poststatechg()
494 state, cmd, altroot) > sizeof (cmdbuf)) in brand_poststatechg()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dspa_misc.c541 spa_add(const char *name, nvlist_t *config, const char *altroot) in spa_add() argument
607 if (altroot) { in spa_add()
608 spa->spa_root = spa_strdup(altroot); in spa_add()
619 dp->scd_path = altroot ? NULL : spa_strdup(spa_config_path); in spa_add()
H A Dspa.c3231 char *altroot, size_t buflen) in spa_get_stats() argument
3274 if (altroot) { in spa_get_stats()
3279 spa_altroot(spa, altroot, buflen); in spa_get_stats()
3281 altroot[0] = '\0'; in spa_get_stats()
3285 spa_altroot(spa, altroot, buflen); in spa_get_stats()
3478 char *altroot = NULL; in spa_create() local
3502 zpool_prop_to_name(ZPOOL_PROP_ALTROOT), &altroot); in spa_create()
3503 spa = spa_add(pool, NULL, altroot); in spa_create()
3923 char *altroot = NULL; in spa_import() local
3946 zpool_prop_to_name(ZPOOL_PROP_ALTROOT), &altroot); in spa_import()
[all …]
/titanic_41/usr/src/cmd/zpool/
H A Dzpool_main.c650 char *altroot = NULL; in zpool_do_create() local
669 altroot = optarg; in zpool_do_create()
712 altroot = propval; in zpool_do_create()
788 if (altroot != NULL && altroot[0] != '/') { in zpool_do_create()
790 "must be an absolute path\n"), altroot); in zpool_do_create()
812 if (altroot != NULL) in zpool_do_create()
814 altroot, poolname); in zpool_do_create()
819 if (altroot != NULL) in zpool_do_create()
821 altroot, mountpoint); in zpool_do_create()
/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h602 extern int spa_get_stats(const char *pool, nvlist_t **config, char *altroot,
697 extern spa_t *spa_add(const char *name, nvlist_t *config, const char *altroot);

12