Lines Matching refs:origin

119 	# first figure out if the target fs has an origin snapshot
120 zd_origin=`/sbin/zfs get -H -o value origin "$zd_fs1"`
122 printf "$f_2_zfs_get\n" origin "$zd_fs1" >&2
147 # we ignore errors while trying to destroy the origin since
148 # the origin could have been used as the source for other
305 # origin) we need to get rid of all it's snapshots. The "easiest"
308 # - delete any uncloned origin snapshots
309 # - find the oldest clone of the youngest origin snapshot (which
312 # the origin and the oldest clone.
313 # - if so, find any clones of those conflicting origin snapshots
316 # - rename origin snapshots to eliminate naming conflicts
319 # - destroy the origin and all it's descendants
324 # containing the origin filesystem. Filter out any filesystems
325 # that are descendants of origin because we are planning to
332 -o name,origin -r "$pool" |
333 while IFS=" " read name origin; do
336 [[ "$origin" == "-" ]] &&
339 # skip desendents of the origin we plan to destroy
343 # record this clone and it's origin
345 clones_origin[$clones_c]="$origin"
361 # is the clone origin a descendant of $fs?
382 # Find all the snapshots of the origin filesystem.
392 # Now go through the origin snapshots and find those which don't
416 # remove it from the origin snapshot list
427 # delete the origin filesystem (and all it's descendents) and
465 # create an arrays of possible origin snapshot renames
476 # Search for snapshot name collisions between the origin and
478 # origin snapshot and re-do the collision check.
493 # The origin snapshot conflicts with a clone
509 # We need to rename this origin snapshot because it
513 # conflicts with any other origin snapshot names. So
532 # The new origin snapshot name conflicts with
533 # another origin snapshot name. Choose a new
544 # next origin snapshot.
584 # walk through all the origin snapshots
650 # - finally destroy the origin filesystem.
684 # destroy the origin filesystem and it's descendants