Skip to content
Snippets Groups Projects
Commit f30d0af6 authored by h2-addad's avatar h2-addad
Browse files

Update

parent e9a0ca4d
No related branches found
No related tags found
No related merge requests found
#ifndef FILESYS_FILESYS_H
#define FILESYS_FILESYS_H
#include <stdbool.h>
#include "filesys/off_t.h"
/* Sectors of system file inodes. */
#define FREE_MAP_SECTOR 0 /* Free map file inode sector. */
#define ROOT_DIR_SECTOR 1 /* Root directory file inode sector. */
/* Block device that contains the file system. */
struct block *fs_device;
void filesys_init (bool format);
void filesys_done (void);
bool filesys_create (const char *name, off_t initial_size);
struct file *filesys_open (const char *name);
bool filesys_remove (const char *name);
#endif /* filesys/filesys.h */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment