sofs19  0.1
FUSE based file system
fileblocks.h
Go to the documentation of this file.
1 
12 #ifndef __SOFS19_FILEBLOCKS__
13 #define __SOFS19_FILEBLOCKS__
14 
15 #include <inttypes.h>
16 
17 namespace sofs19
18 {
19  /* *************************************************** */
20 
27  /* *************************************************** */
28 
43  uint32_t soGetFileBlock(int ih, uint32_t fbn);
44 
45  /* *************************************************** */
46 
62  uint32_t soAllocFileBlock(int ih, uint32_t fbn);
63 
64  /* *************************************************** */
65 
78  void soFreeFileBlocks(int ih, uint32_t ffbn);
79 
80  /* *************************************************** */
81 
101  void soReadFileBlock(int ih, uint32_t fbn, void *buf);
102 
103  /* *************************************************** */
104 
125  void soWriteFileBlock(int ih, uint32_t fbn, void *buf);
126 
127  /* *************************************************** */
128 
130  /* *************************************************** */
131 
132 };
133 
134 #endif /* __SOFS19_FILEBLOCKS__ */
sofs19::soFreeFileBlocks
void soFreeFileBlocks(int ih, uint32_t ffbn)
Free all file blocks from the given position on.
sofs19::soAllocFileBlock
uint32_t soAllocFileBlock(int ih, uint32_t fbn)
Associate a data block to the given file block position.
sofs19::soReadFileBlock
void soReadFileBlock(int ih, uint32_t fbn, void *buf)
Read a file block.
sofs19::soWriteFileBlock
void soWriteFileBlock(int ih, uint32_t fbn, void *buf)
Write a file block.
sofs19::soGetFileBlock
uint32_t soGetFileBlock(int ih, uint32_t fbn)
Get the data block number corresponding to the given file block.