Lines Matching refs:clone

70 	zfs_handle_t	*clone_zhp;	/* clone dataset to promote */
71 time_t origin_creation; /* snapshot creation time of clone */
359 * Make a ZFS clone on zonepath from snapshot_name.
367 zfs_handle_t *clone;
386 (void) fprintf(stderr, gettext("could not create ZFS clone "
400 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL)
404 * The clone has been created so we need to print a diagnostic
407 if (zfs_mount(clone, NULL, 0) != 0) {
408 (void) fprintf(stderr, gettext("could not mount ZFS clone "
409 "%s\n"), zfs_get_name(clone));
414 "software inventory from ZFS clone %s\n"),
415 zfs_get_name(clone));
419 zfs_close(clone);
427 * this function as part of the process of creating a new ZFS fs or clone.
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. */
591 * A ZFS file system iterator call-back function used to determine the clone
593 * that has a clone. If found, it returns a reference to that clone in the
617 * get the right clone.
621 * Iterate the dependents of this snapshot to find a clone
630 * Found a clone, update the origin_creation time
691 /* Only rename the snapshots we automatically generate when we clone. */
714 * we clone a zone so that there won't be a name collision when we promote the
716 * clone.
720 * and clone datasets, then renames the source dataset snapshots starting at
732 * Start by getting the clone's snapshot max which we use
745 * the clone's snapshot max.
758 * conflict when we promote the clone.
765 /* close and reopen the clone dataset to get the latest info */
781 * Promote the youngest clone. That clone will then become the origin of all
803 /* Found the youngest clone to promote. Promote it. */
820 * Clone a pre-existing ZFS snapshot, either by making a direct ZFS clone, if
887 * Attempt to clone a source_zone to a target zonepath by using a ZFS clone.
906 * we can't clone to the path so we should fall back to copying.
912 "preventing use of a ZFS clone.\n"), zonepath);
917 * Instead of using path2name to get the clone name from the zonepath,
919 * this would mean we would create the clone under the ZFS fs of the
925 * We don't want the clone to be under "dev", we want it under
953 (void) printf(gettext("Instead of copying, a ZFS clone has been "
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.