Lines Matching refs:id
40 int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off, uint64_t size)
50 buf = volume_id_get_buffer(id, off + page-10, 10);
55 strcpy(id->type_version, "1");
60 id->type = "swap";
61 strcpy(id->type_version, "2");
66 id->type = "suspend";
67 strcpy(id->type_version, "s1suspend");
72 id->type = "suspend";
73 strcpy(id->type_version, "ulsuspend");
80 sw = (struct swap_header_v1_2 *) volume_id_get_buffer(id, off, sizeof(struct swap_header_v1_2));
82 volume_id_set_label_raw(id, sw->volume_name, 16);
83 volume_id_set_label_string(id, sw->volume_name, 16);
84 volume_id_set_uuid(id, sw->uuid, 0, UUID_DCE);
88 volume_id_set_usage(id, VOLUME_ID_OTHER);