Searched refs:import (Results 1 - 25 of 74) sorted by relevance

123

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dzpool_import_001_neg.ksh38 # zpool import returns an error when run as a user
41 # 1. Attempt to import an exported pool
57 log_assert "zpool import returns an error when run as a user"
58 log_mustnot zpool import
60 log_mustnot zpool import -a
63 log_mustnot zpool import -d /$TESTDIR $TESTPOOL.exported
66 log_pass "zpool import returns an error when run as a user"
H A Dzpool_import_002_neg.ksh37 # Executing 'zpool import' as regular user should denied.
41 # 2. Execute 'zpool import' with each element of the array by regular user.
56 log_assert "Executing 'zpool import' by regular user fails"
60 log_mustnot zpool import ${args[i]}
64 log_pass "Executing 'zpool import' by regular user fails as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_005_pos.ksh50 log_must zpool import $TESTPOOL
62 log_must zpool import -o readonly=on $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_011_neg.ksh37 # For strip pool, any destroyed pool devices was demaged, zpool import -D
44 # 4. Verify 'import -D' pool A will failed whenever pool B was destroyed
63 "zpool import -D will failed."
76 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
79 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
81 log_pass "Any strip pool devices damaged, pool can't be import passed."
H A Dzpool_import_013_neg.ksh38 # 'zpool import' will prompt the warning and fails.
42 # 2. Verify 'zpool import' will fail.
43 # 3. Verify 'zpool import -f' succeed.
68 log_assert "'zpool import' fails for pool that was not cleanly exported"
72 log_mustnot zpool import -d /$TESTPOOL $POOL_NAME
73 log_must zpool import -d /$TESTPOOL -f $POOL_NAME
75 log_pass "'zpool import' fails for pool that was not cleanly exported"
H A Dzpool_import_007_pos.ksh44 # 4. Verify import this raidz pool can succeed.
76 log_must zpool import -d $DEVICE_DIR -D -f $target
81 log_must zpool import -d $DEVICE_DIR -D -f $target
84 log_note "For raidz, two destroyed pool's devices were used, import failed."
87 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
90 log_pass "zpool import -D raidz passed."
H A Dzpool_import_008_pos.ksh44 # 4. Verify import this raidz2 pool can succeed.
76 log_must zpool import -d $DEVICE_DIR -D -f $target
81 log_must zpool import -d $DEVICE_DIR -D -f $target
85 "import failed."
88 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
91 log_pass "zpool import -D raidz2 passed."
H A Dzpool_import_all_001_pos.ksh38 # Verify that 'zpool import -a' succeeds as root.
44 # 4. Verify that import command succeed.
79 # Try import individually if 'import -a' failed.
81 for pool in `zpool import | grep "pool:" | awk '{print $2}'`; do
82 zpool import -f $pool
85 for pool in `zpool import -d $DEVICE_DIR | grep "pool:" | awk '{print $2}'`; do
86 log_must zpool import -d $DEVICE_DIR -f $pool
101 log_must zpool import -f ${TESTPOOL}-$id $TESTPOOL
137 log_fail "$file missing after import
[all...]
H A Dzpool_import_004_pos.ksh44 # 4. Verify 'zpool import -D' succeed.
78 log_must zpool import -d $DEVICE_DIR/newdir1 -d $DEVICE_DIR/newdir2 \
85 log_must zpool import -d $DEVICE_DIR/newdir2 -D -f $target
88 log_pass "Destroyed pools devices was moved, 'zpool import -D' passed."
H A Dzpool_import_005_pos.ksh42 # 3. Verify 'zpool import -D' succeed.
74 log_must zpool import -d $DEVICE_DIR -D -f $target
81 log_must zpool import -d $DEVICE_DIR/newdir1 -d $DEVICE_DIR/newdir2 \
85 log_pass "Destroyed pools devices was renamed, 'zpool import -D' passed."
H A Dzpool_import_006_pos.ksh44 # 4. Verify import mirror can succeed.
76 log_must zpool import -d $DEVICE_DIR -D -f $target
81 log_must zpool import -d $DEVICE_DIR -D -f $target
83 log_pass "zpool import -D mirror passed."
H A Dzpool_import_009_neg.ksh37 # Try each 'zpool import' with inapplicable scenarios to make sure
74 log_must zpool import ${devs[i]} ${pools[i]}
89 log_assert "Badly-formed 'zpool import' with inapplicable scenarios " \
98 log_mustnot zpool import ${args[i]}
102 log_pass "Badly formed 'zpool import' with inapplicable scenarios " \
H A Dzpool_import_rename_001_pos.ksh47 # - Regular import
72 log_must zpool import ${devs[i]} \
77 log_must zpool import ${devs[i]} ${pools[i]}
129 log_must zpool import ${devs[i]} ${options[j]} \
141 log_fail "$basedir/$TESTFILE0 missing after import."
156 log_must zpool import ${devs[i]} $target ${pools[i]}
171 log_mustnot zpool import -d /tmp $(echo id) \
H A Dzpool_import_002_pos.ksh45 # - Regular import
49 # 6. Attempt to import it for a second time. Verify this fails.
68 log_must zpool import ${devs[i]} ${pools[i]}
116 log_must zpool import ${devs[i]} ${options[j]} $target
127 log_fail "$basedir/$TESTFILE0 missing after import."
133 log_mustnot zpool import ${devs[i]} $target
142 log_pass "Unable to import the same pool twice as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/
H A Dcache_006_pos.ksh41 # 2. Export and import the pool
43 # 4. Destroy and import the pool again
63 # Nomal export/import operating
66 log_must zpool import -d $VDIR $TESTPOOL
73 # Destroy the pool and import again
76 log_must zpool import -Df -d $VDIR $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/
H A Dzpool_export_001_pos.ksh53 log_must zpool import -d $dir $TESTPOOL
H A Dzpool_export_004_pos.ksh56 datasetexists $TESTPOOL1 || log_must zpool import -d $mntpnt $TESTPOOL1
85 log_must zpool import -d $mntpnt $TESTPOOL1
90 log_must zpool import -d $mntpnt $TESTPOOL1
96 log_must zpool import -d $mntpnt $TESTPOOL1
H A Dzpool_export_003_neg.ksh50 log_must zpool import -d $dir $TESTPOOL
H A Dzpool_export_002_pos.ksh53 log_must zpool import -d $dir $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cachefile/
H A Dcachefile_002_pos.ksh69 log_must zpool import -d $DEVICEDIR $TESTPOOL
73 log_must zpool import -o cachefile=none -d $DEVICEDIR $TESTPOOL
77 log_must zpool import -o cachefile=$CPATH -d $DEVICEDIR $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inuse/
H A Dinuse_007_pos.ksh54 poolexists $TESTPOOL1 || zpool import $TESTPOOL1 >/dev/null 2>&1
104 log_must zpool import $TESTPOOL1
120 log_must zpool import $TESTPOOL1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog_007_pos.ksh40 # 2. Export and import the pool
42 # 4. Destroy and import the pool again
69 # Nomal export/import operating
72 log_must zpool import -d $VDIR -d $VDIR2 $TESTPOOL
79 # Destroy the pool and import again
82 log_must zpool import -Df -d $VDIR -d $VDIR2 $TESTPOOL
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/client/
H A Dpm_gen_copyright51 import java.util.*;
/illumos-gate/usr/src/lib/libadt_jni/common/
H A Dadt_jni.c159 jbyte *import; local
164 import = NULL;
167 import = (jbyte *)malloc(import_size * sizeof (jbyte));
168 if (import == NULL) {
174 import);
176 rc = adt_start_session(&state, (adt_export_data_t *)import, flags);
178 if (import != NULL)
179 free(import);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/
H A Dzfs_allow_011_neg.ksh54 export import upgrade \

Completed in 140 milliseconds

123