sofs19  0.1
FUSE based file system
bin_dal.h
Go to the documentation of this file.
1 
6 #ifndef __SOFS19_BIN_DAL__
7 #define __SOFS19_BIN_DAL__
8 
9 #include <inttypes.h>
10 
11 #include "superblock.h"
12 #include "inode.h"
13 
14 namespace sofs19
15 {
16  void binOpenSuperBlock();
17 
18  void binCloseSuperBlock();
19 
20  void binSaveSuperBlock();
21 
22  SOSuperBlock *binGetSuperBlockPointer();
23 
24  /* ***************************************** */
25 
26  void binOpenInodeTable();
27 
28  void binCloseInodeTable();
29 
30  int binOpenInode(uint32_t in);
31 
32  SOInode *binGetInodePointer(int ih);
33 
34  void binSaveInode(int ih);
35 
36  void binCloseInode(int ih);
37 
38  uint32_t binGetInodeNumber(int ih);
39 
40  /* ***************************************** */
41 
42  bool binCheckInodeAccess(int ih, int access);
43 
44  /* ***************************************** */
45 
46  void binReadDataBlock(uint32_t bn, void *buf);
47 
48  void binWriteDataBlock(uint32_t bn, void *buf);
49 };
50 
51 
52 #endif /* __SOFS19_BIN_DAL__ */
superblock.h
Definition of the superblock data type.
inode.h
Definition of the inode data type.