Changeset 755 for Whitix/branches
- Timestamp:
- 07/08/08 18:16:14 (5 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/fs/include/fs/journal.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/include/fs/journal.h
r750 r755 27 27 #include <preempt.h> 28 28 #include <task.h> 29 #include <timer.h> 29 30 #include <typedefs.h> 30 31 31 32 /* In-memory structures. */ 33 34 #define JTRANS_RUNNING 1 35 36 struct JournalHead 37 { 38 struct Buffer* buffer; 39 }; 40 41 struct JournalTrans 42 { 43 struct Journal* journal; 44 int state, transId, outstandingBlocks; 45 struct Timer* expireTimer; 46 int updates, handleCount; 47 }; 32 48 33 49 /* JournalHandle denotes one atomic update to the filesystem. */ … … 35 51 { 36 52 int refs, numBlocks; 37 }; 38 39 struct JournalTrans 40 { 53 struct JournalTrans* transaction; 41 54 }; 42 55 … … 46 59 int version; 47 60 DWORD maxLength, sectorSize, maxTransactionBuffers; 61 DWORD transSequence; 48 62 struct JournalTrans* currTransaction; 49 63 }; … … 74 88 75 89 /* Prototypes */ 90 91 /* journal.c */ 76 92 struct Journal* JournalCreate(struct VNode* vNode); 93 struct JournalHandle* JournalStart(struct Journal* journal, int numBlocks); 94 struct JournalHead* JournalAddHeader(struct Buffer* buffer); 95 96 /* transaction.c */ 97 int JournalGetWriteAccess(struct JournalHandle* handle, struct Buffer* buffer); 77 98 78 99 /* Defines */