vfs: check userland buffers before reading them.
[haiku.git] / src / system / boot / loader / file_systems / amiga_ffs / Volume.h
blob0a7828467b160dabef136dbf7c0c0dd8abda1a45
1 /*
2 ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the MIT License.
4 */
5 #ifndef VOLUME_H
6 #define VOLUME_H
9 #include "amiga_ffs.h"
11 #include <SupportDefs.h>
13 namespace boot {
14 class Partition;
18 namespace FFS {
20 class Directory;
22 class Volume {
23 public:
24 Volume(boot::Partition *partition);
25 ~Volume();
27 status_t InitCheck();
29 int Device() const { return fDevice; }
30 Directory *Root() { return fRoot; }
31 int32 Type() const { return fType; }
32 int32 BlockSize() const { return fRootNode.BlockSize(); }
34 protected:
35 int fDevice;
36 int32 fType;
37 RootBlock fRootNode;
38 Directory *fRoot;
41 } // namespace FFS
43 #endif /* VOLUME_H */