X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FStorage%2FLVM%2Flvm.h;h=e406a9bbc1034eda1eb3b3262e439d9164773c4b;hb=fc7371134c3b43b4382655f3b5447749da12b306;hp=0d0a252922f472622ab7394c2ce1b70ef3ec9aba;hpb=1d65dd9606edfcaeef8dfff3724ef6c49180b131;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Storage/LVM/lvm.h b/KernelLand/Modules/Storage/LVM/lvm.h index 0d0a2529..e406a9bb 100644 --- a/KernelLand/Modules/Storage/LVM/lvm.h +++ b/KernelLand/Modules/Storage/LVM/lvm.h @@ -12,6 +12,16 @@ // === TYPES === typedef struct sLVM_Vol tLVM_Vol; +typedef struct sLVM_Format tLVM_Format; + +// === STRUCTURES === +struct sLVM_Format +{ + tLVM_Format *Next; + const char *Name; + int (*CountSubvolumes)(tLVM_Vol *Volume, void *FirstBlockData); + void (*PopulateSubvolumes)(tLVM_Vol *Volume, void *FirstBlockData); +}; // === FUNCTIONS === extern size_t LVM_int_ReadVolume(tLVM_Vol *Volume, Uint64 BlockNum, size_t BlockCount, void *Dest); @@ -20,5 +30,8 @@ extern size_t LVM_int_WriteVolume(tLVM_Vol *Volume, Uint64 BlockNum, size_t Bloc // --- Subvolume Management --- extern void LVM_int_SetSubvolume_Anon(tLVM_Vol *Volume, int Index, Uint64 FirstBlock, Uint64 LastBlock); +// --- Global Fromats --- +extern tLVM_Format gLVM_MBRType; + #endif