《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
309 B

12 years ago
  1. #include <defs.h>
  2. #include <sfs.h>
  3. #include <error.h>
  4. #include <assert.h>
  5. /*
  6. * sfs_init - mount sfs on disk0
  7. *
  8. * CALL GRAPH:
  9. * kern_init-->fs_init-->sfs_init
  10. */
  11. void
  12. sfs_init(void) {
  13. int ret;
  14. if ((ret = sfs_mount("disk0")) != 0) {
  15. panic("failed: sfs: sfs_mount: %e.\n", ret);
  16. }
  17. }