return 1;
}
+int volume_id_get_uuid_sub(struct volume_id *id, const char **uuid)
+{
+ if (id == NULL)
+ return 0;
+ if (uuid == NULL)
+ return 0;
+ if (id->usage_id == VOLUME_ID_UNUSED)
+ return 0;
+
+ *uuid = id->uuid_sub;
+ return 1;
+}
+
/**
* volume_id_get_usage:
* @id: Probing context.
info("signature '%s' %i detected\n", id->type, i);
if (id->force_unique_result)
force_unique_result = 1;
- if (found && force_unique_result) {
+ if (found > 0 && force_unique_result) {
info("conflicting signatures found, skip results\n");
return -1;
}