matos/core/fs.c

28 lines
401 B
C
Raw Normal View History

2024-05-23 00:21:41 +02:00
#include "fs.h"
2024-07-19 14:13:09 +02:00
#include "list.h"
#include "stddef.h"
// List of all fs supported (e.g. EXT4, FAT32 ...)
struct file_system *fsList = NULL;
int fsRegister(struct file_system *fs){
list_add_tail(fsList, fs);
return 0;
}
2024-05-23 00:21:41 +02:00
int fsInodeUnref(struct inode *inode)
{
2024-07-19 14:13:09 +02:00
//TODO
2024-05-23 00:21:41 +02:00
(void)inode;
return 0;
};
int fsInodeRef(struct inode *inode)
{
2024-07-19 14:13:09 +02:00
//TODO
2024-05-23 00:21:41 +02:00
(void)inode;
return 0;
};