* vfs/fs/root.c
* - Root Filesystem Driver
*
- * TODO: Restrict to directories only
+ * TODO: Restrict to directories+symlinks only
*/
#define DEBUG 0
#include <acess.h>
// === CONSTANTS ===
#define MAX_FILES 64
-#define MAX_FILE_SIZE 1024
+#define MAX_FILE_SIZE 10*1024*1024
// === PROTOTYPES ===
tVFS_Node *Root_InitDevice(const char *Device, const char **Options);
if(Offset + Length > MAX_FILE_SIZE)
{
Length = MAX_FILE_SIZE - Offset;
+ ASSERTC(Length, <=, MAX_FILE_SIZE);
}
- LOG("Buffer = '%.*s'", (int)Length, Buffer);
+ LOG("Length = %x", Length);
// Check if buffer needs to be expanded
if(Offset + Length > Node->Size)