Improved the entry listing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user