/usr/include/repair/repair.h is in libreiser4-dev 1.2.0-2.
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 | /* Copyright 2001-2005 by Hans Reiser, licensing governed by
reiser4progs/COPYING.
repair/repair.h -- the common structures and methods for recovery. */
#ifndef REPAIR_H
#define REPAIR_H
#include <reiser4/libreiser4.h>
#include <repair/plugin.h>
#include <misc/gauge.h>
enum {
REPAIR_DEBUG = 0x0,
REPAIR_WHOLE = 0x1,
REPAIR_NO_MKID = 0x2,
REPAIR_YES = 0X3,
REPAIR_LAST
};
typedef struct repair_data {
reiser4_fs_t *fs;
uint64_t fatal;
uint64_t fixable;
uint64_t sb_fixable;
uint8_t mode;
char *bitmap_file;
uint32_t flags;
} repair_data_t;
extern errno_t repair_check(repair_data_t *repair);
#define repair_error_count(repair, error) \
({ \
if (error > 0) { \
if (error & RE_FATAL) \
repair->fatal++; \
else if (error & RE_FIXABLE) \
repair->fixable++; \
} \
})
#endif
|