Searched refs:cachefile (Results 1 - 18 of 18) sorted by relevance

/freebsd-12-stable/tests/sys/cddl/zfs/tests/cachefile/
H A Dcachefile.kshlib30 # ident "@(#)cachefile.kshlib 1.1 08/02/29 SMI"
35 # A function to determine if a given pool name has an entry in cachefile
40 # the given cachefile, default is /etc/zfs/zpool.cache
41 typeset cachefile=${2:-$CPATH}
43 if [[ -f $cachefile ]]; then
44 RESULT=$($STRINGS $cachefile | $GREP -w $1)
H A Dcachefile_test.sh32 atf_set "descr" "Creating a pool with \cachefile\ set doesn't update zpool.cache"
38 . $(atf_get_srcdir)/cachefile.kshlib
39 . $(atf_get_srcdir)/cachefile.cfg
49 atf_set "descr" "Importing a pool with \cachefile\ set doesn't update zpool.cache"
55 . $(atf_get_srcdir)/cachefile.kshlib
56 . $(atf_get_srcdir)/cachefile.cfg
66 atf_set "descr" "Setting altroot=path and cachefile=$CPATH for zpool create succeed."
72 . $(atf_get_srcdir)/cachefile.kshlib
73 . $(atf_get_srcdir)/cachefile.cfg
83 atf_set "descr" "Verify set, export and destroy when cachefile i
[all...]
H A Dcachefile_002_pos.ksh33 . $STF_SUITE/tests/cachefile/cachefile.kshlib
43 # Importing a pool with "cachefile" set doesn't update zpool.cache
46 # 1. Create a pool with the cachefile property set
52 # 7. Import the pool -o cachefile=<cachefile>
72 log_assert "Importing a pool with \"cachefile\" set doesn't update zpool.cache"
75 log_must $ZPOOL create -o cachefile=none $TESTPOOL $DISKS
84 log_must $ZPOOL import -o cachefile=none -d $DEVICEDIR $TESTPOOL
88 log_must $ZPOOL import -o cachefile
[all...]
H A DMakefile6 TESTSDIR=${TESTSBASE}/sys/cddl/zfs/tests/cachefile
16 ${PACKAGE}FILES+= cachefile.cfg
17 ${PACKAGE}FILES+= cachefile.kshlib
H A Dcachefile_001_pos.ksh33 . $STF_SUITE/tests/cachefile/cachefile.kshlib
43 # Creating a pool with "cachefile" set doesn't update zpool.cache
46 # 1. Create a pool with the cachefile property set
48 # 3. Verify the cachefile property is set
49 # 4. Create a pool without the cachefile property
50 # 5. Verify the cachefile property isn't set
77 log_assert "Creating a pool with \"cachefile\" set doesn't update zpool.cache"
89 log_must $ZPOOL create -o cachefile=${opts[i]} $TESTPOOL $DISKS
97 PROP=$(get_pool_prop cachefile
[all...]
H A Dcachefile_004_pos.ksh33 . $STF_SUITE/tests/cachefile/cachefile.kshlib
42 # Verify set, export and destroy when cachefile is set on pool.
46 # 2. Set cachefile of the two pools to another same cachefile2.
50 # 6. Import the two pools and set cachefile to cachefile2.
90 log_assert "Verify set, export and destroy when cachefile is set on pool."
103 log_must $ZPOOL create -o cachefile=$CPATH1 $TESTPOOL1 $vdev0
105 log_must $ZPOOL create -o cachefile=$CPATH1 $TESTPOOL2 $vdev1
108 log_must $ZPOOL set cachefile=$CPATH2 $TESTPOOL1
110 log_must $ZPOOL set cachefile
[all...]
H A Dcachefile_003_pos.ksh33 . $STF_SUITE/tests/cachefile/cachefile.kshlib
43 # 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]} \
103 PROP=$(get_pool_prop cachefile $TESTPOOL)
105 log_fail "cachefile property not set as expected. " \
112 log_pass "Setting altroot=path and cachefile=$CPATH for zpool create succeed."
/freebsd-12-stable/sys/contrib/libsodium/packaging/dotnet-core/
H A Dprepare.py61 self.cachefile = os.path.join(CACHEDIR, re.sub(r'[^A-Za-z0-9.]', '-', self.url))
73 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
77 os.path.relpath(self.cachefile, self.tempdir),
85 self.cachefile = os.path.join(CACHEDIR, re.sub(r'[^A-Za-z0-9.]', '-', self.url))
97 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
101 os.path.relpath(self.cachefile, self.tempdir),
109 self.cachefile = os.path.join(CACHEDIR, re.sub(r'[^A-Za-z0-9.]', '-', self.url))
133 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
145 self.cachefile = os.path.join(CACHEDIR, re.sub(r'[^A-Za-z0-9.]', '-', self.url))
157 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
[all...]
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_018_pos.ksh79 # we don't include "root" property in this list, as it requires both "cachefile"
82 set -A props "autoreplace" "delegation" "cachefile" "version"
105 log_must $ZPOOL create -o delegation=off -o cachefile=$CPATH $TESTPOOL $disk
113 RESULT=$(get_pool_prop cachefile $TESTPOOL)
117 log_fail "Pool created without the cachefile prop."
/freebsd-12-stable/tools/regression/zfs/zpool/create/
H A Doption-o.t75 expect_ok ${ZPOOL} create -o cachefile=none ${name0} ${disk0}
78 echo "${name0} cachefile none local"
80 expect "${exp}" ${ZPOOL} get cachefile ${name0}
83 expect_ok ${ZPOOL} create -o cachefile=/tmp/${name1} ${name0} ${disk0}
86 echo "${name0} cachefile /tmp/${name1} local"
88 expect "${exp}" ${ZPOOL} get cachefile ${name0}
/freebsd-12-stable/tests/sys/cddl/zfs/tests/
H A DMakefile12 TESTS_SUBDIRS+= cachefile
/freebsd-12-stable/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib2518 # Get cachefile for a pool.
2526 cachefile=$(get_pool_prop cachefile $pool)
2529 case "$cachefile" in
2535 cachefile="${dir}/zpool.cache"
2543 [[ $ret -eq 0 || $ret -eq 1 ]] && print "$cachefile"
2548 # Assert that the pool is in the appropriate cachefile.
2554 cachefile=$(cachefile_for_pool $pool)
2556 log_must test -e "${cachefile}"
2557 log_must zdb -U ${cachefile}
[all...]
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_import.c1470 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, argument
1485 if ((fd = open(cachefile, O_RDONLY)) < 0) {
1558 cachefile) != 0) {
1621 if (import->cachefile != NULL)
1622 pools = zpool_find_import_cached(hdl, import->cachefile,
H A Dlibzfs.h410 char *cachefile; /* cachefile to use for import */ member in struct:importargs
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zhack/
H A Dzhack.c66 "Usage: %s [-c cachefile] [-d dir] <subcommand> <args> ...\n"
495 g_importargs.cachefile = optarg;
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dspa.c234 * We are more tolerant for pools opened from a cachefile since we could have
235 * an out-dated cachefile where a device removal was not registered.
761 char *cachefile; local
765 &cachefile) != 0)
771 if (cachefile[0] == '\0')
773 else if (strcmp(cachefile, "none") == 0)
776 dp->scd_path = spa_strdup(cachefile);
4351 * and the cachefile (by default /etc/zfs/zpool.cache).
6010 char *poolname, *cachefile; local
6042 if (nvlist_lookup_string(tryconfig, ZPOOL_CONFIG_CACHEFILE, &cachefile)
[all...]
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_main.c252 "\t [-d dir | -c cachefile] [-D] [-f] [-m] [-N] "
255 "\t [-d dir | -c cachefile] [-D] [-f] [-m] [-N] "
2426 * [-d dir | -c cachefile] [-f] -a
2428 * [-d dir | -c cachefile] [-f] [-n] [-F] [-t]
2431 * -c Read pool information from a cachefile instead of searching
2500 char *cachefile = NULL; local
2518 cachefile = optarg;
2610 if (cachefile && nsearch != 0) {
2701 idata.cachefile = cachefile;
[all...]
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zdb/
H A Dzdb.c167 (void) fprintf(stderr, " -C config (or cachefile if alone)\n");
193 "has altroot/not in a cachefile\n");
211 "cachefile\n");
2507 dump_cachefile(const char *cachefile) argument
2514 if ((fd = open64(cachefile, O_RDONLY)) < 0) {
2515 (void) fprintf(stderr, "cannot open '%s': %s\n", cachefile,
2521 (void) fprintf(stderr, "failed to stat '%s': %s\n", cachefile,
5484 "cachefile must be an absolute path "

Completed in 319 milliseconds