Files
linuxinstall/src/disk.h

18 lines
504 B
C
Raw Normal View History

2024-02-17 00:57:30 +01:00
#pragma once
#include "utils.h"
2024-02-17 01:20:20 +01:00
typedef struct {
2024-02-17 23:59:38 +01:00
uint64_t size;
uint64_t allocated;
2024-02-18 18:09:53 +01:00
char* backing_file_path;
2024-02-18 14:56:36 +01:00
char* backing_identifier;
2024-02-17 01:20:20 +01:00
} DiskInfo;
2024-02-18 18:09:53 +01:00
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);
2024-02-17 01:20:20 +01:00
2024-02-18 18:09:53 +01:00
Result GetDiskInfo(const char* disk_path, DiskInfo* _info);
Result FreeDiskInfo(DiskInfo* info);