int main(int argc, char **argv) { // process_test(); // timer_test(); // serial_test(); // serial_test_calc(); // process_exit_test(); // console_test(); fs_test(); for(;;); return 0; }
void umain(void) { user_assert(sizeof(struct File) == 256); writef("FS is running\n"); // Check that we are able to do I/O //outw(0x8A00, 0x8A00); writef("FS can do I/O\n"); serve_init(); fs_init(); fs_test(); serve(); }
void umain(int argc, char **argv) { static_assert(sizeof(struct File) == 256); binaryname = "fs"; cprintf("FS is running\n"); // Check that we are able to do I/O outw(0x8A00, 0x8A00); cprintf("FS can do I/O\n"); serve_init(); fs_init(); fs_test(); serve(); }
void umain(void) { assert(sizeof(struct File)==256); binaryname = "fs"; printf("FS is running\n"); // Check that we are able to do I/O outw(0x8A00, 0x8A00); printf("FS can do I/O\n"); serve_init(); fs_init(); fs_test(); serve(); }
int fs_parse_opt(void *data, const char *arg, int key, struct fuse_args *outargs) { static const char *usage_str = "usage: fsdriver imagefile mountpoint [options]\n" "Mount a CS202 file system image at a given mount point.\n\n" "Special options:\n" " -h, -ho, --help show this help message and exit\n" " --test-ops test basic file system operations on a specific\n" " disk image, but don't mount\n" " -V, --version show version information and exit\n\n" ; static const char *version_str = "fsdriver (FUSE driver for the Spring 2015 CS202 file system)\n" "Written by Isami Romanowski.\n\n" "Copyright (C) 2012, 2013 The University of Texas at Austin\n" "This is free software; see the source or the provided COPYRIGHT file for\n" "copying conditions. There is NO warranty; not even for MERCHANTABILITY or\n" "FITNESS FOR A PARTICULAR PURPOSE.\n\n" ; switch (key) { case KEY_HELP: fputs(usage_str, stderr); fuse_opt_add_arg(outargs, "-ho"); exit(fuse_main(outargs->argc, outargs->argv, &fs_oper, NULL)); case KEY_VERSION: fputs(version_str, stderr); fuse_opt_add_arg(outargs, "--version"); exit(fuse_main(outargs->argc, outargs->argv, &fs_oper, NULL)); case KEY_TEST_OPS: if (loaded_imgname == NULL) { fprintf(stderr, "fsdriver: need image for testing basic file system operations\n"); exit(-1); } else { fs_test(); exit(0); } default: return 1; } }
int main(int argc, char **argv) { blob_test(0); fs_test(1); return 0; }