vfs: add FILE_NAME_MAX_LEN

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-06 19:48:09 +02:00
commit f9a94f76dc
2 changed files with 6 additions and 4 deletions

View file

@ -8,6 +8,8 @@
#include <lib/rwlock.h>
#include <lib/list.h>
#define FILE_NAME_MAX_LEN 255
#define S_IFMT 0xF000
#define S_IFREG 0x8000
#define S_IFDIR 0x4000
@ -30,7 +32,7 @@
#define FS_RDONLY 0x00000001
struct fs_driver {
char name[256];
char name[FILE_NAME_MAX_LEN + 1];
int (*init)(int flags, inode_t *inode, fs_t **out);
int (*deinit)(fs_t *fs);
};