File: fsck.h

package info (click to toggle)
reiser4progs 1.0.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,348 kB
  • ctags: 3,714
  • sloc: ansic: 33,468; sh: 8,489; makefile: 1,012
file content (59 lines) | stat: -rw-r--r-- 1,137 bytes parent folder | download | duplicates (8)
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
53
54
55
56
57
58
59
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
   reiser4progs/COPYING.

   fsck.h -- fsck structure declarations. */

#ifndef FSCK_H
#define FSCK_H

#ifdef HAVE_CONFIG_H
#  include <config.h> 
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <getopt.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <sys/mman.h>

#include "backup.h"

#include <aux/aux.h>
#include <misc/misc.h>
#include <repair/librepair.h>
#include <reiser4/libreiser4.h>

/* Extended error codes for described in misc.h */
#define FIXABLE_ERROR	1
#define FATAL_SB_ERROR	2
#define FATAL_ERROR	3

/* fsck options. */
typedef enum fsck_options {
    FSCK_OPT_AUTO	= 0x1,
    FSCK_OPT_FORCE	= 0x2,
    FSCK_OPT_YES	= 0x2,
    FSCK_OPT_RO		= 0x3,
    FSCK_OPT_DEBUG	= 0x4,
    FSCK_OPT_WHOLE	= 0x5,
    FSCK_OPT_OLD	= 0x6,
    FSCK_OPT_NOMKID	= 0x7
} fsck_options_t;

typedef struct fsck_parse {
    uint8_t sb_mode, fs_mode;

    FILE *logfile;
    FILE *backup;

    char *backup_file;
    char *bitmap_file;
    aal_device_t *host_device;
    uint16_t options;
} fsck_parse_t;

#endif