sofs19  0.1
FUSE based file system
mksofs.h
Go to the documentation of this file.
1 
10 #ifndef __SOFS19_MKSOFS__
11 #define __SOFS19_MKSOFS__
12 
13 #include <inttypes.h>
14 
15 namespace sofs19
16 {
17 
24  /* ******************************************************************* */
25 
42  void soComputeStructure(uint32_t ntotal, uint32_t & itotal, uint32_t & nbref);
43 
44 
56  void soFillSuperBlock(const char *name, uint32_t ntotal, uint32_t itotal, uint32_t nbref);
57 
58 
72  void soFillInodeTable(uint32_t itotal, bool set_date = true);
73 
74 
88  void soFillRootDir(uint32_t itotal);
89 
90 
104  void soFillReferenceDataBlocks(uint32_t ntotal, uint32_t itotal, uint32_t nbref);
105 
106 
113  void soResetFreeDataBlocks(uint32_t ntotal, uint32_t itotal, uint32_t nbref);
114 
115  /* ***************************************** */
116 
117  /* ******************************************************************* */
118 
120  /* ******************************************************************* */
121 };
122 
123 #endif /* __SOFS19_MKSOFS__ */
sofs19::soFillRootDir
void soFillRootDir(uint32_t itotal)
Fill in the root directory.
sofs19::soFillSuperBlock
void soFillSuperBlock(const char *name, uint32_t ntotal, uint32_t itotal, uint32_t nbref)
Fill in the fields of the superblock.
sofs19::soResetFreeDataBlocks
void soResetFreeDataBlocks(uint32_t ntotal, uint32_t itotal, uint32_t nbref)
Fill with zeros the free data blocks of a newly-formatted disk.
sofs19::soFillReferenceDataBlocks
void soFillReferenceDataBlocks(uint32_t ntotal, uint32_t itotal, uint32_t nbref)
Fill in the data blocks containing references to free data blocks in a newly-formatted disk.
sofs19::soFillInodeTable
void soFillInodeTable(uint32_t itotal, bool set_date=true)
Fill in the blocks of the inode table.
sofs19::soComputeStructure
void soComputeStructure(uint32_t ntotal, uint32_t &itotal, uint32_t &nbref)
computes the structural division of the disk