Lines Matching defs:snapshot

71 	time_t		origin_creation; /* snapshot creation time of clone */
72 const char *snapshot; /* snapshot of dataset being demoted */
182 * Run the brand's pre-snapshot hook before we take a ZFS snapshot of the zone.
203 * Run the brand's post-snapshot hook after we take a ZFS snapshot of the zone.
224 * This is a ZFS snapshot iterator call-back function which returns the
257 * Take a ZFS snapshot to be used for cloning the zone.
269 * zone snapshot. Look through the list of zones snapshots for
270 * this file system to determine the maximum snapshot name.
301 * We are using an explicit snapshot from some earlier point in time so
332 * of the snapshot.
373 (void) printf(gettext("Cloning snapshot %s\n"), snapshot_name);
521 * Given a snapshot name, get the file system path where the snapshot lives.
522 * A snapshot name is of the form fs_name@snap_name. For example, snapshot
524 * /pl/zones/z1/.zfs/snapshot/SUNWzone1.
552 if (snprintf(path, len, "%s/.zfs/snapshot/%s", mp, p) >= len)
559 * This callback function is used to iterate through a snapshot's dependencies
560 * to find a filesystem that is a direct clone of the snapshot being iterated.
576 /* Make sure this is a direct clone of the snapshot we're iterating. */
578 NULL, 0, B_FALSE) != 0 || strcmp(origin, cd->snapshot) != 0) {
592 * to promote. This function finds the youngest (i.e. last one taken) snapshot
603 /* If snapshot has no clones, skip it */
609 cd->snapshot = zfs_get_name(zhp);
611 /* Get the creation time of this snapshot */
615 * If this snapshot's creation time is greater than (i.e. younger than)
616 * the current youngest snapshot found, iterate this snapshot to
621 * Iterate the dependents of this snapshot to find a clone
649 /* If snapshot has clones, something is wrong */
664 * A ZFS snapshot iterator call-back function which renames snapshots.
677 * the same snapshot after we've renamed up in the namespace. To
702 (void) fprintf(stderr, gettext("failed to rename snapshot %s "
718 * The snapshot rename process gets the highest number on the snapshot names
732 * Start by getting the clone's snapshot max which we use
744 * Now make sure the source's snapshot max is at least as high as
745 * the clone's snapshot max.
792 cd.snapshot = NULL;
820 * Clone a pre-existing ZFS snapshot, either by making a direct ZFS clone, if
821 * possible, or by copying the data from the snapshot to the zonepath.
841 * within the snapshot to the zonepath.
856 * Cloning the snapshot failed. Fall back to trying
857 * to install the zone by copying from the snapshot.
867 * The snapshot is unusable for some reason so restore
942 /* Clean up the snapshot we just took. */
1062 * This might be a clone. Try to get the snapshot so we can attempt
1103 * Try to clean up the snapshot that the clone was taken from.