#include <stdio.h> | |
#include "blockdev.h" | |
int main(int argc, char* argv[]) | |
{ | |
if (argc != 2) { | |
fprintf(stderr, "Use %s /path/to/filesystem\n", argv[0]); | |
return -1; | |
} | |
if (devopen(argv[1], NULL) != 1) { | |
fprintf(stderr, "Faild to open %s\n", argv[1]); | |
return -1; | |
} | |
// TODO | |
devclose(); | |
return 0; | |
} | |