X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FStorage%2FLVM%2Flvm_int.h;h=7f528d90b376997abb61f2f639ab2a4a34798531;hb=1d65dd9606edfcaeef8dfff3724ef6c49180b131;hp=36f2eb2ca9869e722ebfc5af43a1805b3310dfa2;hpb=3d9c87713549b06c4505b15f37ef8e9785d0ab0d;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Storage/LVM/lvm_int.h b/KernelLand/Modules/Storage/LVM/lvm_int.h index 36f2eb2c..7f528d90 100644 --- a/KernelLand/Modules/Storage/LVM/lvm_int.h +++ b/KernelLand/Modules/Storage/LVM/lvm_int.h @@ -5,4 +5,43 @@ * lvm_int.h * - Internal definitions */ +#ifndef _LVM_LVM_INT_H_ +#define _LVM_LVM_INT_H_ + +#include "lvm.h" +#include + +typedef struct sLVM_SubVolume tLVM_SubVolume; + +struct sLVM_Vol +{ + tLVM_Vol *Next; + + tVFS_Node Node; + + int BackingDescriptor; + size_t BlockSize; + + int nSubVolumes; + tLVM_SubVolume **SubVolumes; + + char Name[]; +}; + +struct sLVM_SubVolume +{ + tLVM_Vol *Vol; + + tVFS_Node Node; + + // Note: Only for a simple volume + Uint64 FirstBlock; + Uint64 BlockCount; + + char Name[]; +}; + +extern tVFS_NodeType gLVM_SubVolNodeType; + +#endif