Split vdisk to vdisk_raw and vdisk_qcow2

vdisk_raw got existing functionality, no new features. Qcow2 support is
yet to be implemented. Miniz was imported with that in mind.
This commit is contained in:
2023-01-09 02:06:52 +00:00
parent e76dea6bf1
commit 887b904904
21 changed files with 4661 additions and 109 deletions
+9 -3
View File
@@ -13,9 +13,15 @@
#include <inttypes.h>
#include "umka.h"
void*
struct vdisk {
diskfunc_t diskfunc;
uint32_t sect_size;
uint64_t sect_cnt;
unsigned cache_size;
int adjust_cache_size;
};
struct vdisk*
vdisk_init(const char *fname, int adjust_cache_size, size_t cache_size);
extern diskfunc_t vdisk_functions;
#endif // VDISK_H_INCLUDED