Changeset 752 for Whitix/branches

Show
Ignore:
Timestamp:
07/08/08 15:44:19 (5 months ago)
Author:
mwhitworth
Message:

Add journal fields, add start of DirtyVNode implementation for ext3, misc cleanup.

Location:
Whitix/branches/fs/fs
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/fs/fs/ext3/ext3.h

    r747 r752  
    2020#define EXT3_H 
    2121 
     22#include <fs/journal.h> 
    2223#include <fs/vfs.h> 
    2324#include <init.h> 
     
    9495        DWORD firstDataBlock, blocksPerGrp; 
    9596        struct Buffer** descs; 
     97        struct Journal* journal; 
    9698}; 
    9799 
     
    177179#define INODES_PER_BLOCK(s) (BYTES_PER_SECTOR(s)/sizeof(struct Ext3INode)) 
    178180#define EXT3_SUPERINFO(s) ((struct Ext3SbInfo*)((s)->privData)) 
     181#define EXT3_JOURNAL(vNode) (EXT3_SUPERINFO((vNode)->superBlock)->journal) 
    179182 
    180183#define EXT3_SB_MAGIC   0xEF53 
  • Whitix/branches/fs/fs/ext3/inode.c

    r747 r752  
    8383int Ext3DirtyVNode(struct VNode* vNode) 
    8484{ 
    85         KePrint("Ext3DirtyVNode\n"); 
    86         cli(); hlt(); 
     85        struct JournalHandle* handle; 
     86 
     87        handle=JournalStart(EXT3_JOURNAL(vNode), 2); 
     88 
    8789        return 0; 
    8890} 
  • Whitix/branches/fs/fs/ext3/super.c

    r747 r752  
    5555 
    5656        KePrint("EXT3: Found journal at %#X: size = %#X\n", iNo, journal->size); 
     57 
     58        /* Let the journal layer handle the replaying. */ 
     59        EXT3_SUPERINFO(superBlock)->journal=JournalCreate(journal); 
    5760 
    5861        return 0; 
  • Whitix/branches/fs/fs/vfs/bcache.c

    r696 r752  
    446446                ThrSchedule(); 
    447447 
    448                 /* Really have to go through everything? */ 
    449448                ListForEachEntry(sDevice,&sDeviceList,list) 
    450449                        BlockSyncDevice(sDevice);