Lines Matching defs:asru

53 	FMD_RSRC_CLASS "asru.ok",		/* UNUSABLE=0 FAULTED=0 */
54 FMD_RSRC_CLASS "asru.degraded", /* UNUSABLE=0 FAULTED=1 */
55 FMD_RSRC_CLASS "asru.unknown", /* UNUSABLE=1 FAULTED=0 */
56 FMD_RSRC_CLASS "asru.faulted" /* UNUSABLE=1 FAULTED=1 */
138 * Lookup an asru in the hash by name and place a hold on it. If the asru is
171 nvlist_t *asru, *fru, *rsrc;
178 * present - an asru can be spread over a number of frus some of which
180 * meaningful. However retain a check for asru first for compatibility.
190 if (nvlist_lookup_nvlist(event, FM_FAULT_ASRU, &asru) == 0 &&
191 (hc_only == HC_ONLY_FALSE || (nvlist_lookup_string(asru,
193 ps = fmd_fmri_replaced(asru);
356 nvlist_t *asru = NULL, *fru, *rsrc;
365 if (nvlist_lookup_nvlist(nvl, FM_FAULT_ASRU, &asru) == 0 &&
366 fmd_asru_get_namestr(asru, &asru_name, &asru_namelen) == 0)
378 * Grab the rwlock as a writer; Then create and insert the asru with
380 * proceed to initializing the asru.
389 (void) nvlist_xdup(asru, &alp->al_asru_fmri, &fmd.d_nva);
395 * If this is the first fault for this asru, then create the per-asru
400 ap = fmd_asru_create(ahp, al_uuid, name, got_asru ? asru :
408 * Put the link structure on the list associated with the per-asru
445 nvlist_t *flt, *flt_copy, *asru;
464 fmd_error(EFMD_ASRU_EVENT, "failed to reload asru %s: "
470 fmd_error(EFMD_ASRU_EVENT, "failed to reload asru %s: "
516 * For faults with a resource, re-evaluate the asru from the resource.
524 topo_fmri_asru(thp, rsrc, &asru, &err) == 0) {
526 (void) nvlist_add_nvlist(flt_copy, FM_FAULT_ASRU, asru);
527 nvlist_free(asru);
551 &asru) == 0) {
554 switch (fmd_fmri_service_state(asru)) {
566 us = fmd_fmri_unusable(asru);
596 TRACE((FMD_DBG_ASRU, "asru %s recreated as %p (%s)", alp->al_uuid,
653 "failed to open asru cache directory %s", ahp->ah_dirpath);
1021 * Lookup an asru in the hash by name and place a hold on it. If the asru is
1077 TRACE((FMD_DBG_ASRU, "asru %s created as %p",
1086 * Release the reference count on an asru obtained using fmd_asru_hash_lookup.
1205 "failed to unlink asru %s", path);
1271 * Check if all entries associated with this asru are acquitted and
1273 * side unless we have local asru.
1304 * don't allow repair etc by asru on proxy unless asru is local
1406 * Save whether asru is accessible in local domain
1440 * For proxy, if there is no asru on the proxy side, but there is on
1441 * the diag side, then take the diag side asru status.
1442 * For diag, if there is an asru on the proxy side, then take the proxy
1443 * side asru status.
1579 TRACE((FMD_DBG_ASRU, "asru %s %s->%s", alp->al_uuid,
1632 TRACE((FMD_DBG_ASRU, "asru %s %s->%s", alp->al_uuid,
1663 nvlist_t *asru;
1698 nvlist_lookup_nvlist(alp->al_event, FM_FAULT_ASRU, &asru) == 0) {
1699 us = fmd_fmri_service_state(asru);
1702 us = fmd_fmri_unusable(asru);