git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/RAMDisk - a bit more work
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Storage
/
LVM
/
main.c
diff --git
a/KernelLand/Modules/Storage/LVM/main.c
b/KernelLand/Modules/Storage/LVM/main.c
index
39ce9a9
..
d6845e1
100644
(file)
--- a/
KernelLand/Modules/Storage/LVM/main.c
+++ b/
KernelLand/Modules/Storage/LVM/main.c
@@
-47,7
+47,7
@@
tVFS_NodeType gLVM_SubVolNodeType = {
};
tDevFS_Driver gLVM_DevFS = {
NULL, "LVM",
};
tDevFS_Driver gLVM_DevFS = {
NULL, "LVM",
- {.Flags = VFS_FFLAG_DIRECTORY, .Type = &gLVM_RootNodeType}
+ {.Flags = VFS_FFLAG_DIRECTORY, .Type = &gLVM_RootNodeType
, .Size = -1
}
};
tLVM_Vol *gpLVM_FirstVolume;
};
tLVM_Vol *gpLVM_FirstVolume;
@@
-159,8
+159,13
@@
size_t LVM_SubVol_Read(tVFS_Node *Node, off_t Offset, size_t Length, void *Buffe
if( Offset + Length > byte_size )
Length = byte_size - Offset;
if( Offset + Length > byte_size )
Length = byte_size - Offset;
- Offset += sv->FirstBlock * sv->Vol->BlockSize;
+ LOG("Reading (0x%llx+0x%llx)+0x%x to %p",
+ (Uint64)(sv->FirstBlock * sv->Vol->BlockSize), Offset,
+ Length, Buffer
+ );
+ Offset += sv->FirstBlock * sv->Vol->BlockSize;
+
return DrvUtil_ReadBlock(
Offset, Length, Buffer,
LVM_int_DrvUtil_ReadBlock, sv->Vol->BlockSize, sv->Vol
return DrvUtil_ReadBlock(
Offset, Length, Buffer,
LVM_int_DrvUtil_ReadBlock, sv->Vol->BlockSize, sv->Vol
UCC
git Repository :: git.ucc.asn.au