fatformat.h 515 B

12345678910111213141516
  1. /* Create a fresh FAT filesystem on a block device (floppy = FAT12 superfloppy,
  2. * IDE = MBR + single FAT16/32 partition). */
  3. #ifndef FATFORMAT_H
  4. #define FATFORMAT_H
  5. #include "blkdev.h"
  6. /* Format device d. Returns 0 on success, -1 on error. */
  7. int fat_format(blk_dev_t *d);
  8. /* Set while a destructive format owns the disks. Filesystem syscalls wait
  9. * for it instead of touching a half-written FAT; the owner is exempt. */
  10. extern volatile int format_busy;
  11. extern volatile unsigned int format_owner_pid;
  12. #endif