umka/vdisk.h
Ivan Baravy 887b904904 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.
2023-01-09 02:06:52 +00:00

28 lines
545 B
C

/*
SPDX-License-Identifier: GPL-2.0-or-later
UMKa - User-Mode KolibriOS developer tools
vdisk - virtual disk
Copyright (C) 2020-2022 Ivan Baravy <dunkaist@gmail.com>
*/
#ifndef VDISK_H_INCLUDED
#define VDISK_H_INCLUDED
#include <inttypes.h>
#include "umka.h"
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);
#endif // VDISK_H_INCLUDED