1#ifndef FILESYS_FREE_MAP_H
2#define FILESYS_FREE_MAP_H
uint32_t block_sector_t
Index of a block device sector.
void free_map_release(block_sector_t, size_t)
filesys/free-map.h
void free_map_init(void)
Initializes the free map.
bool free_map_allocate(size_t, block_sector_t *)
Allocates CNT consecutive sectors from the free map and stores the first into *SECTORP.
void free_map_open(void)
Opens the free map file and reads it from disk.
void free_map_create(void)
Creates a new free map file on disk and writes the free map to it.
void free_map_close(void)
Writes the free map to disk and closes the free map file.