Searched refs:disk (Results 1 – 6 of 6) sorted by relevance
92 struct gpt_disk *disk = NULL; in get_partition_attribute() local98 disk = gpt_disk_alloc(); in get_partition_attribute()99 if (!disk) { in get_partition_attribute()103 if (gpt_disk_get_disk_info(partname, disk)) { in get_partition_attribute()107 pentry = gpt_disk_get_pentry(disk, partname, PRIMARY_GPT); in get_partition_attribute()122 gpt_disk_free(disk); in get_partition_attribute()125 if (disk) in get_partition_attribute()126 gpt_disk_free(disk); in get_partition_attribute()138 struct gpt_disk *disk = NULL; in update_slot_attribute() local191 disk = gpt_disk_alloc(); in update_slot_attribute()[all …]
1345 struct gpt_disk *disk; in gpt_disk_alloc() local1346 disk = (struct gpt_disk *)malloc(sizeof(struct gpt_disk)); in gpt_disk_alloc()1347 if (!disk) { in gpt_disk_alloc()1351 memset(disk, 0, sizeof(struct gpt_disk)); in gpt_disk_alloc()1353 return disk; in gpt_disk_alloc()1357 void gpt_disk_free(struct gpt_disk *disk) in gpt_disk_free() argument1359 if (!disk) in gpt_disk_free()1361 if (disk->hdr) in gpt_disk_free()1362 free(disk->hdr); in gpt_disk_free()1363 if (disk->hdr_bak) in gpt_disk_free()[all …]
148 void gpt_disk_free(struct gpt_disk *disk);151 int gpt_disk_get_disk_info(const char *dev, struct gpt_disk *disk);154 uint8_t* gpt_disk_get_pentry(struct gpt_disk *disk,159 int gpt_disk_update_crc(struct gpt_disk *disk);162 int gpt_disk_commit(struct gpt_disk *disk);
153 * Gets disk statistics (number of reads/writes processed, number of I/O159 * @return value vector of disk statistics, to be ignored if result is not SUCCESS.
680 * Persist the current configuration to disk.
223 * decrypt the disk.