#include <stdio.h>
#include <stdlib.h>
#include <libblock.h>
#include <mem.h>
#include <devmap.h>
#include <byteorder.h>
#include <sys/types.h>
#include <sys/typefmt.h>
#include <inttypes.h>
#include <errno.h>
#include "fat.h"
Go to the source code of this file.
Data Structures | |
| struct | fat_cfg |
| Configurable file-system parameters. More... | |
| struct | fat_params |
| Derived file-system parameters. More... | |
Defines | |
| #define | div_round_up(a, b) (((a) + (b) - 1) / (b)) |
| Divide and round up. | |
| #define | NAME "mkfat" |
Typedefs | |
| typedef fat_cfg | fat_cfg_t |
| Configurable file-system parameters. | |
| typedef fat_params | fat_params_t |
| Derived file-system parameters. | |
Enumerations | |
| enum | { , media_descriptor = 0xF8 } |
| Predefined file-system parameters. More... | |
Functions | |
| static int | fat_blocks_write (struct fat_params const *par, devmap_handle_t handle) |
| Create file system with the given parameters. | |
| static void | fat_bootsec_create (struct fat_params const *par, struct fat_bs *bs) |
| Construct boot sector with the given parameters. | |
| static int | fat_params_compute (struct fat_cfg const *cfg, struct fat_params *par) |
| Derive sizes of different filesystem structures. | |
| int | main (int argc, char **argv) |
| static void | syntax_print (void) |
Currently we can only create 16-bit FAT.
Definition in file mkfat.c.
1.4.7