Lines Matching refs:partlistlen
160 int partlistlen = UUID_STR_LEN + 1 + strlen("uuid_disk="); in calc_parts_list_len() local
162 partlistlen++; in calc_parts_list_len()
165 partlistlen += numparts * (strlen("name=,") + PART_NAME_LEN + 1); in calc_parts_list_len()
167 partlistlen += numparts * (strlen("start=MiB,") + sizeof(lbaint_t) + 1); in calc_parts_list_len()
168 partlistlen += numparts * (strlen("size=MiB,") + sizeof(lbaint_t) + 1); in calc_parts_list_len()
169 partlistlen += numparts * (strlen("uuid=;") + UUID_STR_LEN + 1); in calc_parts_list_len()
171 partlistlen++; in calc_parts_list_len()
172 debug("Length of partitions_list is %d for %d partitions\n", partlistlen, in calc_parts_list_len()
174 return partlistlen; in calc_parts_list_len()
659 int partlistlen, ret, numparts = 0, partnum, i = 1, ctr1 = 0, ctr2 = 0; in do_rename_gpt_parts() local
676 partlistlen = calc_parts_list_len(numparts); in do_rename_gpt_parts()
677 partitions_list = malloc(partlistlen); in do_rename_gpt_parts()
682 memset(partitions_list, '\0', partlistlen); in do_rename_gpt_parts()