Searched refs:capacity_str (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/md/ |
D | dm-ima.c | 149 static int dm_ima_alloc_and_copy_capacity_str(struct mapped_device *md, char **capacity_str, in dm_ima_alloc_and_copy_capacity_str() argument 156 *capacity_str = dm_ima_alloc(DM_IMA_DEVICE_CAPACITY_BUF_LEN, GFP_KERNEL, noio); in dm_ima_alloc_and_copy_capacity_str() 157 if (!(*capacity_str)) in dm_ima_alloc_and_copy_capacity_str() 160 scnprintf(*capacity_str, DM_IMA_DEVICE_BUF_LEN, "current_device_capacity=%llu;", in dm_ima_alloc_and_copy_capacity_str() 371 char *device_table_data, *dev_name = NULL, *dev_uuid = NULL, *capacity_str = NULL; in dm_ima_measure_on_device_resume() local 383 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_device_resume() 458 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_resume() 459 memcpy(device_table_data + l, capacity_str, capacity_len); in dm_ima_measure_on_device_resume() 467 kfree(capacity_str); in dm_ima_measure_on_device_resume() 476 char *device_table_data, *dev_name = NULL, *dev_uuid = NULL, *capacity_str = NULL; in dm_ima_measure_on_device_remove() local [all …]
|