Searched refs:altroot (Results 1 - 17 of 17) sorted by relevance

/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/
H A Dzpool_split_encryption.ksh26 # 2. Split and re-import the pool, verify altroot is mounted.
44 altroot="$TESTDIR/zpool-split-$RANDOM"
52 # 2. Split and re-import the pool, verify altroot is mounted.
53 log_must eval "echo "$passphrase" | zpool split -l -R $altroot " \
56 log_must test "$(get_pool_prop 'altroot' $TESTPOOL2)" == "$altroot"
57 log_must mounted $altroot/$TESTPOOL2
H A Dzpool_split_indirect.ksh55 typeset altroot="$TESTDIR/altroot-$TESTPOOL2"
65 log_must zpool split -R $altroot $TESTPOOL $TESTPOOL2
67 log_must test "$(get_pool_prop 'altroot' $TESTPOOL2)" == "$altroot"
H A Dzpool_split_vdevs.ksh119 typeset altroot="$TESTDIR/altroot-$TESTPOOL2"
130 log_must zpool split -R $altroot $TESTPOOL $TESTPOOL2
132 log_must test "$(get_pool_prop 'altroot' $TESTPOOL2)" == "$altroot"
145 log_mustnot zpool split -R $altroot $TESTPOOL $TESTPOOL2
H A Dzpool_split_devices.ksh50 typeset altroot="$TESTDIR/altroot-$TESTPOOL2"
91 log_must zpool split -R $altroot $TESTPOOL $TESTPOOL2 ${gooddevs[$i]}
/freebsd-13-stable/tools/regression/zfs/zpool/create/
H A Doption-R.t17 echo "${name0} altroot /${name1} local"
19 expect "${exp}" ${ZPOOL} get altroot ${name0}
H A Doption-m.t17 echo "${name0} altroot - default"
19 expect "${exp}" ${ZPOOL} get altroot ${name0}
H A Doption-o.t26 expect_ok ${ZPOOL} create -o altroot=/${name1} ${name0} ${disk0}
29 echo "${name0} altroot /${name1} local"
31 expect "${exp}" ${ZPOOL} get altroot ${name0}
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cachefile/
H A Dcachefile_003_pos.ksh39 # Setting altroot=<path> and cachefile=$CPATH for zpool create is succeed
42 # 1. Attempt to create a pool with -o altroot=<path> -o cachefile=<value>
71 log_assert "Setting altroot=path and cachefile=$CPATH for zpool create succeed."
83 log_must zpool create -o altroot=$TESTDIR -o cachefile=${opts[i]} \
100 log_pass "Setting altroot=path and cachefile=$CPATH for zpool create succeed."
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cachefile/
H A Dcachefile_003_pos.ksh43 # Setting altroot=<path> and cachefile=$CPATH for zpool create is succeed
46 # 1. Attempt to create a pool with -o altroot=<path> -o cachefile=<value>
82 log_assert "Setting altroot=path and cachefile=$CPATH for zpool create succeed."
95 log_must $ZPOOL create -o altroot=$TESTDIR -o cachefile=${opts[i]} \
112 log_pass "Setting altroot=path and cachefile=$CPATH for zpool create succeed."
/freebsd-13-stable/lib/libbe/tests/
H A Dbe_create.sh57 atf_check zpool create -o altroot=${mnt} ${zpool} ${disk}
/freebsd-13-stable/lib/libbe/
H A Dbe.c114 char altroot[MAXPATHLEN]; local
166 altroot, sizeof(altroot), NULL, true) == 0 &&
167 strcmp(altroot, "-") != 0)
168 lbh->altroot_len = strlen(altroot);
684 /* Augment mountpoint with altroot, if needed */
/freebsd-13-stable/sys/contrib/openzfs/module/zfs/
H A Dspa_misc.c642 spa_add(const char *name, nvlist_t *config, const char *altroot) argument
700 if (altroot)
701 spa->spa_root = spa_strdup(altroot);
727 dp->scd_path = altroot ? NULL : spa_strdup(spa_config_path);
H A Dspa.c5447 char *altroot, size_t buflen)
5494 if (altroot) {
5499 spa_altroot(spa, altroot, buflen);
5501 altroot[0] = '\0';
5505 spa_altroot(spa, altroot, buflen);
5702 char *altroot = NULL; local
5738 zpool_prop_to_name(ZPOOL_PROP_ALTROOT), &altroot);
5739 spa = spa_add(poolname, nvl, altroot);
6008 char *altroot = NULL; local
6031 zpool_prop_to_name(ZPOOL_PROP_ALTROOT), &altroot);
5446 spa_get_stats(const char *name, nvlist_t **config, char *altroot, size_t buflen) argument
7443 char *altroot = NULL; local
[all...]
/freebsd-13-stable/sys/contrib/openzfs/include/
H A Dlibzfs.h423 char *altroot);
/freebsd-13-stable/sys/contrib/openzfs/include/sys/
H A Dspa.h770 extern int spa_get_stats(const char *pool, nvlist_t **config, char *altroot,
878 extern spa_t *spa_add(const char *name, nvlist_t *config, const char *altroot);
/freebsd-13-stable/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_main.c420 return (gettext("\tsplit [-gLnPl] [-R altroot] [-o mntopts]\n"
1407 char *altroot = NULL; local
1427 altroot = optarg;
1466 altroot = propval;
1566 if (altroot != NULL && altroot[0] != '/') {
1568 "must be an absolute path\n"), altroot);
1590 if (altroot != NULL)
1592 altroot, poolname);
1597 if (altroot !
[all...]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_pool.c1832 char *altroot)
1837 if (altroot != NULL) {
1845 zpool_prop_to_name(ZPOOL_PROP_ALTROOT), altroot) != 0 ||
1831 zpool_import(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, char *altroot) argument

Completed in 230 milliseconds