Made some small adjustments
This commit is contained in:
19
src/disk.h
Normal file → Executable file
19
src/disk.h
Normal file → Executable file
@@ -5,14 +5,15 @@
|
||||
typedef struct {
|
||||
uint64_t size;
|
||||
uint64_t allocated;
|
||||
char* backing_file_path;
|
||||
char* backing_identifier;
|
||||
} DiskInfo;
|
||||
char* backing_path;
|
||||
} disk_info_t;
|
||||
|
||||
Result CreateRootDisk(const char* disk_path, uint64_t size);
|
||||
Result CreateBackedDisk(const char* disk_path, const char* backing_disk_path);
|
||||
Result TrimDisk(const char* disk_path);
|
||||
Result RebackDisk(const char* disk_path, const char* backing_disk_path);
|
||||
result_t create_root_disk(const char* path, uint64_t size);
|
||||
result_t create_backed_disk(const char* path, const char* backing_path);
|
||||
|
||||
Result GetDiskInfo(const char* disk_path, DiskInfo* _info);
|
||||
Result FreeDiskInfo(DiskInfo* info);
|
||||
result_t trim_disk(const char* path);
|
||||
result_t reset_disk(const char* path);
|
||||
result_t reback_disk(const char* path, const char* backing_path);
|
||||
|
||||
result_t get_disk_info(disk_info_t* _info, const char* path);
|
||||
void free_disk_info(disk_info_t* _info);
|
||||
|
Reference in New Issue
Block a user