Lines Matching refs:dm
209 check_devs(devmap_t *dm) in check_devs() argument
214 if (dm->dmap_devarray == NULL) in check_devs()
216 for (file = dm->dmap_devarray; *file != NULL; file++) { in check_devs()
248 print_dev_attrs(int optflag, devalloc_t *da, devmap_t *dm, in print_dev_attrs() argument
254 (void) printf("device=%s%s", dm->dmap_devname, KV_DELIMITER); in print_dev_attrs()
255 (void) printf("type=%s%s", dm->dmap_devtype, KV_DELIMITER); in print_dev_attrs()
281 (void) printf("files=%s", dm->dmap_devlist); in print_dev_attrs()
286 print_dev(devmap_t *dm) in print_dev() argument
290 (void) printf(gettext("device: %s "), dm->dmap_devname); in print_dev()
291 (void) printf(gettext("type: %s "), dm->dmap_devtype); in print_dev()
293 file = dm->dmap_devarray; in print_dev()
310 devmap_t *dm; in _list_device() local
316 if ((dm = getdmapnam(da->da_devname)) == NULL) { in _list_device()
328 print_dev_attrs(optflag, da, dm, &fi); in _list_device()
330 print_dev(dm); in _list_device()
335 if ((error = _dev_file_name(&sf, dm)) != 0) { in _list_device()
336 freedmapent(dm); in _list_device()
470 if (check_devs(dm) == -1) { in _list_device()
475 print_dev_attrs(optflag, da, dm, &fi); in _list_device()
477 print_dev(dm); in _list_device()
482 freedmapent(dm); in _list_device()
1009 devmap_t *dm = NULL, *dm_new = NULL; in _deallocate_dev() local
1022 dm = dm_new; in _deallocate_dev()
1024 dm = dm_in; in _deallocate_dev()
1027 if (_dev_file_name(&sf, dm) != 0) { in _deallocate_dev()
1107 if ((remove_znode(devzone, dm) != 0) && in _deallocate_dev()
1114 if ((error = mk_unalloc(optflag, dm)) != 0) { in _deallocate_dev()
1136 (void) mk_error(dm); in _deallocate_dev()
1159 devmap_t *dm; in _allocate_dev() local
1167 if ((dm = getdmapnam(da->da_devname)) == NULL) { in _allocate_dev()
1175 if (_dev_file_name(&sf, dm) != 0) { in _allocate_dev()
1176 freedmapent(dm); in _allocate_dev()
1230 if (check_devs(dm) == -1) { in _allocate_dev()
1240 if (_deallocate_dev(dealloc_optflag, da, dm, uid, in _allocate_dev()
1275 (void) mk_error(dm); in _allocate_dev()
1294 if (create_znode(zonename, &zpath, dm) != 0) { in _allocate_dev()
1301 (void) audit_allocate_list(dm->dmap_devlist); in _allocate_dev()
1303 if ((error = mk_alloc(dm, uid, &zpath)) != 0) { in _allocate_dev()
1304 (void) mk_unalloc(optflag, dm); in _allocate_dev()
1323 freedmapent(dm); in _allocate_dev()
1561 _dev_file_name(struct state_file *sfp, devmap_t *dm) in _dev_file_name() argument
1565 if (dm->dmap_devlist[0] == '`') in _dev_file_name()
1567 if (dm->dmap_devarray == NULL || in _dev_file_name()
1568 dm->dmap_devarray[0] == NULL) in _dev_file_name()
1570 (void) strncpy(sfp->sf_path, dm->dmap_devarray[0], in _dev_file_name()
1575 dm->dmap_devname); in _dev_file_name()
1784 remove_znode(char *zonename, devmap_t *dm) in remove_znode() argument
1792 file = dm->dmap_devarray; in remove_znode()