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
Errors corrected in clusterlost.
[fsck.sofs09.git]
/
test_clusterlost.c
blob
5bb28fd8d62a6450adbce8b59f96e08faa87ca4d
1
#include <stdio.h>
2
3
#include
"sofs09.h"
4
#include
"fsck.h"
5
#include
"fsck_helper.h"
6
7
testresult_t
test_clusterlost
(
void
)
8
{
9
testresult_t ret
;
10
cc_t ccstat
;
11
int
r
;
12
SOSuperBlock
*
sb
;
13
14
ret
=
nice
;
15
fetch_superblock
(&
sb
);
16
17
for
(
r
=
0
;
r
<
sb
->
dzone_size
; ++
r
) {
18
cctable_get
(
r
, &
ccstat
);
19
if
(
ccstat
==
bah
) {
20
printf
(
"Cluster number %d is lost.
\n
"
,
r
);
21
ret
=
corrupt
;
22
}
23
}
24
25
return
ret
;
26
}