Home
last modified time | relevance | path

Searched refs:snap (Results 1 – 25 of 170) sorted by relevance

1234567

/titanic_41/usr/src/lib/liblgrp/common/
H A Dlgrp.c55 static int lgrp_cpus_hier(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp,
145 parent_orphans(lgrp_snapshot_header_t *snap) in parent_orphans() argument
154 if (snap == NULL || snap->ss_info == NULL || in parent_orphans()
155 snap->ss_parents == NULL || snap->ss_root < 0 || in parent_orphans()
156 snap->ss_root >= snap->ss_nlgrps_max) in parent_orphans()
159 nlgrpsmax = snap->ss_nlgrps_max; in parent_orphans()
160 root = &snap->ss_info[snap->ss_root]; in parent_orphans()
168 if (i == snap->ss_root) in parent_orphans()
171 lgrp_info = &snap->ss_info[i]; in parent_orphans()
180 (ulong_t *)((uintptr_t)snap->ss_parents + in parent_orphans()
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_013_pos.ksh49 if datasetexists $TESTPOOL/$TESTCTR@snap-new ; then
50 log_must $ZFS destroy -f $TESTPOOL/$TESTCTR@snap-new
53 if datasetexists $TESTPOOL/$TESTCTR@snap ; then
54 log_must $ZFS destroy -f $TESTPOOL/$TESTCTR@snap
57 if datasetexists $TESTPOOL@snap-new ; then
58 log_must $ZFS destroy -f $TESTPOOL@snap-new
61 if datasetexists $TESTPOOL@snap ; then
62 log_must $ZFS destroy -f $TESTPOOL@snap
71 log_must $ZFS snapshot $TESTPOOL/$TESTCTR@snap
72 log_must $ZFS rename -r $TESTPOOL/$TESTCTR@snap $TESTPOOL/$TESTCTR@snap-new
[all …]
H A Dzfs_rename_003_pos.ksh43 datasetexists $snap && log_must $ZFS destroy $snap
49 fs=$TESTPOOL/$TESTFS; snap=$fs@snap
52 log_must $ZFS snapshot $snap
53 log_must datasetexists $snap
57 log_must $ZFS rename $snap ${newname[$i]}
58 log_must datasetexists ${snap%%@*}@${newname[$i]##*@}
59 log_must $ZFS rename ${snap%%@*}@${newname[$i]##*@} $snap
H A Dzfs_rename_008_pos.ksh50 if datasetexists ${datasets[$i]}@snap ; then
51 log_must $ZFS destroy ${datasets[$i]}@snap
53 if datasetexists ${datasets[$i]}@snap-new ; then
54 log_must $ZFS destroy ${datasets[$i]}@snap-new
70 log_must $ZFS snapshot -r ${TESTPOOL}@snap
73 log_must datasetexists ${datasets[$i]}@snap
78 log_must $ZFS rename -r ${TESTPOOL}@snap ${TESTPOOL}@snap-new
81 log_must datasetexists ${datasets[$i]}@snap-new
86 log_must $ZFS destroy -rf ${TESTPOOL}@snap-new
H A Dzfs_rename_006_pos.ksh53 snap=$TESTSNAP
56 if ! snapexists $vol@$snap; then
57 log_must $ZFS snapshot $vol@$snap
60 rename_dataset $vol@$snap $vol@${snap}-new
62 rename_dataset ${vol}-new@${snap}-new ${vol}-new@$snap
66 for input in $VOL_R_PATH ${VOL_R_PATH}@$snap; do
73 log_must $ZFS destroy $vol@$snap
H A Dzfs_rename_007_pos.ksh90 snap=${fs}@snap.$$
91 log_must $ZFS snapshot $snap
92 log_must $ZFS clone $snap $fsclone
109 log_must $ZFS rename $snap ${snap}-new
110 log_must $ZFS clone ${snap}-new $fsclone
124 snap=${vol}@snap.$$
125 log_must $ZFS snapshot $snap
126 log_must $ZFS clone $snap $volclone
142 log_must $ZFS rename $snap ${snap}-new
143 log_must $ZFS clone ${snap}-new $volclone
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_012_pos.ksh38 setup_testenv snap
41 snap=$(eval echo \$${dstype}SNAP)
42 log_must $ZFS hold zfstest1 $snap
43 log_must $ZFS destroy -d $snap
44 log_must datasetexists $snap
45 log_must eval "[[ $(get_prop defer_destroy $snap) == 'on' ]]"
47 log_must $ZFS hold zfstest2 $snap
48 log_mustnot $ZFS hold zfstest1 $snap
49 log_mustnot $ZFS hold zfstest2 $snap
51 log_must $ZFS release zfstest1 $snap
[all …]
H A Dzfs_destroy_015_pos.ksh47 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
48 snaplist=$snaplist,snap$i
53 log_mustnot snapexists $TESTPOOL/$TESFS1@snap$i
61 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
65 log_mustnot snapexists $TESTPOOL/$TESTFS1@snap$i
70 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
74 log_mustnot snapexists $TESTPOOL/$TESTFS1@snap$i
79 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
80 snaplist=$snaplist,snap$i
85 log_mustnot snapexists $TESTPOOL/$TESTFS1@snap$i
[all …]
H A Dzfs_destroy_011_pos.ksh38 setup_testenv snap
41 snap=$(eval echo \$${dstype}SNAP)
42 log_must $ZFS hold zfstest $snap
43 log_must $ZFS destroy -d $snap
44 log_must datasetexists $snap
45 log_must eval "[[ $(get_prop defer_destroy $snap) == 'on' ]]"
46 log_must $ZFS release zfstest $snap
47 log_mustnot datasetexists $snap
H A Dzfs_destroy_013_neg.ksh37 setup_testenv snap
40 snap=$(eval echo \$${dstype}SNAP)
41 log_must $ZFS hold zfstest $snap
42 log_mustnot $ZFS destroy $snap
43 log_must datasetexists $snap
44 log_must $ZFS release zfstest $snap
45 log_must $ZFS destroy $snap
46 log_mustnot datasetexists $snap
H A Dzfs_destroy_016_pos.ksh41 datasetexists $TESTPOOL/$TESTFS1@snap$i && \
42 log_must $ZFS destroy $TESTPOOL/$TESTFS1@snap$i
43 datasetexists $TESTPOOL/$TESTVOL@snap$i && \
44 log_must $ZFS destroy $TESTPOOL/$TESTVOL@snap$i
45 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
46 log_must $ZFS snapshot $TESTPOOL/$TESTVOL@snap$i
55 snapexists $TESTPOOL/$TESTFS1@snap$i || \
58 snapexists $TESTPOOL/$TESTVOL@snap$i || \
64 snapexists $TESTPOOL/$TESTFS1@snap$i && \
67 snapexists $TESTPOOL/$TESTVOL@snap$i && \
[all …]
/titanic_41/usr/src/lib/libipmp/common/
H A Dipmp_query.c769 ipmp_snap_t *snap; in ipmp_setqcontext() local
774 snap = NULL; in ipmp_setqcontext()
778 retval = ipmp_snap_take(statep, &snap); in ipmp_setqcontext()
789 statep->st_snap = snap; in ipmp_setqcontext()
801 ipmp_snap_t *snap; in ipmp_snap_create() local
803 snap = malloc(sizeof (ipmp_snap_t)); in ipmp_snap_create()
804 if (snap == NULL) in ipmp_snap_create()
807 snap->sn_grlistp = NULL; in ipmp_snap_create()
808 snap->sn_grinfolistp = NULL; in ipmp_snap_create()
809 snap->sn_ifinfolistp = NULL; in ipmp_snap_create()
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_010_pos.ksh50 typeset snap
55 for snap in $ctrfs@$TESTSNAP1 \
59 snapexists $snap && \
60 log_must $ZFS destroy -rf $snap
91 for snap in $snapctr $snapctrvol $snapctrclone $snapctrfs; do
92 snapexists $snap && \
93 log_fail "The snapshot $snap is not destroyed correctly."
96 for snap in $snappool $snapfs $snapvol $ctrfs@$TESTSNAP1;do
97 ! snapexists $snap && \
98 log_fail "The snapshot $snap should be not destroyed."
H A Dsnapshot_009_pos.ksh52 typeset snap
59 for snap in $ctr/$TESTFS1@$TESTSNAP1 \
63 snapexists $snap && \
64 log_must $ZFS destroy -rf $snap
96 for snap in $snappool $snapfs $snapvol $snapctr $snapctrvol \
99 ! snapexists $snap && \
100 log_fail "The snapshot $snap is not created via -r option."
106 for snap in $snappool $snapfs $snapvol $snapctr $snapctrvol \
109 snapexists $snap && \
110 log_fail "The snapshot $snap is not destroyed correctly."
H A Dsnapshot_015_pos.ksh56 typeset snap=$fs@snap.$i
57 datasetexists $snap && log_must $ZFS destroy -f $snap
89 log_must $MKDIR $snapdir/snapshot/snap.$cnt
90 if ! datasetexists $fs@snap.$cnt ; then
99 log_must $ZFS rollback -r $fs@snap.$cnt
118 log_must $RMDIR $snapdir/snapshot/snap.$cnt
119 log_mustnot datasetexists $fs@snap.$cnt
/titanic_41/usr/src/uts/common/os/
H A Ddtrace_subr.c133 dtrace_hrestime_t snap; in dtrace_gethrestime() local
138 snap.dthr_lock = dtrace_hrestime[i].dthr_lock; in dtrace_gethrestime()
140 snap.dthr_hrestime = dtrace_hrestime[i].dthr_hrestime; in dtrace_gethrestime()
141 snap.dthr_hrtime = dtrace_hrestime[i].dthr_hrtime; in dtrace_gethrestime()
142 snap.dthr_adj = dtrace_hrestime[i].dthr_adj; in dtrace_gethrestime()
145 if ((snap.dthr_lock & ~1) == dtrace_hrestime[i].dthr_lock) in dtrace_gethrestime()
161 nslt = dtrace_gethrtime() - snap.dthr_hrtime; in dtrace_gethrestime()
164 now = ((hrtime_t)snap.dthr_hrestime.tv_sec * (hrtime_t)NANOSEC) + in dtrace_gethrestime()
165 snap.dthr_hrestime.tv_nsec; in dtrace_gethrestime()
167 if (snap.dthr_adj != 0) { in dtrace_gethrestime()
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_history/
H A Dzpool_history_001_neg.ksh42 snap=$TESTPOOL/$TESTFS@snap
46 "-v $TESTPOOL" "$snap" "$clone" "nonexist" "TESTPOOL"
51 datasetexists $snap && log_must $ZFS destroy $snap
58 log_must $ZFS snapshot $snap
59 log_must $ZFS clone $snap $clone
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_promote/
H A Dzfs_promote_006_neg.ksh47 snap=$TESTPOOL/$TESTFS@$TESTSNAP
50 "$TESTPOOL" "$TESTPOOL/$TESTFS" "$snap" \
60 if snapexists $snap; then
61 destroy_snapshot $snap
68 snap=$TESTPOOL/$TESTFS@$TESTSNAP
70 log_must $ZFS snapshot $snap
71 log_must $ZFS clone $snap $clone
H A Dzfs_promote_008_pos.ksh47 log_must $ZFS destroy -rR $snap
54 snap=$vol@$TESTSNAP
58 if ! snapexists $snap ; then
59 log_must $ZFS snapshot $snap
60 log_must $ZFS clone $snap $clone
68 snapexists $snap && \
69 log_fail "Snapshot $snap is still there after zfs promote."
H A Dzfs_promote_003_pos.ksh56 for ds in ${snap[*]}; do
75 set -A snap "${fs}@$TESTSNAP" "${fs}@$TESTSNAP1" "${fs}@$TESTSNAP2" "${fs}@$TESTSNAP3"
96 log_must $ZFS snapshot ${snap[i]}
100 log_must $ZFS clone ${snap[2]} $clone
108 for ds in ${snap[3]} ${csnap[*]}; do
117 for ds in ${snap[0]} ${snap[1]} ${snap[2]}; do
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rollback/
H A Dzfs_rollback_common.kshlib107 eval typeset snap=\$FSSNAP$ind
112 eval typeset snap=\$VOLSNAP$ind
118 if datasetnonexists $snap; then
127 log_must $ZFS snapshot $snap
131 log_must $ZFS clone $snap $clone
154 typeset snap
167 for snap in $TESTSNAP $TESTSNAP1 $TESTSNAP2; do
168 if snapexists $dtst@$snap; then
169 log_must $ZFS destroy -Rf $dtst@$snap
240 typeset snap=${dtst##*@}
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_clone/
H A Dzfs_clone_002_pos.ksh51 for snap in $SNAPFS $SNAPFS1 ; do
52 if ! snapexists $snap ; then
53 log_must $ZFS snapshot $snap
67 for snap in $SNAPFS $SNAPFS1 ; do
68 if snapexists $snap ; then
69 log_must $ZFS destroy -Rf $snap
H A Dzfs_clone_010_pos.ksh61 log_must $ZFS snapshot -r $TESTPOOL/$TESTFS1@snap
63 datasetexists $ds@snap || \
68 log_must $ZFS clone $ds@snap $fs/$TESTCLONE.$i
85 snapshot=$($ECHO "$names" | $GREP $ds$clone_snap@snap)
170 log_must $ZFS destroy -d $ds@snap
187 for snap in ${deferred_snaps[@]}; do
188 status=$($ECHO "$names" | $GREP $snap)
190 log_fail "$snap exist after deferred destroy"
221 log_must $ZFS snapshot $fs@snap
223 log_must $ZFS clone $fs@snap $fs/$TESTCLONE$(python -c 'print "x" * 200').$i
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib379 typeset snap=$dtst@snap.$stamp
383 log_must $ZFS snapshot $snap
387 user_run $user eval "$ZFS send $snap > $bak_user"
388 log_must eval "$ZFS send $snap > $bak_root"
422 typeset dtstsnap=$dtst@snap.$stamp
680 typeset snap=$fs@snap.$stamp
687 user_run $user $ZFS snapshot $snap
688 if ! datasetexists $snap ; then
691 log_must $ZFS destroy $snap
697 user_run $user $ZFS snapshot $snap
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/no_space/
H A Denospc_002_pos.ksh34 log_must $ZFS snapshot $TESTPOOL/$TESTFS@snap
45 log_mustnot_expect space $ZFS clone $TESTPOOL/$TESTFS@snap $TESTPOOL/clone
48 $TESTPOOL/$TESTFS@snap $TESTPOOL/$TESTFS#bookmark
50 log_must $ZFS send $TESTPOOL/$TESTFS@snap >/tmp/stream.$$
54 log_must $ZFS rename $TESTPOOL/$TESTFS@snap $TESTPOOL/$TESTFS@snap_newname
55 log_must $ZFS rename $TESTPOOL/$TESTFS@snap_newname $TESTPOOL/$TESTFS@snap
71 log_must $ZFS rollback $TESTPOOL/$TESTFS@snap
72 log_must $ZFS destroy $TESTPOOL/$TESTFS@snap

1234567