Lines Matching defs:snapshot

890  *  Gets the specified snapshot.  If "snapshot" isn't defined, use the
891 * running snapshot. If the snapshot isn't found, that may or may
901 * The handle argument is NULL, or snaphot is not a valid snapshot name
908 _get_snapshot(scf_instance_t *inst, const char *snapshot,
922 /* Use running snapshot by default. */
923 if (snapshot == NULL)
926 err = scf_instance_get_snapshot(inst, snapshot, *snap);
1648 * The snaphot is not a valid snapshot name,
1705 * FMRI argument, snapshot name, pg_name, or pg is invalid.
1778 * No snapshot. We'll use 'editing' by default since
1798 /* Grab snapshot name while we're here. */
1827 /* No snapshot parent. Go looking for instance parent. */
1908 * the defined or running snapshot), and SCF_PG_TMPL_FLAG_EXACT (match
1921 * snapshot specified isn't a valid name
1928 * Object matching FMRI doesn't exist in the repository, or snapshot
1932 scf_tmpl_get_by_pg_name(const char *fmri, const char *snapshot,
1996 /* If we have a service fmri, snapshot is ignored. */
1998 if (snapshot == NULL || strcmp(snapshot, "running") == 0 ||
2004 if (_get_snapshot(inst, snapshot, &snap) == -1) {
2012 p->pw_snapname = snapshot;
2102 * Handle argument is NULL, or snaphot is not a valid snapshot name.
2109 _get_next_iterator(scf_handle_t *h, scf_pg_tmpl_t *t, const char *snapshot,
2177 /* Set pt_snap to the snapshot for this instance */
2180 if (_get_snapshot(t->pt_inst, snapshot,
2285 * The handle argument is NULL, fmri is invalid, or snapshot is invalid.
2293 scf_tmpl_iter_pgs(scf_pg_tmpl_t *t, const char *fmri, const char *snapshot,
2362 if (snapshot == NULL ||
2363 strcmp(snapshot, "running") == 0 ||
2370 if (_get_snapshot(inst, snapshot,
2400 pg_tmpl->pt_iter = _get_next_iterator(h, pg_tmpl, snapshot,
2430 pg_tmpl, snapshot,
6640 scf_tmpl_validate_fmri(scf_handle_t *h, const char *fmri, const char *snapshot,
6703 if (_get_snapshot(inst, snapshot, &snap) == -1) {
6709 if (_scf_tmpl_check_pg_redef(h, fmri, snapshot, *errs) != 0) {
6744 if (scf_tmpl_get_by_pg_name(fmri, snapshot, pg_name, type, t,
6778 while ((r = scf_tmpl_iter_pgs(t, fmri, snapshot, NULL,