BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / add-ons / disk_systems / bfs / BFSAddOn.h
blob252c0dafbebd00385c057456ff11be7fded7f826
1 /*
2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _BFS_ADD_ON_H
6 #define _BFS_ADD_ON_H
8 #include <DiskSystemAddOn.h>
11 class BFSAddOn : public BDiskSystemAddOn {
12 public:
13 BFSAddOn();
14 virtual ~BFSAddOn();
16 virtual status_t CreatePartitionHandle(
17 BMutablePartition* partition,
18 BPartitionHandle** handle);
19 virtual status_t GetParameterEditor(
20 B_PARAMETER_EDITOR_TYPE type,
21 BPartitionParameterEditor** editor);
23 virtual bool CanInitialize(
24 const BMutablePartition* partition);
25 virtual status_t ValidateInitialize(
26 const BMutablePartition* partition,
27 BString* name, const char* parameters);
28 virtual status_t Initialize(BMutablePartition* partition,
29 const char* name, const char* parameters,
30 BPartitionHandle** handle);
34 class BFSPartitionHandle : public BPartitionHandle {
35 public:
36 BFSPartitionHandle(
37 BMutablePartition* partition);
38 ~BFSPartitionHandle();
40 status_t Init();
42 virtual uint32 SupportedOperations(uint32 mask);
44 virtual status_t Repair(bool checkOnly);
48 #endif // _BFS_ADD_ON_H