X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FStorage%2FLVM%2Flvm_int.h;h=a2d1f5d7507d499d881a35d4e1a6168142dabb83;hb=13078002b01ee4f63eb2001d2ef479a2a006ea32;hp=7f528d90b376997abb61f2f639ab2a4a34798531;hpb=1d65dd9606edfcaeef8dfff3724ef6c49180b131;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Storage/LVM/lvm_int.h b/KernelLand/Modules/Storage/LVM/lvm_int.h index 7f528d90..a2d1f5d7 100644 --- a/KernelLand/Modules/Storage/LVM/lvm_int.h +++ b/KernelLand/Modules/Storage/LVM/lvm_int.h @@ -8,23 +8,37 @@ #ifndef _LVM_LVM_INT_H_ #define _LVM_LVM_INT_H_ +#include "include/lvm.h" #include "lvm.h" #include +#include typedef struct sLVM_SubVolume tLVM_SubVolume; +enum eLVM_BackType +{ + LVM_BACKING_VFS, + LVM_BACKING_PTRS +}; + struct sLVM_Vol { tLVM_Vol *Next; - tVFS_Node Node; - - int BackingDescriptor; + tVFS_Node DirNode; + tVFS_Node VolNode; + + void *Ptr; + const tLVM_VolType *Type; + size_t BlockSize; + Uint64 BlockCount; int nSubVolumes; tLVM_SubVolume **SubVolumes; + tIOCache *CacheHandle; + char Name[]; }; @@ -42,6 +56,10 @@ struct sLVM_SubVolume }; extern tVFS_NodeType gLVM_SubVolNodeType; +extern tVFS_NodeType gLVM_VolNodeType; + +extern tLVM_Vol *gpLVM_FirstVolume; +extern tLVM_Vol *gpLVM_LastVolume; #endif