/usr/include/repair/filter.h is in libreiser4-dev 1.0.7-6.3fakesync2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | /* Copyright 2001-2005 by Hans Reiser, licensing governed by
reiser4progs/COPYING.
repair/filter.h -- the structures and methods needed for fsck pass1. */
#ifndef REPAIR_FILTER_H
#define REPAIR_FILTER_H
#include <time.h>
#include <repair/librepair.h>
/* Statistics gathered during the pass. */
typedef struct repair_filter_stat {
uint64_t read_nodes;
uint64_t good_nodes, good_leaves, good_twigs;
uint64_t fixed_nodes, fixed_leaves, fixed_twigs;
uint64_t bad_nodes, bad_leaves, bad_twigs;
uint64_t bad_dk_nodes, bad_dk_leaves, bad_dk_twigs;
uint64_t bad_ptrs;
uint64_t *files, tmp;
time_t time;
} repair_filter_stat_t;
/* Data filter works on. */
typedef struct repair_filter {
repair_data_t *repair;
reiser4_bitmap_t *bm_used; /* FS system area + formatted nodes. */
/* Results of the work. */
reiser4_bitmap_t *bm_leaf; /* Bitmap of found leaves. */
reiser4_bitmap_t *bm_twig; /* Bitmap of found twigs. */
reiser4_bitmap_t *bm_met; /* Bitmap of formatted nodes which does not get
to neither other bitmap due to corruption or
just an internal one. */
repair_filter_stat_t stat;
bool_t mkidok;
uint32_t mkid;
uint64_t oid;
/* Private data. */
reiser4_node_t *cur_node;
aal_gauge_t *gauge;
uint64_t flags;
uint8_t level;
} repair_filter_t;
extern errno_t repair_filter(repair_filter_t *filter);
#endif
|