Lines Matching defs:snapshot

892  *  Gets the specified snapshot.  If "snapshot" isn't defined, use the
893 * running snapshot. If the snapshot isn't found, that may or may
903 * The handle argument is NULL, or snaphot is not a valid snapshot name
910 _get_snapshot(scf_instance_t *inst, const char *snapshot,
926 /* Use running snapshot by default. */
927 if (snapshot == NULL)
930 err = scf_instance_get_snapshot(inst, snapshot, *snap);
1652 * The snaphot is not a valid snapshot name,
1709 * FMRI argument, snapshot name, pg_name, or pg is invalid.
1782 * No snapshot. We'll use 'editing' by default since
1802 /* Grab snapshot name while we're here. */
1831 /* No snapshot parent. Go looking for instance parent. */
1912 * the defined or running snapshot), and SCF_PG_TMPL_FLAG_EXACT (match
1925 * snapshot specified isn't a valid name
1932 * Object matching FMRI doesn't exist in the repository, or snapshot
1936 scf_tmpl_get_by_pg_name(const char *fmri, const char *snapshot,
2000 /* If we have a service fmri, snapshot is ignored. */
2002 if (snapshot == NULL || strcmp(snapshot, "running") == 0 ||
2008 if (_get_snapshot(inst, snapshot, &snap) == -1) {
2016 p->pw_snapname = snapshot;
2106 * Handle argument is NULL, or snaphot is not a valid snapshot name.
2113 _get_next_iterator(scf_handle_t *h, scf_pg_tmpl_t *t, const char *snapshot,
2181 /* Set pt_snap to the snapshot for this instance */
2184 if (_get_snapshot(t->pt_inst, snapshot,
2288 * The handle argument is NULL, fmri is invalid, or snapshot is invalid.
2296 scf_tmpl_iter_pgs(scf_pg_tmpl_t *t, const char *fmri, const char *snapshot,
2365 if (snapshot == NULL ||
2366 strcmp(snapshot, "running") == 0 ||
2373 if (_get_snapshot(inst, snapshot,
2403 pg_tmpl->pt_iter = _get_next_iterator(h, pg_tmpl, snapshot,
2433 pg_tmpl, snapshot,
6529 scf_tmpl_validate_fmri(scf_handle_t *h, const char *fmri, const char *snapshot,
6588 if (snapshot == NULL || strcmp(snapshot, "running") == 0 ||
6594 if (_get_snapshot(inst, snapshot, &snap) == -1) {
6600 if (_scf_tmpl_check_pg_redef(h, fmri, snapshot, *errs) != 0) {
6635 if (scf_tmpl_get_by_pg_name(fmri, snapshot, pg_name, type, t,
6669 while ((r = scf_tmpl_iter_pgs(t, fmri, snapshot, NULL,