Added a user system

This commit is contained in:
2024-02-17 15:15:40 +01:00
parent f0dd2ca5fb
commit c1b3f3c262
5 changed files with 86 additions and 97 deletions

View File

@@ -9,10 +9,6 @@
#define BACKING_POOL_DIR "/var/lib/sandbox/backings"
#define MAX_BACKING_LENGTH 256
typedef struct {
DiskInfo disk_info;
} BackingInfo;
/// @brief Checks whether the given backing disk id is valid.
/// @param backing_id The backing disk id to check.
/// @return True if the backing disk id is valid, false otherwise.
@@ -45,13 +41,3 @@ Result remove_backing(const char* backing_id);
/// @param out_backings The pointer to the null-terminated array of backing disk ids. The caller is responsible for freeing the memory of the array and its elements.
/// @return The result of the operation.
Result list_backings(char*** out_backings, size_t* out_count);
/// @brief Gathers information about a backing disk.
/// @param backing_id The backing disk id.
/// @param out_info The information about the backing disk.
/// @return The result of the operation.
Result get_backing_info(const char* backing_id, BackingInfo* out_info);
/// @brief Frees the resources used by the given backing disk information.
/// @param info The backing disk information to free.
void free_backing_info(BackingInfo* info);