xref: /haiku/src/add-ons/kernel/file_systems/ext2/NoJournal.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2001-2010, Haiku Inc. All rights reserved.
3  * This file may be used under the terms of the MIT License.
4  *
5  * Authors:
6  *		Janito V. Ferreira Filho
7  */
8 #ifndef NOJOURNAL_H
9 #define NOJOURNAL_H
10 
11 
12 #include "Journal.h"
13 
14 
15 class NoJournal : public Journal {
16 public:
17 						NoJournal(Volume* volume);
18 						~NoJournal();
19 
20 			status_t	InitCheck();
21 			status_t	Recover();
22 			status_t	StartLog();
23 
24 			status_t	Lock(Transaction* owner, bool separateSubTransactions);
25 			status_t	Unlock(Transaction* owner, bool success);
26 
27 private:
28 			status_t	_WriteTransactionToLog();
29 
30 	static	void		_TransactionWritten(int32 transactionID,
31 							int32 event, void* param);
32 };
33 
34 #endif	// NOJOURNAL_H
35