Skip to content
Snippets Groups Projects
Select Git revision
  • 4e78ea442687af36addb5b5575a4a3d14e3220c3
  • master default protected
  • 0.19.X
  • discrete
  • 0.18.X
  • ignore_lambda_to_diff_errors
  • 0.17.X
  • authors-update
  • 0.16.X
  • 0.15.X
  • 0.14.X
  • debian
  • 0.13.X
  • 0.12.X
  • 0.11.X
  • 0.10.X
  • 0.9.X
  • 0.6.X
  • 0.7.X
  • 0.8.X
  • 0.19.1
  • 0.19.0
  • 0.19b2
  • 0.19b1
  • 0.19-branching
  • 0.18.2
  • 0.18.1
  • 0.18
  • 0.18rc2
  • 0.18rc1
  • 0.18rc
  • 0.17.1-1
  • 0.17.1
  • debian/0.17.0-4
  • debian/0.17.0-3
  • debian/0.17.0-1
  • 0.17
  • debian/0.17.0_b1+git14-g4e6829c-1
  • debian/0.17.0_b1-1
  • 0.17b1
40 results

tutorial.rst

Blame
  • filesys.h 591 B
    #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 */