Keep going to show all errors.
[fsck.sofs09.git] / test_inlost.c
blob33d53febf7ab18960c159b7835062e1ae774d209
1 #include <stdio.h>
3 #include "fsck.h"
4 #include "fsck_helper.h"
5 #include "sofs09.h"
7 testresult_t test_inlost(void)
9 testresult_t ret;
10 ic_t icstat;
11 uint32_t r;
12 SOSuperBlock *sb;
14 fetch_superblock(&sb);
16 ret = nice;
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;
26 return ret;