FreeNOS
|
The LinnCreate program can create a new LinnFS filesystem. More...
Data Structures | |
class | LinnCreate |
Class for creating new Linnenbank FileSystems. More... | |
Macros | |
#define | LINN_CREATE_BLOCK_SIZE 2048 |
Default block size. More... | |
#define | LINN_CREATE_BLOCK_NUM 8192 |
Default number of blocks to allocate. More... | |
#define | LINN_CREATE_BLOCKS_PER_GROUP 8192 |
Default number of data blocks per group descriptor. More... | |
#define | LINN_CREATE_INODE_NUM 1024 |
Default number of inodes to allocate. More... | |
#define | LINN_CREATE_INODES_PER_GROUP 1024 |
Default number of inodes per group descriptor. More... | |
#define | BLOCKPTR(type, nr) (type *)(blocks + (super->blockSize * (nr))) |
Returns a pointer to the correct in-memory block. More... | |
#define | BLOCKS(sb, count) |
Retrieve a given number of free contiguous blocks. More... | |
#define | BLOCK(sb) BLOCKS(sb, (ulong)1) |
Retrieve one free block. More... | |
#define | FILETYPE_FROM_ST(st) |
Convert from a (host system's) POSIX struct stat into a FileType. More... | |
#define | FILEMODE_FROM_ST(st) (FileSystem::FileMode)((st)->st_mode & 0777) |
Converts an (host system's) POSIX struct st into a FileMode. More... | |
The LinnCreate program can create a new LinnFS filesystem.
Retrieve one free block.
sb | LinnSuperBlock pointer. |
Definition at line 91 of file LinnCreate.h.
Returns a pointer to the correct in-memory block.
type | Data type to return a pointer for. |
nr | Block number. |
Definition at line 62 of file LinnCreate.h.
#define BLOCKS | ( | sb, | |
count | |||
) |
Retrieve a given number of free contiguous blocks.
sb | LinnSuperBlock pointer. |
count | Number of blocks |
Definition at line 72 of file LinnCreate.h.
#define FILEMODE_FROM_ST | ( | st | ) | (FileSystem::FileMode)((st)->st_mode & 0777) |
Converts an (host system's) POSIX struct st into a FileMode.
st | struct st pointer. |
Definition at line 126 of file LinnCreate.h.
#define FILETYPE_FROM_ST | ( | st | ) |
Convert from a (host system's) POSIX struct stat into a FileType.
st | struct stat pointer. |
Definition at line 101 of file LinnCreate.h.
#define LINN_CREATE_BLOCK_NUM 8192 |
Default number of blocks to allocate.
Definition at line 43 of file LinnCreate.h.
#define LINN_CREATE_BLOCK_SIZE 2048 |
Default block size.
Definition at line 40 of file LinnCreate.h.
#define LINN_CREATE_BLOCKS_PER_GROUP 8192 |
Default number of data blocks per group descriptor.
Definition at line 46 of file LinnCreate.h.
#define LINN_CREATE_INODE_NUM 1024 |
Default number of inodes to allocate.
Definition at line 49 of file LinnCreate.h.
#define LINN_CREATE_INODES_PER_GROUP 1024 |
Default number of inodes per group descriptor.
Definition at line 52 of file LinnCreate.h.