repo.or.cz
/
omfsprogs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix lib directory
[omfsprogs.git]
/
omfsdump.c
blob
615e9d16d857c7edad89ddb45b757ff62c683e5e
1
/*
2
* Filesystem check for OMFS
3
*/
4
#include <stdlib.h>
5
#include
"dump.h"
6
7
int
main
(
int
argc
,
char
*
argv
[])
8
{
9
FILE
*
fp
;
10
11
if
(
argc
<
2
)
12
{
13
fprintf
(
stderr
,
"Usage: %s <device>
\n
"
,
argv
[
0
]);
14
exit
(
1
);
15
}
16
17
fp
=
fopen
(
argv
[
1
],
"rb"
);
18
if
(!
fp
)
19
{
20
perror
(
"omfsdump: "
);
21
exit
(
2
);
22
}
23
24
dump_fs
(
fp
);
25
return
0
;
26
}