/* @ops: contains AVB ops handlers @partition: partition name (NUL-terminated UTF-8 string) @guid_buf: buf, used to copy in GUID string. Example of value: 527c1c6d-6361-4593-8842-3c78fcd39219 @guid_buf_size: @guid_buf buffer size */
static AvbIOResult get_unique_guid_for_partition(AvbOps *ops, const char *partition, char *guid_buf, size_t guid_buf_size)
/* @ops: contains AVB ops handlers @partition: partition name (NUL-terminated UTF-8 string) @guid_buf: buf, used to copy in GUID string. Example of value: 527c1c6d-6361-4593-8842-3c78fcd39219 @guid_buf_size: @guid_buf buffer size */
static AvbIOResult get_unique_guid_for_partition(AvbOps *ops, const char *partition, char *guid_buf, size_t guid_buf_size)
{
	struct mmc_part *part;
	size_t uuid_size;
	part = get_partition(ops, partition);
	if (!part)
		return AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION;
	uuid_size = sizeof(part->info.uuid);
	if (uuid_size > guid_buf_size)
		return AVB_IO_RESULT_ERROR_IO;
	memcpy(guid_buf, part->info.uuid, uuid_size);
	guid_buf[uuid_size - 1] = 0;
	return AVB_IO_RESULT_OK;
}