#include <ubixfs/ubixfs.h>#include <vfs/file.h>#include <vfs/mount.h>#include <ubixos/types.h>#include <lib/kmalloc.h>#include <lib/kprintf.h>#include <lib/string.h>Go to the source code of this file.
Functions | |
| int | addDirEntry (struct directoryEntry *dir, fileDescriptor *fd) |
| dirList_t | ubixFSLoadDir (char *data) |
| int | ubixFSmkDir (char *directory, fileDescriptor *fd) |
Variables | |
| static dirList_t | dirList = 0x0 |
| int addDirEntry | ( | struct directoryEntry * | dir, | |
| fileDescriptor * | fd | |||
| ) |
Definition at line 66 of file directory.c.
References kmalloc(), kprintf(), memcpy(), fileDescriptor::offset, readUbixFS(), fileDescriptor::size, writeUbixFS(), and x1000.
Referenced by ubixFSmkDir().
| dirList_t ubixFSLoadDir | ( | char * | data | ) |
Definition at line 41 of file directory.c.
References directoryList::dirCache, dirList, directoryList::dirName, kmalloc(), directoryList::next, directoryList::prev, sprintf(), and strcmp().
| int ubixFSmkDir | ( | char * | directory, | |
| fileDescriptor * | fd | |||
| ) |
Definition at line 94 of file directory.c.
References addDirEntry(), directoryEntry::attributes, ubixFSInfo::blockAllocationTable, blockSize, directoryEntry::fileName, getFreeBlocks(), kfree(), kmalloc(), directoryEntry::permissions, blockAllocationTableEntry::realSector, directoryEntry::size, sprintf(), directoryEntry::startCluster, typeDirectory, and UBIXFS_BLOCKSIZE_BYTES.
Referenced by ubixfs_init().
Definition at line 38 of file directory.c.
Referenced by ubixfs_cacheFind(), ubixfs_findName(), and ubixFSLoadDir().
1.4.7