repo.or.cz
/
fsck.sofs09.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Keep going to show all errors.
[fsck.sofs09.git]
/
test_inlost.c
blob
33d53febf7ab18960c159b7835062e1ae774d209
1
#include <stdio.h>
2
3
#include
"fsck.h"
4
#include
"fsck_helper.h"
5
#include
"sofs09.h"
6
7
testresult_t
test_inlost
(
void
)
8
{
9
testresult_t ret
;
10
ic_t icstat
;
11
uint32_t
r
;
12
SOSuperBlock
*
sb
;
13
14
fetch_superblock
(&
sb
);
15
16
ret
=
nice
;
17
18
for
(
r
=
0
;
r
<
sb
->
itotal
; ++
r
) {
19
ictable_get
(
r
, &
icstat
);
20
if
(
icstat
==
bah
) {
21
printf
(
"Inode number %d is lost.
\n
"
,
r
);
22
ret
=
corrupt
;
23
}
24
}
25
26
return
ret
;
27
}