Thomas Heijligen | d1e0457 | 2023-11-27 14:28:55 +0000 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | |
Thomas Heijligen | 62268ee | 2023-11-27 15:10:41 +0000 | [diff] [blame] | 3 | #include "blockdev.h" |
| 4 | |
Thomas Heijligen | d1e0457 | 2023-11-27 14:28:55 +0000 | [diff] [blame] | 5 | |
| 6 | int main(int argc, char* argv[]) |
| 7 | { |
| 8 | if (argc != 2) { |
Thomas Heijligen | 62268ee | 2023-11-27 15:10:41 +0000 | [diff] [blame] | 9 | fprintf(stderr, "Use %s /path/to/filesystem\n", argv[0]); |
Thomas Heijligen | d1e0457 | 2023-11-27 14:28:55 +0000 | [diff] [blame] | 10 | return -1; |
| 11 | } |
| 12 | |
| 13 | if (devopen(argv[1], NULL) != 1) { |
Thomas Heijligen | 62268ee | 2023-11-27 15:10:41 +0000 | [diff] [blame] | 14 | fprintf(stderr, "Faild to open %s\n", argv[1]); |
Thomas Heijligen | d1e0457 | 2023-11-27 14:28:55 +0000 | [diff] [blame] | 15 | return -1; |
| 16 | } |
| 17 | |
| 18 | // TODO |
| 19 | |
| 20 | |
| 21 | devclose(); |
| 22 | return 0; |
| 23 | } |
| 24 | |