Supporting formatting functions.
More...
|
void | soComputeStructure (uint32_t ntotal, uint32_t &itotal, uint32_t &nbref) |
| computes the structural division of the disk More...
|
|
void | soFillSuperBlock (const char *name, uint32_t ntotal, uint32_t itotal, uint32_t nbref) |
| Fill in the fields of the superblock. More...
|
|
void | soFillInodeTable (uint32_t itotal, bool set_date=true) |
| Fill in the blocks of the inode table. More...
|
|
void | soFillRootDir (uint32_t itotal) |
| Fill in the root directory. More...
|
|
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. More...
|
|
void | soResetFreeDataBlocks (uint32_t ntotal, uint32_t itotal, uint32_t nbref) |
| Fill with zeros the free data blocks of a newly-formatted disk. More...
|
|
Supporting formatting functions.
◆ soComputeStructure()
void sofs19::soComputeStructure |
( |
uint32_t |
ntotal, |
|
|
uint32_t & |
itotal, |
|
|
uint32_t & |
nbref |
|
) |
| |
computes the structural division of the disk
- Parameters
-
[in] | ntotal | Total number of blocks of the disk |
[in,out] | itotal | Total number of inodes |
[out] | nbref | Number of reference data blocks in a newly-formatted disk |
◆ soFillSuperBlock()
void sofs19::soFillSuperBlock |
( |
const char * |
name, |
|
|
uint32_t |
ntotal, |
|
|
uint32_t |
itotal, |
|
|
uint32_t |
nbref |
|
) |
| |
Fill in the fields of the superblock.
- Parameters
-
[in] | name | volume name |
[in] | ntotal | the total number of blocks in the device |
[in] | itotal | the total number of inodes |
[in] | nbref | Number of reference data blocks in a newly-formatted disk |
◆ soFillInodeTable()
void sofs19::soFillInodeTable |
( |
uint32_t |
itotal, |
|
|
bool |
set_date = true |
|
) |
| |
Fill in the blocks of the inode table.
- Parameters
-
[in] | itotal | the total number of inodes |
[in] | set_date | if true current date is set; otherwise date is put at zero |
◆ soFillRootDir()
void sofs19::soFillRootDir |
( |
uint32_t |
itotal | ) |
|
Fill in the root directory.
- Parameters
-
[in] | itotal | the total number of inodes |
◆ soFillReferenceDataBlocks()
void sofs19::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.
- Parameters
-
[in] | ntotal | the total number of blocks in the device |
[in] | itotal | the total number of inodes |
[in] | nbref | Number of reference data blocks in a newly-formatted disk |
◆ soResetFreeDataBlocks()
void sofs19::soResetFreeDataBlocks |
( |
uint32_t |
ntotal, |
|
|
uint32_t |
itotal, |
|
|
uint32_t |
nbref |
|
) |
| |
Fill with zeros the free data blocks of a newly-formatted disk.
- Parameters
-
[in] | ntotal | the total number of blocks in the device |
[in] | itotal | the total number of inodes |
[in] | nbref | Number of reference data blocks in a newly-formatted disk |