vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / kernel / file_systems / ext2 / RevokeManager.h
blob796f7fe9478fa9c42c453b21d4e69e6283c1040b
1 /*
2 * Copyright 2001-2010, Haiku Inc. All rights reserved.
3 * This file may be used under the terms of the MIT License.
5 * Authors:
6 * Janito V. Ferreira Filho
7 */
8 #ifndef REVOKEMANAGER_H
9 #define REVOKEMANAGER_H
11 #include "Journal.h"
14 struct JournalRevokeHeader;
16 class RevokeManager {
17 public:
18 RevokeManager();
19 virtual ~RevokeManager() = 0;
21 virtual status_t Insert(uint32 block, uint32 commitID) = 0;
22 virtual status_t Remove(uint32 block) = 0;
23 virtual bool Lookup(uint32 block, uint32 commitID) = 0;
25 uint32 NumRevokes() { return fRevokeCount; }
27 status_t ScanRevokeBlock(JournalRevokeHeader* revokeBlock,
28 uint32 commitID);
30 protected:
31 uint32 fRevokeCount;
34 #endif // REVOKEMANAGER_H