group/pintos/src/filesys/filesys.c
/* Initializes the file system module.
   If FORMAT is true, reformats the file system. */
Initializes the file system module.
If FORMAT is true, reformats the file system.
Initializes the file system module . If FORMAT is true reformats the file system .
void
filesys_init (bool format)
{
  fs_device = block_get_role (BLOCK_FILESYS);
  if (fs_device == NULL)
    PANIC ("No file system device found, can't initialize file system.");
  inode_init ();
  free_map_init ();
  if (format)
    do_format ();
  free_map_open ();
}
void filesys_init ( bool format ) { fs_device = block_get_role ( BLOCK_FILESYS ) ; if ( fs_device == NULL ) PANIC ( " " ) ; inode_init ( ) ; free_map_init ( ) ; if ( format ) do_format ( ) ; free_map_open ( ) ; }
Initializes the file system module.
Initializes the file system module .