Errors corrected in clusterlost.
[fsck.sofs09.git] / test_clusterlost.c
blob5bb28fd8d62a6450adbce8b59f96e08faa87ca4d
1 #include <stdio.h>
3 #include "sofs09.h"
4 #include "fsck.h"
5 #include "fsck_helper.h"
7 testresult_t test_clusterlost(void)
9 testresult_t ret;
10 cc_t ccstat;
11 int r;
12 SOSuperBlock *sb;
14 ret = nice;
15 fetch_superblock(&sb);
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;
25 return ret;