Lines Matching defs:ient

3432  * Upgrade uncustomized dependents of ent to those specified in ient.  Read
3434 * snapshot which corresponds to ient) if not NULL (ent, an scf_service_t * or
3435 * scf_instance_t * according to ient, otherwise). Draw the ancestral
3439 * snpl doesn't have a "dependents" property group, and any dependents in ient
3470 const scf_snaplevel_t *snpl, const entity_t *ient,
3480 const int issvc = (ient->sc_etype == SVCCFG_SERVICE_OBJECT);
3482 if (li_dpts_pg == NULL && uu_list_numnodes(ient->sc_dependents) == 0)
3539 if (uu_list_walk(ient->sc_dependents, clear_int,
3582 warn(emsg_pg_deleted, ient->sc_fmri,
3588 ient->sc_fmri);
3606 r = upgrade_dependent(ud_dpt_prop, ient, snpl,
3665 for (new_dpt_pgroup = uu_list_first(ient->sc_dependents);
3667 new_dpt_pgroup = uu_list_next(ient->sc_dependents,
3706 warn(emsg_pg_added, ient->sc_fmri, dependents);
3711 ient->sc_fmri);
3734 warn(emsg_pg_deleted, ient->sc_fmri, dependents);
3738 warn(emsg_pg_mod_perm, dependents, ient->sc_fmri);
3751 for (new_dpt_pgroup = uu_list_first(ient->sc_dependents);
3753 new_dpt_pgroup = uu_list_next(ient->sc_dependents,
3765 r = handle_dependent_conflict(ient, ud_prop,
3790 ient->sc_fmri,
3796 warn(emsg_pg_deleted, ient->sc_fmri,
3844 warn(emsg_pg_changed, ient->sc_fmri, dependents);
3862 warn(emsg_pg_deleted, ient->sc_fmri, dependents);
3866 warn(emsg_pg_mod_perm, dependents, ient->sc_fmri);
3892 upgrade_manifestfiles(pgroup_t *pg, const entity_t *ient,
3911 const int issvc = (ient->sc_etype == SVCCFG_SERVICE_OBJECT);
3952 cbdata.sc_source_fmri = ient->sc_fmri;
3953 cbdata.sc_target_fmri = ient->sc_fmri;
3962 for (mfst_pgroup = uu_list_first(ient->sc_pgroups);
3964 mfst_pgroup = uu_list_next(ient->sc_pgroups, mfst_pgroup)) {
4025 cbdata.sc_source_fmri = ient->sc_fmri;
4026 cbdata.sc_target_fmri = ient->sc_fmri;
4037 * to ient. If prop is a valid dependents property, upgrade the dependent it
4038 * represents according to the repository & ient. If ud_run_dpts_pg_set is
4040 * of the entity ient represents (possibly in the running snapshot). If it
4068 upgrade_dependent(const scf_property_t *prop, const entity_t *ient,
4113 warn(li_corrupt, ient->sc_fmri);
4137 uu_list_find(ient->sc_dependents, &pgrp, NULL, UU_DEFAULT);
4148 warn(li_corrupt, ient->sc_fmri);
4179 warn(emsg_pg_deleted, ient->sc_fmri,
4195 warn(cf_inval, ient->sc_fmri, ud_name);
4215 warn(cf_inval, ient->sc_fmri, ud_name);
4230 warn(cf_newtarg, ient->sc_fmri, ud_name);
4234 warn(li_corrupt, ient->sc_fmri);
4244 warn(li_corrupt, ient->sc_fmri);
4260 r = load_pg(ud_pg, &old_dpt_pgroup, ient->sc_fmri,
4344 warn(cf_newdpg, ient->sc_fmri, ud_name);
4355 ient->sc_fmri, ud_name);
4388 warn(emsg_pg_del_perm, ud_name, ient->sc_fmri);
4411 dpt->sc_parent = (entity_t *)ient;
4428 warn(emsg_pg_deleted, ient->sc_fmri,
4461 warn(li_corrupt, ient->sc_fmri);
4496 dpt->sc_parent = (entity_t *)ient;
4507 warn(li_corrupt, ient->sc_fmri);
4523 r = load_pg(ud_pg, &old_dpt_pgroup, ient->sc_fmri,
4548 warn(li_corrupt, ient->sc_fmri);
4575 warn(cf_missing, ient->sc_fmri, ud_name);
4581 warn(cf_missing, ient->sc_fmri, ud_name);
4590 warn(emsg_pg_deleted, ient->sc_fmri, "dependents");
4607 warn(cf_inval, ient->sc_fmri, ud_name);
4628 warn(cf_inval, ient->sc_fmri, ud_name);
4638 warn(cf_inval, ient->sc_fmri, ud_name);
4642 warn(li_corrupt, ient->sc_fmri);
4652 warn(cf_inval, ient->sc_fmri, ud_name);
4656 warn(cf_newtarg, ient->sc_fmri, ud_name);
4674 warn(cf_missing, ient->sc_fmri, ud_name);
4699 warn(cf_missing, ient->sc_fmri, ud_name);
4718 warn(cf_missing, ient->sc_fmri, ud_name);
4733 warn(cf_newdpg, ient->sc_fmri, ud_name);
4752 warn(li_corrupt, ient->sc_fmri);
4768 r = load_pg(ud_pg, &old_dpt_pgroup, ient->sc_fmri,
4791 warn(cf_missing, ient->sc_fmri, ud_name);
4816 warn(cf_missing, ient->sc_fmri, ud_name);
4835 warn(cf_missing, ient->sc_fmri, ud_name);
4850 warn(cf_newdpg, ient->sc_fmri, ud_name);
4878 warn(cf_missing, ient->sc_fmri, ud_name);
4909 warn(cf_missing, ient->sc_fmri,
4941 warn(cf_missing, ient->sc_fmri, ud_name);
4955 warn(upgrading, ient->sc_fmri, ud_name);
4958 new_dpt_pgroup, 0, ient->sc_fmri);
4997 warn(upgrading, ient->sc_fmri, ud_name);
5006 warn(cf_missing, ient->sc_fmri, ud_name);
5032 warn(emsg_pg_del_perm, ud_name, ient->sc_fmri);
5075 warn(emsg_pg_deleted, ient->sc_fmri,
5100 warn(emsg_pg_deleted, ient->sc_fmri,
5106 warn(emsg_pg_changed, ient->sc_fmri,
5134 warn(li_corrupt, ient->sc_fmri);
5160 * entity corresponding to ient.
5171 handle_dependent_conflict(const entity_t * const ient,
5187 warn(emsg_pg_deleted, ient->sc_fmri,
5196 "fewer than one value)).\n"), ient->sc_fmri,
5216 ient->sc_fmri, new_dpt_pgroup->sc_pgroup_name,
5230 "target \"%s\").\n"), ient->sc_fmri,
5241 "dependent's target (%s) is invalid.\n"), ient->sc_fmri,
5247 "\"%s\".\n"), new_dpt_pgroup->sc_pgroup_name, ient->sc_fmri,
5265 warn(emsg_dpt_dangling, ient->sc_fmri,
5285 warn(emsg_dpt_dangling, ient->sc_fmri,
5300 warn(emsg_dpt_no_dep, ient->sc_fmri,
5326 warn(emsg_dpt_no_dep, ient->sc_fmri,
5345 * scf_service_t or an scf_instance_t (according to ient). If lipg is not in
5346 * ient's pgroups, delete it from ent if it hasn't been customized. If it is
5354 * EINVAL - ient has invalid dependent (error printed)
5355 * - ient has invalid pgroup_t (error printed)
5383 process_old_pg(const scf_propertygroup_t *lipg, entity_t *ient, void *ent,
5395 const int issvc = (ient->sc_etype == SVCCFG_SERVICE_OBJECT);
5453 mpg = uu_list_find(ient->sc_pgroups, &pgrp, NULL, NULL);
5460 return (upgrade_dependents(lipg, imp_snpl, ient, running, ent));
5463 return (upgrade_manifestfiles(NULL, ient, running, ent));
5487 warn(deleting, ient->sc_fmri, imp_str);
5501 warn(emsg_pg_del_perm, imp_str, ient->sc_fmri);
5510 r = load_pg(lipg, &lipg_i, ient->sc_fmri, snap_lastimport);
5528 r = load_pg(imp_pg2, &curpg_i, ient->sc_fmri, NULL);
5547 warn(deleting, ient->sc_fmri, imp_str);
5565 report_pg_diffs(lipg_i, curpg_i, ient->sc_fmri, 0);
5581 r = load_pg(lipg, &lipg_i, ient->sc_fmri, snap_lastimport);
5634 warn(cf_pg_missing, ient->sc_fmri, imp_str);
5646 warn(cf_pg_missing, ient->sc_fmri, imp_str);
5659 (void) pg_attrs_equal(curpg_i, mpg, ient->sc_fmri, 0);
5667 r = load_pg(imp_pg2, &curpg_i, ient->sc_fmri, NULL);
5673 warn(cf_pg_missing, ient->sc_fmri, imp_str);
5693 ient->sc_fmri, mpg->sc_pgroup_name);
5734 ient->sc_fmri);
5749 cbdata.sc_source_fmri = ient->sc_fmri;
5750 cbdata.sc_target_fmri = ient->sc_fmri;
5760 warn(emsg_pg_added, ient->sc_fmri,
5796 cbdata.sc_source_fmri = ient->sc_fmri;
5797 cbdata.sc_target_fmri = ient->sc_fmri;
5807 warn(emsg_pg_added, ient->sc_fmri,
5820 r = upgrade_pg(imp_pg2, curpg_i, lipg_i, mpg, g_verbose, ient->sc_fmri);
5824 ient->sc_import_state = IMPORT_PROP_BEGUN;
5828 warn(emsg_pg_deleted, ient->sc_fmri, mpg->sc_pgroup_name);
5833 warn(emsg_pg_mod_perm, mpg->sc_pgroup_name, ient->sc_fmri);
5837 warn(emsg_pg_changed, ient->sc_fmri, mpg->sc_pgroup_name);
5858 * Upgrade the properties of ent according to snpl & ient.
5878 * - ient has invalid pgroup or dependent (error printed)
5890 entity_t *ient)
5894 uu_list_t *pgs = ient->sc_pgroups;
5896 const int issvc = (ient->sc_etype == SVCCFG_SERVICE_OBJECT);
5924 r = process_old_pg(imp_pg, ient, ent, running);
5974 r = upgrade_dependents(NULL, imp_snpl, ient, running,
6001 r = upgrade_manifestfiles(pg, ient, running, ent);
6050 warn(emsg_fmri_invalid_pg_name, ient->sc_fmri,
6067 cbdata.sc_source_fmri = ient->sc_fmri;
6068 cbdata.sc_target_fmri = ient->sc_fmri;
6073 ient->sc_import_state = IMPORT_PROP_BEGUN;
6078 warn(emsg_pg_added, ient->sc_fmri,
6090 r = load_pg(imp_pg, &rpg, ient->sc_fmri, NULL);
6096 warn(emsg_pg_deleted, ient->sc_fmri,
6109 report_pg_diffs(pg, rpg, ient->sc_fmri, 1);