Improved the entry listing

This commit is contained in:
2024-02-18 14:56:36 +01:00
parent cf6e692289
commit 444bbc6ebe
7 changed files with 69 additions and 8 deletions

View File

@@ -196,3 +196,19 @@ Status GetLatestBacking(char** _backing_identifier) {
return status;
}
Status GetBackingDiskInfo(const char* backing_identifier, DiskInfo* _info) {
*_info = (DiskInfo){0};
// Get the backing path
char* backing_path = NULL;
Status status = GetBackingPath(backing_identifier, &backing_path);
if (status != SUCCESS)
return status;
// Get the disk info
status = GetDiskInfo(backing_path, _info);
free(backing_path);
return status;
}