Lines Matching refs:cnum
3268 if (qd.cnum == -1) { in query_disk()
3271 qd.cnum = qd.id; in query_disk()
3273 if (qd.cnum < 0 || qd.cnum >= dev->maximum_num_containers) in query_disk()
3277 qd.id = CONTAINER_TO_ID(qd.cnum); in query_disk()
3278 qd.lun = CONTAINER_TO_LUN(qd.cnum); in query_disk()
3282 qd.valid = fsa_dev_ptr[qd.cnum].valid != 0; in query_disk()
3283 qd.locked = fsa_dev_ptr[qd.cnum].locked; in query_disk()
3284 qd.deleted = fsa_dev_ptr[qd.cnum].deleted; in query_disk()
3286 if (fsa_dev_ptr[qd.cnum].devname[0] == '\0') in query_disk()
3291 strlcpy(qd.name, fsa_dev_ptr[qd.cnum].devname, in query_disk()
3292 min(sizeof(qd.name), sizeof(fsa_dev_ptr[qd.cnum].devname) + 1)); in query_disk()
3311 if (dd.cnum >= dev->maximum_num_containers) in force_delete_disk()
3316 fsa_dev_ptr[dd.cnum].deleted = 1; in force_delete_disk()
3320 fsa_dev_ptr[dd.cnum].valid = 0; in force_delete_disk()
3336 if (dd.cnum >= dev->maximum_num_containers) in delete_disk()
3341 if (fsa_dev_ptr[dd.cnum].locked) in delete_disk()
3347 fsa_dev_ptr[dd.cnum].valid = 0; in delete_disk()
3348 fsa_dev_ptr[dd.cnum].devname[0] = '\0'; in delete_disk()