Usermode/libaxwin4 - Handle demarshal failure
[tpg/acess2.git] / KernelLand / Modules / Storage / LVM / lvm_int.h
index 36f2eb2..a2d1f5d 100644 (file)
@@ -5,4 +5,61 @@
  * lvm_int.h
  * - Internal definitions
  */
+#ifndef _LVM_LVM_INT_H_
+#define _LVM_LVM_INT_H_
+
+#include "include/lvm.h"
+#include "lvm.h"
+#include <vfs.h>
+#include <iocache.h>
+
+typedef struct sLVM_SubVolume  tLVM_SubVolume;
+
+enum eLVM_BackType
+{
+       LVM_BACKING_VFS,
+       LVM_BACKING_PTRS
+};
+
+struct sLVM_Vol
+{
+       tLVM_Vol        *Next;
+       
+       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[];
+};
+
+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;
+extern tVFS_NodeType   gLVM_VolNodeType;
+
+extern tLVM_Vol        *gpLVM_FirstVolume;
+extern tLVM_Vol        *gpLVM_LastVolume;
+
+#endif
 

UCC git Repository :: git.ucc.asn.au