blob: 54688421fa4f830a345dbfa2af427920d64825d8 [file] [log] [blame]
Thomas Heijligend1e04572023-11-27 14:28:55 +00001#include <stdio.h>
2
Thomas Heijligen62268ee2023-11-27 15:10:41 +00003#include "blockdev.h"
4
Thomas Heijligend1e04572023-11-27 14:28:55 +00005
6int main(int argc, char* argv[])
7{
8 if (argc != 2) {
Thomas Heijligen62268ee2023-11-27 15:10:41 +00009 fprintf(stderr, "Use %s /path/to/filesystem\n", argv[0]);
Thomas Heijligend1e04572023-11-27 14:28:55 +000010 return -1;
11 }
12
13 if (devopen(argv[1], NULL) != 1) {
Thomas Heijligen62268ee2023-11-27 15:10:41 +000014 fprintf(stderr, "Faild to open %s\n", argv[1]);
Thomas Heijligend1e04572023-11-27 14:28:55 +000015 return -1;
16 }
17
18 // TODO
19
20
21 devclose();
22 return 0;
23}
24