Go to the documentation of this file.
29 #ifndef _UBIXFS_UBIXFS_H
30 #define _UBIXFS_UBIXFS_H
38 #define UBIXFS_BLOCKSIZE_BYTES blockSize*512
39 #define UBIXFS_ALIGN(size) (size + ((((size) % (UBIXFS_BLOCKSIZE_BYTES)) == 0)? 0 : ((UBIXFS_BLOCKSIZE_BYTES) - ((size) % (UBIXFS_BLOCKSIZE_BYTES)))))
41 #define UBIXDISKMAGIC ((uInt32)0x45)
42 #define MAXUBIXPARTITIONS 16
48 #define typeContainer 2
49 #define typeDirectory 4
struct directoryList * next
struct directoryList * dirList_t
int ubixFSmkDir(char *dir, fileDescriptor_t *fd)
void ubixFSUnlink(char *path, struct vfs_mountPoint *mp)
unsigned short int uInt16
int readUbixFS(fileDescriptor_t *fd, char *data, uInt32, long size)
struct directoryList * prev
struct ubixDiskLabel::ubixPartitions partitions[16]
int getFreeBlocks(int count, fileDescriptor_t *fd)
dirList_t ubixFSLoadDir(char *)
#define MAXUBIXPARTITIONS
int writeUbixFS(fileDescriptor_t *fd, char *data, long offset, long size)
int addDirEntry(struct directoryEntry *dir, fileDescriptor_t *fd)
int freeBlocks(int block, fileDescriptor_t *fd)
struct blockAllocationTableEntry * blockAllocationTable
void syncBat(struct vfs_mountPoint *mp)
struct cacheNode * dirCache
int writeFileByte(int ch, fileDescriptor_t *fd, long offset)