Lines Matching defs:ient

3438  * Upgrade uncustomized dependents of ent to those specified in ient.  Read
3440 * snapshot which corresponds to ient) if not NULL (ent, an scf_service_t * or
3441 * scf_instance_t * according to ient, otherwise). Draw the ancestral
3445 * snpl doesn't have a "dependents" property group, and any dependents in ient
3476 const scf_snaplevel_t *snpl, const entity_t *ient,
3486 const int issvc = (ient->sc_etype == SVCCFG_SERVICE_OBJECT);
3488 if (li_dpts_pg == NULL && uu_list_numnodes(ient->sc_dependents) == 0)
3545 if (uu_list_walk(ient->sc_dependents, clear_int,
3588 warn(emsg_pg_deleted, ient->sc_fmri,
3594 ient->sc_fmri);
3612 r = upgrade_dependent(ud_dpt_prop, ient, snpl,
3671 for (new_dpt_pgroup = uu_list_first(ient->sc_dependents);
3673 new_dpt_pgroup = uu_list_next(ient->sc_dependents,
3712 warn(emsg_pg_added, ient->sc_fmri, dependents);
3717 ient->sc_fmri);
3740 warn(emsg_pg_deleted, ient->sc_fmri, dependents);
3744 warn(emsg_pg_mod_perm, dependents, ient->sc_fmri);
3757 for (new_dpt_pgroup = uu_list_first(ient->sc_dependents);
3759 new_dpt_pgroup = uu_list_next(ient->sc_dependents,
3771 r = handle_dependent_conflict(ient, ud_prop,
3796 ient->sc_fmri,
3802 warn(emsg_pg_deleted, ient->sc_fmri,
3850 warn(emsg_pg_changed, ient->sc_fmri, dependents);
3868 warn(emsg_pg_deleted, ient->sc_fmri, dependents);
3872 warn(emsg_pg_mod_perm, dependents, ient->sc_fmri);
3898 upgrade_manifestfiles(pgroup_t *pg, const entity_t *ient,
3917 const int issvc = (ient->sc_etype == SVCCFG_SERVICE_OBJECT);
3958 cbdata.sc_source_fmri = ient->sc_fmri;
3959 cbdata.sc_target_fmri = ient->sc_fmri;
3968 for (mfst_pgroup = uu_list_first(ient->sc_pgroups);
3970 mfst_pgroup = uu_list_next(ient->sc_pgroups, mfst_pgroup)) {
4035 cbdata.sc_source_fmri = ient->sc_fmri;
4036 cbdata.sc_target_fmri = ient->sc_fmri;
4047 * to ient. If prop is a valid dependents property, upgrade the dependent it
4048 * represents according to the repository & ient. If ud_run_dpts_pg_set is
4050 * of the entity ient represents (possibly in the running snapshot). If it
4078 upgrade_dependent(const scf_property_t *prop, const entity_t *ient,
4123 warn(li_corrupt, ient->sc_fmri);
4147 uu_list_find(ient->sc_dependents, &pgrp, NULL, UU_DEFAULT);
4158 warn(li_corrupt, ient->sc_fmri);
4189 warn(emsg_pg_deleted, ient->sc_fmri,
4205 warn(cf_inval, ient->sc_fmri, ud_name);
4225 warn(cf_inval, ient->sc_fmri, ud_name);
4240 warn(cf_newtarg, ient->sc_fmri, ud_name);
4244 warn(li_corrupt, ient->sc_fmri);
4254 warn(li_corrupt, ient->sc_fmri);
4270 r = load_pg(ud_pg, &old_dpt_pgroup, ient->sc_fmri,
4354 warn(cf_newdpg, ient->sc_fmri, ud_name);
4365 ient->sc_fmri, ud_name);
4398 warn(emsg_pg_del_perm, ud_name, ient->sc_fmri);
4421 dpt->sc_parent = (entity_t *)ient;
4438 warn(emsg_pg_deleted, ient->sc_fmri,
4471 warn(li_corrupt, ient->sc_fmri);
4506 dpt->sc_parent = (entity_t *)ient;
4517 warn(li_corrupt, ient->sc_fmri);
4533 r = load_pg(ud_pg, &old_dpt_pgroup, ient->sc_fmri,
4558 warn(li_corrupt, ient->sc_fmri);
4585 warn(cf_missing, ient->sc_fmri, ud_name);
4591 warn(cf_missing, ient->sc_fmri, ud_name);
4600 warn(emsg_pg_deleted, ient->sc_fmri, "dependents");
4617 warn(cf_inval, ient->sc_fmri, ud_name);
4638 warn(cf_inval, ient->sc_fmri, ud_name);
4648 warn(cf_inval, ient->sc_fmri, ud_name);
4652 warn(li_corrupt, ient->sc_fmri);
4662 warn(cf_inval, ient->sc_fmri, ud_name);
4666 warn(cf_newtarg, ient->sc_fmri, ud_name);
4684 warn(cf_missing, ient->sc_fmri, ud_name);
4709 warn(cf_missing, ient->sc_fmri, ud_name);
4728 warn(cf_missing, ient->sc_fmri, ud_name);
4743 warn(cf_newdpg, ient->sc_fmri, ud_name);
4762 warn(li_corrupt, ient->sc_fmri);
4778 r = load_pg(ud_pg, &old_dpt_pgroup, ient->sc_fmri,
4801 warn(cf_missing, ient->sc_fmri, ud_name);
4826 warn(cf_missing, ient->sc_fmri, ud_name);
4845 warn(cf_missing, ient->sc_fmri, ud_name);
4860 warn(cf_newdpg, ient->sc_fmri, ud_name);
4888 warn(cf_missing, ient->sc_fmri, ud_name);
4919 warn(cf_missing, ient->sc_fmri,
4951 warn(cf_missing, ient->sc_fmri, ud_name);
4965 warn(upgrading, ient->sc_fmri, ud_name);
4968 new_dpt_pgroup, 0, ient->sc_fmri);
5007 warn(upgrading, ient->sc_fmri, ud_name);
5016 warn(cf_missing, ient->sc_fmri, ud_name);
5042 warn(emsg_pg_del_perm, ud_name, ient->sc_fmri);
5085 warn(emsg_pg_deleted, ient->sc_fmri,
5110 warn(emsg_pg_deleted, ient->sc_fmri,
5116 warn(emsg_pg_changed, ient->sc_fmri,
5144 warn(li_corrupt, ient->sc_fmri);
5170 * entity corresponding to ient.
5181 handle_dependent_conflict(const entity_t * const ient,
5197 warn(emsg_pg_deleted, ient->sc_fmri,
5206 "fewer than one value)).\n"), ient->sc_fmri,
5226 ient->sc_fmri, new_dpt_pgroup->sc_pgroup_name,
5240 "target \"%s\").\n"), ient->sc_fmri,
5251 "dependent's target (%s) is invalid.\n"), ient->sc_fmri,
5257 "\"%s\".\n"), new_dpt_pgroup->sc_pgroup_name, ient->sc_fmri,
5275 warn(emsg_dpt_dangling, ient->sc_fmri,
5295 warn(emsg_dpt_dangling, ient->sc_fmri,
5310 warn(emsg_dpt_no_dep, ient->sc_fmri,
5336 warn(emsg_dpt_no_dep, ient->sc_fmri,
5355 * scf_service_t or an scf_instance_t (according to ient). If lipg is not in
5356 * ient's pgroups, delete it from ent if it hasn't been customized. If it is
5364 * EINVAL - ient has invalid dependent (error printed)
5365 * - ient has invalid pgroup_t (error printed)
5393 process_old_pg(const scf_propertygroup_t *lipg, entity_t *ient, void *ent,
5405 const int issvc = (ient->sc_etype == SVCCFG_SERVICE_OBJECT);
5463 mpg = uu_list_find(ient->sc_pgroups, &pgrp, NULL, NULL);
5470 return (upgrade_dependents(lipg, imp_snpl, ient, running, ent));
5473 return (upgrade_manifestfiles(NULL, ient, running, ent));
5497 warn(deleting, ient->sc_fmri, imp_str);
5511 warn(emsg_pg_del_perm, imp_str, ient->sc_fmri);
5520 r = load_pg(lipg, &lipg_i, ient->sc_fmri, snap_lastimport);
5538 r = load_pg(imp_pg2, &curpg_i, ient->sc_fmri, NULL);
5557 warn(deleting, ient->sc_fmri, imp_str);
5575 report_pg_diffs(lipg_i, curpg_i, ient->sc_fmri, 0);
5591 r = load_pg(lipg, &lipg_i, ient->sc_fmri, snap_lastimport);
5644 warn(cf_pg_missing, ient->sc_fmri, imp_str);
5656 warn(cf_pg_missing, ient->sc_fmri, imp_str);
5669 (void) pg_attrs_equal(curpg_i, mpg, ient->sc_fmri, 0);
5677 r = load_pg(imp_pg2, &curpg_i, ient->sc_fmri, NULL);
5683 warn(cf_pg_missing, ient->sc_fmri, imp_str);
5703 ient->sc_fmri, mpg->sc_pgroup_name);
5744 ient->sc_fmri);
5759 cbdata.sc_source_fmri = ient->sc_fmri;
5760 cbdata.sc_target_fmri = ient->sc_fmri;
5770 warn(emsg_pg_added, ient->sc_fmri,
5806 cbdata.sc_source_fmri = ient->sc_fmri;
5807 cbdata.sc_target_fmri = ient->sc_fmri;
5817 warn(emsg_pg_added, ient->sc_fmri,
5830 r = upgrade_pg(imp_pg2, curpg_i, lipg_i, mpg, g_verbose, ient->sc_fmri);
5834 ient->sc_import_state = IMPORT_PROP_BEGUN;
5838 warn(emsg_pg_deleted, ient->sc_fmri, mpg->sc_pgroup_name);
5843 warn(emsg_pg_mod_perm, mpg->sc_pgroup_name, ient->sc_fmri);
5847 warn(emsg_pg_changed, ient->sc_fmri, mpg->sc_pgroup_name);
5868 * Upgrade the properties of ent according to snpl & ient.
5888 * - ient has invalid pgroup or dependent (error printed)
5900 entity_t *ient)
5904 uu_list_t *pgs = ient->sc_pgroups;
5906 const int issvc = (ient->sc_etype == SVCCFG_SERVICE_OBJECT);
5934 r = process_old_pg(imp_pg, ient, ent, running);
5984 r = upgrade_dependents(NULL, imp_snpl, ient, running,
6011 r = upgrade_manifestfiles(pg, ient, running, ent);
6060 warn(emsg_fmri_invalid_pg_name, ient->sc_fmri,
6077 cbdata.sc_source_fmri = ient->sc_fmri;
6078 cbdata.sc_target_fmri = ient->sc_fmri;
6083 ient->sc_import_state = IMPORT_PROP_BEGUN;
6088 warn(emsg_pg_added, ient->sc_fmri,
6100 r = load_pg(imp_pg, &rpg, ient->sc_fmri, NULL);
6106 warn(emsg_pg_deleted, ient->sc_fmri,
6119 report_pg_diffs(pg, rpg, ient->sc_fmri, 1);