Lines Matching refs:lun

568 	for (const auto &lun : devlist.lun_list) {  in conf_new_from_kernel()  local
569 if (lun.ctld_name.empty()) { in conf_new_from_kernel()
571 "ignoring", (uintmax_t)lun.lun_id); in conf_new_from_kernel()
575 const char *l_name = lun.ctld_name.c_str(); in conf_new_from_kernel()
576 struct lun *cl = conf->find_lun(l_name); in conf_new_from_kernel()
580 (uintmax_t)lun.lun_id, l_name, in conf_new_from_kernel()
586 (uintmax_t)lun.lun_id, l_name); in conf_new_from_kernel()
593 cl->set_backend(lun.backend_type.c_str()); in conf_new_from_kernel()
594 cl->set_device_type(lun.device_type); in conf_new_from_kernel()
595 cl->set_blocksize(lun.blocksize); in conf_new_from_kernel()
596 cl->set_device_id(lun.device_id.c_str()); in conf_new_from_kernel()
597 cl->set_serial(lun.serial_number.c_str()); in conf_new_from_kernel()
598 cl->set_size(lun.size_blocks * lun.blocksize); in conf_new_from_kernel()
599 cl->set_ctl_lun(lun.lun_id); in conf_new_from_kernel()
601 for (const auto &pair : lun.attr_list) { in conf_new_from_kernel()
611 key, (uintmax_t)lun.lun_id, in conf_new_from_kernel()
620 lun::kernel_add() in kernel_add()
690 lun::kernel_modify() const in kernel_modify()
737 lun::kernel_remove() const in kernel_remove()
863 lm.lun = 0; in kernel_add()
870 if (targ->lun(i) == nullptr) in kernel_add()
874 lm.lun = targ->lun(i)->ctl_lun(); in kernel_add()
907 if (targ->lun(i) == nullptr) in kernel_update()
908 lm.lun = UINT32_MAX; in kernel_update()
910 lm.lun = targ->lun(i)->ctl_lun(); in kernel_update()
911 if (otarg->lun(i) == nullptr) in kernel_update()
914 olun = otarg->lun(i)->ctl_lun(); in kernel_update()
915 if (lm.lun == olun) in kernel_update()
975 lm.lun = UINT32_MAX; in kernel_remove_port()