FreeNOS
Data Structures | Macros
LinnCreate.h File Reference
#include <BitArray.h>
#include <List.h>
#include <String.h>
#include <FileSystem.h>
#include "LinnSuperBlock.h"
#include "LinnInode.h"

Go to the source code of this file.

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...