Show
Ignore:
Timestamp:
07/15/08 10:05:10 (4 months ago)
Author:
mwhitworth
Message:

Add comments, fix warnings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/fs/fs/ext3/inode.c

    r806 r809  
    221221        while (1) 
    222222        { 
    223                 if ((char*)entry >= BYTES_PER_SECTOR(vNode->superBlock)+buffer->data) 
     223                if ((char*)entry >= (char*)(BYTES_PER_SECTOR(vNode->superBlock)+buffer->data)) 
    224224                { 
    225225                        KePrint("New block?\n"); 
     
    347347int Ext3BlockMap(struct VNode* vNode, DWORD block, int flags) 
    348348{ 
    349         struct Buffer* buff; 
    350349        struct JournalHandle* handle=JournalCurrHandle(); 
    351350        int ret=0; 
     
    365364                } 
    366365#endif 
    367  
    368 #if 0 
    369 #endif 
    370366        } 
    371367         
     
    458454} 
    459455 
     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  
    460471int Ext3MkDir(struct VNode** retVal,struct VNode* dir,char* name,int nameLength) 
    461472{ 
     
    466477         
    467478        handle=JournalStart(EXT3_JOURNAL(dir), EXT3_DATA_TRANS); 
     479         
     480        if (!handle) 
     481                return -EIO; 
    468482         
    469483        vNode=Ext3CreateINode(handle, dir, 1);