Changeset 809 for Whitix/branches/fs/fs/ext3/inode.c
- Timestamp:
- 07/15/08 10:05:10 (4 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/fs/fs/ext3/inode.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/fs/ext3/inode.c
r806 r809 221 221 while (1) 222 222 { 223 if ((char*)entry >= BYTES_PER_SECTOR(vNode->superBlock)+buffer->data)223 if ((char*)entry >= (char*)(BYTES_PER_SECTOR(vNode->superBlock)+buffer->data)) 224 224 { 225 225 KePrint("New block?\n"); … … 347 347 int Ext3BlockMap(struct VNode* vNode, DWORD block, int flags) 348 348 { 349 struct Buffer* buff;350 349 struct JournalHandle* handle=JournalCurrHandle(); 351 350 int ret=0; … … 365 364 } 366 365 #endif 367 368 #if 0369 #endif370 366 } 371 367 … … 458 454 } 459 455 456 /******************************************************************************* 457 * 458 * FUNCTION: Ext3MkDir 459 * 460 * DESCRIPTION: Make a directory in dir with name 'name'. 461 * 462 * PARAMETERS: retVal - new vNode that points to the new directory. 463 * dir - the directory to create the new directory in 464 * name - name of the new directory 465 * nameLength - length in bytes of the new name. 466 * 467 * RETURNS: Various errors. 468 * 469 ******************************************************************************/ 470 460 471 int Ext3MkDir(struct VNode** retVal,struct VNode* dir,char* name,int nameLength) 461 472 { … … 466 477 467 478 handle=JournalStart(EXT3_JOURNAL(dir), EXT3_DATA_TRANS); 479 480 if (!handle) 481 return -EIO; 468 482 469 483 vNode=Ext3CreateINode(handle, dir, 1);
