Lines Matching refs:id
237 dbg("found ATTR_VOLUME_ID id in root dir");
247 int volume_id_probe_vfat(struct volume_id *id, uint64_t off, uint64_t size)
275 buf = volume_id_get_buffer(id, off, 0x400);
371 strcpy(id->type_version, "FAT12");
373 strcpy(id->type_version, "FAT16");
384 buf = volume_id_get_buffer(id, off + root_start, buf_size);
392 vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, 0x200);
397 volume_id_set_label_raw(id, filename, fnlen);
398 volume_id_set_label_string(id, filename, fnlen);
400 volume_id_set_label_raw(id, vs->type.fat.label, 11);
401 volume_id_set_label_string(id, vs->type.fat.label, 11);
403 volume_id_set_uuid(id, vs->type.fat.serno, 0, UUID_DOS);
409 buf = volume_id_get_buffer(id, off + (fsinfo_sect * sector_size), 0x200);
418 vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, 0x200);
422 strcpy(id->type_version, "FAT32");
444 buf = volume_id_get_buffer(id, off + next_off, buf_size);
458 buf = volume_id_get_buffer(id, off + fat_entry_off, buf_size);
470 vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, 0x200);
475 volume_id_set_label_raw(id, filename, fnlen);
476 volume_id_set_label_string(id, filename, fnlen);
478 volume_id_set_label_raw(id, vs->type.fat32.label, 11);
479 volume_id_set_label_string(id, vs->type.fat32.label, 11);
481 volume_id_set_uuid(id, vs->type.fat32.serno, 0, UUID_DOS);
484 volume_id_set_usage(id, VOLUME_ID_FILESYSTEM);
485 id->type = "vfat";