Lines Matching refs:mapnvl

89 static nvlist_t *mapnvl;
193 rv = nvlist_unpack(ondiskbuf, cachestat.st_size, &mapnvl, 0);
198 if (nvlist_alloc(&mapnvl, NV_UNIQUE_NAME, 0) != 0) {
223 rv = nvlist_size(mapnvl, &newsz, NV_ENCODE_NATIVE);
230 nvlist_free(mapnvl);
240 nvlist_free(mapnvl);
244 rv = nvlist_pack(mapnvl, &ondiskbuf, &newsz,
252 nvlist_free(mapnvl);
263 nvlist_free(mapnvl);
272 nvlist_free(mapnvl);
303 nvlist_free(mapnvl);
569 while ((pair = nvlist_next_nvpair(mapnvl, pair))
587 (void) nvlist_lookup_nvlist(mapnvl, querydev, &thisdevnvl);
640 * We get passed a device name which we search the mapnvl for. If we find
643 * the command line does not exist in the mapnvl, then we print NOT_MAPPED.
645 * stashed in the mapnvl - even if that's a "no change" device mapping.
733 rv = nvlist_lookup_string(mapnvl, stripdev, &thisdevid);
738 "searched mapnvl for '%s', got %s (%d)\n",
749 if (nvlist_lookup_nvlist(mapnvl, thisdevid, &thisdev) != 0) {
750 logmsg(MSG_INFO, "device (%s) in mapnvl but "
924 rv = nvlist_lookup_nvlist(mapnvl, strdevid, &newnvl);
954 rv = nvlist_add_nvlist(mapnvl, strdevid, newnvl);
965 gettext("added device (devid %s) to mapnvl\n\n"),
1002 if (nvlist_add_string(mapnvl, devfspath, strdevid) != 0) {
1005 "%s to mapnvl\n"), devfspath, strdevid);
1089 if (nvlist_add_string(mapnvl, path, strdevid) != 0) {
1092 "%s to mapnvl\n"), path, strdevid);
1099 if (nvlist_add_string(mapnvl, curpath, strdevid) != 0) {
1102 "%s to mapnvl: %s\n"),
1503 rval = nvlist_lookup_string(mapnvl, prefixt,
1515 /* The device exists in our mapnvl */
1516 (void) nvlist_lookup_nvlist(mapnvl, thisdevid,