2 * Filesystem check for OMFS
11 int main(int argc
, char *argv
[])
16 check_fs_config_t config
= {
24 c
= getopt(argc
, argv
, "q");
36 if (argc
- optind
< 1)
38 fprintf(stderr
, "Usage: %s [options] <device>\n", argv
[0]);
44 fp
= fopen(dev
, "r+");
51 if (!check_fs(fp
, &config
))
59 printf("File system check successful\n");