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

12

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cachefile/
H A Dcachefile.kshlib33 # A function to determine if a given pool name has an entry in cachefile
38 # the given cachefile, default is /etc/zfs/zpool.cache
39 typeset cachefile=${2:-$CPATH}
41 RESULT=$(strings $cachefile | grep -w $1)
H A Dcachefile_001_pos.ksh33 . $STF_SUITE/tests/functional/cachefile/cachefile.cfg
34 . $STF_SUITE/tests/functional/cachefile/cachefile.kshlib
39 # Creating a pool with "cachefile" set doesn't update zpool.cache
42 # 1. Create a pool with the cachefile property set
44 # 3. Verify the cachefile property is set
45 # 4. Create a pool without the cachefile property
46 # 5. Verify the cachefile property isn't set
66 log_assert "Creating a pool with \"cachefile\" se
[all...]
H A Dcachefile_002_pos.ksh33 . $STF_SUITE/tests/functional/cachefile/cachefile.cfg
34 . $STF_SUITE/tests/functional/cachefile/cachefile.kshlib
39 # Importing a pool with "cachefile" set doesn't update zpool.cache
42 # 1. Create a pool with the cachefile property set
48 # 7. Import the pool -o cachefile=<cachefile>
61 log_assert "Importing a pool with \"cachefile\" set doesn't update zpool.cache"
64 log_must zpool create -o cachefile
[all...]
H A DMakefile19 TARGETDIR = $(ROOTOPTPKG)/tests/functional/cachefile
H A Dcachefile_003_pos.ksh33 . $STF_SUITE/tests/functional/cachefile/cachefile.cfg
34 . $STF_SUITE/tests/functional/cachefile/cachefile.kshlib
39 # 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]} \
91 PROP=$(get_pool_prop cachefile $TESTPOOL)
93 log_fail "cachefile propert
[all...]
H A Dcachefile_004_pos.ksh33 . $STF_SUITE/tests/functional/cachefile/cachefile.cfg
34 . $STF_SUITE/tests/functional/cachefile/cachefile.kshlib
38 # Verify set, export and destroy when cachefile is set on pool.
42 # 2. Set cachefile of the two pools to another same cachefile2.
46 # 6. Import the two pools and set cachefile to cachefile2.
79 log_assert "Verify set, export and destroy when cachefile is set on pool."
92 log_must zpool create -o cachefile=$CPATH1 $TESTPOOL1 $vdev0
94 log_must zpool create -o cachefile
[all...]
/illumos-gate/usr/src/cmd/print/scripts/
H A Dgetmodels42 cachefile=/var/lp/ppd/ppdcache
43 [[ -f $cachefile ]] || exit 1
44 /bin/grep "^$1" $cachefile | nawk '{FS=":"; print $2}' | uniq
H A Dppdfilename2mmp49 cachefile=/var/lp/ppd/ppdcache
50 [[ -f $cachefile ]] || exit 1
52 cacheentry=$(/bin/grep "$1" $cachefile)
H A Dgetppds49 # $3 - cachefile
62 cachefile=/var/lp/ppd/ppdcache
63 [[ -f $cachefile ]] || exit 1
77 for pentry in $(ppd_make_entries "${make}" "${model}" "${cachefile}")
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_018_pos.ksh63 # we don't include "root" property in this list, as it requires both "cachefile"
67 typeset props=("autoreplace" "delegation" "cachefile" "version" "autoexpand")
89 log_must zpool create -o delegation=off -o cachefile=$CPATH $TESTPOOL $disk
97 RESULT=$(get_pool_prop cachefile $TESTPOOL)
101 log_fail "Pool created without the cachefile prop."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dimport_cachefile_device_removed.ksh22 # A pool should be importable using an outdated cachefile that is unaware
26 # 1. Create a pool with some devices and an alternate cachefile.
27 # 2. Backup the cachefile.
31 # 6. Verify that we can import the pool using the backed-up cachefile.
51 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $poolcreate
79 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 \
111 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 \
H A Dimport_cachefile_device_replaced.ksh22 # A pool should be importable using an outdated cachefile that is unaware
26 # 1. Create a pool with some devices and an alternate cachefile.
27 # 2. Backup the cachefile.
28 # 3. Initiate device replacement, backup cachefile again and export pool.
31 # 4. Verify that we can import the pool using the first cachefile backup.
32 # (Test 1. cachefile: pre-replace, pool: resilvering)
34 # 6. Verify that we can import the pool using the first cachefile backup.
35 # (Test 2. cachefile: pre-replace, pool: post-replace)
37 # 8. Verify that we can import the pool using the second cachefile backup.
38 # (Test 3. cachefile
[all...]
H A Dimport_cachefile_device_added.ksh22 # A pool should be importable using an outdated cachefile that is unaware
26 # 1. Create a pool with some devices and an alternate cachefile.
27 # 2. Backup the cachefile.
30 # 5. Verify that we can import the pool using the backed-up cachefile.
45 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $poolcreate
H A Dimport_cachefile_mirror_attached.ksh22 # A pool should be importable using an outdated cachefile that misses a
26 # 1. Create a pool with some devices and an alternate cachefile.
27 # 2. Backup the cachefile.
30 # 5. Verify that we can import the pool using the backed-up cachefile.
46 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $poolcreate
H A Dimport_cachefile_mirror_detached.ksh22 # A pool should be importable using an outdated cachefile that is unaware
26 # 1. Create a pool with some devices mirrored and an alternate cachefile.
27 # 2. Backup the cachefile.
30 # 5. Verify that we can import the pool using the backed-up cachefile.
44 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $poolcreate
H A Dimport_cachefile_shared_device.ksh23 # anymore, even if the device is in its cachefile.
26 # 1. Create pool1 with some devices and an alternate cachefile.
27 # 2. Backup the cachefile.
72 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $pool1
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dinode.c53 cachefile(feblock, len) function
H A Dfsck.h241 struct fileinfo *cachefile();
H A Dpass1.c102 (void) cachefile(rootblock, rootlen);
153 (void) cachefile(fidp->fid_icb.lad_ext_loc,
/illumos-gate/usr/src/test/zfs-tests/tests/functional/log_spacemap/
H A Dlog_spacemap_import_logs.ksh63 log_must zpool create -o cachefile=none -f $LOGSM_POOL $TESTDISK
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_impl.h89 extern char cachefile[];
H A Ddlmgmt_main.c270 (void) snprintf(cachefile, MAXPATHLEN, "%s/%s%s",
295 (void) snprintf(cachefile, MAXPATHLEN, "%s/%s",
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmp/
H A Dmmp.kshlib161 log_must zpool create -f -o cachefile=$MMP_CACHE $pool \
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_import.c1297 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, argument
1312 if ((fd = open(cachefile, O_RDONLY)) < 0) {
1385 cachefile) != 0) {
1448 if (import->cachefile != NULL)
1449 pools = zpool_find_import_cached(hdl, import->cachefile,
/illumos-gate/usr/src/cmd/zhack/
H A Dzhack.c66 "Usage: %s [-c cachefile] [-d dir] <subcommand> <args> ...\n"
495 g_importargs.cachefile = optarg;

Completed in 184 milliseconds

12