X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FFilesystems%2FExt2%2Fwrite.c;h=5a7cfc023e1a4fdb67b927507a40d704ef461613;hb=de37bdfbcd4814c20babda4a7198736bf0effd3e;hp=ba8b61ceac9a8cb3559552ed16ab1563576ce821;hpb=923a9dc473851ec2bb1c94021bbf139724e7e8a5;p=tpg%2Facess2.git diff --git a/Modules/Filesystems/Ext2/write.c b/Modules/Filesystems/Ext2/write.c index ba8b61ce..5a7cfc02 100644 --- a/Modules/Filesystems/Ext2/write.c +++ b/Modules/Filesystems/Ext2/write.c @@ -90,7 +90,7 @@ Uint64 Ext2_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer) base = Ext2_int_GetBlockAddr(disk, inode.i_block, allocSize/disk->BlockSize-1); addBlocks: - Warning("[EXT2 ] File extending is untested"); + Log_Notice("EXT2", "File extending is untested"); // Allocate blocks and copy data to them retLen = Length - (allocSize-Offset); @@ -166,7 +166,7 @@ Uint32 Ext2_int_AllocateBlock(tExt2_Disk *Disk, Uint32 PrevBlock) } // Fast Check - if( bitmap[j/32] == -1 ) { + if( bitmap[j/32] == 0xFFFFFFFF ) { j = (j + 31) & ~31; continue; } @@ -201,7 +201,7 @@ Uint32 Ext2_int_AllocateBlock(tExt2_Disk *Disk, Uint32 PrevBlock) else { checkAll: - Warning("[EXT2 ] TODO - Implement using blocks outside the current block group"); + Log_Warning("EXT2", "TODO - Implement using blocks outside the current block group"); return 0; }