os_kernel_lab/labcodes/lab8/kern/fs/sfs/sfs.c

20 lines
309 B
C
Raw Permalink Normal View History

2012-08-22 12:32:13 +08:00
#include <defs.h>
#include <sfs.h>
#include <error.h>
#include <assert.h>
/*
* sfs_init - mount sfs on disk0
*
* CALL GRAPH:
* kern_init-->fs_init-->sfs_init
*/
void
sfs_init(void) {
int ret;
if ((ret = sfs_mount("disk0")) != 0) {
panic("failed: sfs: sfs_mount: %e.\n", ret);
}
}