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
Kernel - Added 'Flags' param to VFS Read/Write/FindDir
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Storage
/
LVM
/
mbr.c
diff --git
a/KernelLand/Modules/Storage/LVM/mbr.c
b/KernelLand/Modules/Storage/LVM/mbr.c
index
169f6f3
..
67fdbce
100644
(file)
--- a/
KernelLand/Modules/Storage/LVM/mbr.c
+++ b/
KernelLand/Modules/Storage/LVM/mbr.c
@@
-16,6
+16,11
@@
void LVM_MBR_PopulateSubvolumes(tLVM_Vol *Volume, void *FirstSector);
Uint64 LVM_MBR_int_ReadExt(tLVM_Vol *Volume, Uint64 Addr, Uint64 *Base, Uint64 *Length);
// === GLOBALS ===
Uint64 LVM_MBR_int_ReadExt(tLVM_Vol *Volume, Uint64 Addr, Uint64 *Base, Uint64 *Length);
// === GLOBALS ===
+tLVM_Format gLVM_MBRType = {
+ .Name = "MBR",
+ .CountSubvolumes = LVM_MBR_CountSubvolumes,
+ .PopulateSubvolumes = LVM_MBR_PopulateSubvolumes
+};
// === CODE ===
/**
// === CODE ===
/**
@@
-71,7
+76,8
@@
int LVM_MBR_CountSubvolumes(tLVM_Vol *Volume, void *FirstSector)
while(extendedLBA != 0)
{
extendedLBA = LVM_MBR_int_ReadExt(Volume, extendedLBA, &base, &len);
while(extendedLBA != 0)
{
extendedLBA = LVM_MBR_int_ReadExt(Volume, extendedLBA, &base, &len);
- if( extendedLBA == -1 ) break;
+ if( extendedLBA == (Uint64)-1 )
+ break;
numPartitions ++;
}
LOG("numPartitions = %i", numPartitions);
numPartitions ++;
}
LOG("numPartitions = %i", numPartitions);
@@
-122,7
+128,8
@@
void LVM_MBR_PopulateSubvolumes(tLVM_Vol *Volume, void *FirstSector)
while(extendedLBA != 0)
{
extendedLBA = LVM_MBR_int_ReadExt(Volume, extendedLBA, &base, &len);
while(extendedLBA != 0)
{
extendedLBA = LVM_MBR_int_ReadExt(Volume, extendedLBA, &base, &len);
- if(extendedLBA == -1) break;
+ if(extendedLBA == (Uint64)-1)
+ break;
LVM_int_SetSubvolume_Anon( Volume, j, base, len );
j ++ ;
}
LVM_int_SetSubvolume_Anon( Volume, j, base, len );
j ++ ;
}
UCC
git Repository :: git.ucc.asn.au