This file is indexed.

/usr/src/openafs-1.8.0pre5/include/afs/bc.h is in openafs-modules-dkms 1.8.0~pre5-1.

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
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/*
 * bc.h:
 * This file is automatically generated; please do not edit it.
 */
/* Including ./bc.p.h at beginning of bc.h file. */

/*
 * Copyright 2000, International Business Machines Corporation and others.
 * All Rights Reserved.
 *
 * This software has been released under the terms of the IBM Public
 * License.  For details, see the LICENSE file in the top-level source
 * directory or online at http://www.openafs.org/dl/license10.html
 */

#include <afs/budb_client.h>
#include <afs/afsutil.h>

#ifdef HAVE_STDIO_H
#include <stdio.h>
#endif /* HAVE_STDIO_H */

#include <string.h>

/*
 * Represents a host in the config database.
 */
struct bc_hostEntry {
    struct bc_hostEntry *next;	/*Ptr to next record */
    char *name;			/*Stringname for host */
    struct sockaddr_in addr;	/*Corresponding sockaddr */
    afs_int32 portOffset;	/*Port=standardPort+portOffset-allows multiple TC on a host */
};

/*
 * Global backup program configuration information.
 */
struct bc_config {
    char *path;			/*Root directory for config info */
    struct bc_hostEntry *dbaseHosts;	/*Hosts providing the backup database service */
    struct bc_hostEntry *tapeHosts;	/*Hosts providing the tape drives */
    struct bc_volumeSet *vset;	/*List of all volume sets */
    struct bc_dumpSchedule *dsched;	/*Dump schedule list */
    udbClientTextT configText[TB_NUM];	/* configuration text handles */
    char tmpTextFileNames[TB_NUM][AFSDIR_PATH_MAX];	/* names of temp files created to store config text recd from buserver */
};

/*
  * Central status information relating to per-opcode routine information.
  */
struct bc_opstatus {
    int isCmdLineOpcode;	/*Is this the opcode being done for the command line? */
};

/*
 * Representation of a Volume Set, namely the specification for a group of
 * related volumes. Each volume set has a name and a list of volume
 * descriptions, one for each line in the volumeset configuration file.
 */
#define VSFLAG_TEMPORARY 1	/* Volume set is temporary */

struct bc_volumeSet {
    struct bc_volumeSet *next;	/*Ptr to next volume set record */
    char *name;			/*Volume set name */
    afs_int32 flags;		/* flags */
    struct bc_volumeEntry *ventries;	/*List of component volume entries */
};

/*
 * Represents the name of a volume specifier in a volume set.
 */
struct bc_volumeEntry {
    struct bc_volumeEntry *next;	/*Ptr to next record in list */
    char *serverName;		/*Host name for volume spec */
    struct sockaddr_in server;	/*Host sockaddr for volume spec */
    char *partname;		/*Partition pattern name */
    afs_int32 partition;	/*Partition number for volume spec */
    char *name;			/*Volume pattern name */
};

/*
 * Represents an individual volume to be dumped, not a collection.
 */
struct bc_volumeDump {
    struct bc_volumeDump *next;	/*Ptr to next record */
    afs_int32 vid;		/*Volume id, or 0 if not known */
    struct bc_volumeEntry *entry;	/*Back pointer: information about server (obs?) */
    char *name;			/*Individual volume name */
    afs_int32 volType;		/*Volume type */
    afs_int32 date;		/*From date (for full, incremental or whatever) */
    afs_int32 cloneDate;	/* time of this volume's snapshot */
    afs_int32 partition;	/* partition containing this volume */
    struct sockaddr_in server;	/* server to obtain data from */
};

/*
 * Represents a dump schedule node, representing one type of dump (e.g. the
 * safe5 daily incremental)
 */
struct bc_dumpSchedule {
    struct bc_dumpSchedule *next;	/*Ptr to next record */
    char *name;			/*Dump sched name */
    char *vsname;		/*Volume set name to dump */
    afs_int32 period;		/*Period in minutes */
    afs_int32 periodType;	/*Qualifier on above, for exceptions like 'monthly' */
    char *parentName;		/*Parent dump schedule name-unused PA */
    struct bc_dumpSchedule *parent;	/*These are built at run-time */
    struct bc_dumpSchedule *firstChild;
    struct bc_dumpSchedule *nextSibling;
    afs_int32 level;		/*Level of the dump (do we need this?) */
    afs_int32 expDate;		/* expiration date */
    afs_int32 expType;		/* absolute or relative expiration */
};

/*
 * Private: represents a queued dump/restore item.
 */
struct bc_dumpTask {
    int (*callProc) (afs_int32);
    struct bc_config *config;
    struct bc_volumeDump *volumes;
    char *dumpName;		/*Dump name we're doing */
    char *volSetName;		/*Volume set we're dumping */
    afs_int32 flags;
    afs_int32 dumpID;		/*Dump ID we're running */
    int oldFlag;		/* if a restore, whether we're doing it to the same vol#s */
    struct sockaddr_in destServer;	/* destination server for restore command */
    afs_int32 destPartition;	/* destination partition for restore command */
    afs_int32 fromDate;		/* date from which to do a restore command */
    afs_int32 parentDumpID;	/* parent dump ID */
    afs_int32 dumpLevel;	/* dump level being performed */
    char *newExt;		/* new volume extension if any, if oldFlag is false */
    afs_int32 bytesTransferred;	/* How many bytes sent */
    afs_int32 volumeBeingDumped;	/* the volume being processed */
    afs_int32 *portOffset;	/* used to derive the ports of the TCs */
    afs_int32 portCount;	/* number of points in the portOffset array */
    afs_int32 expDate;		/* for dumps - expiration date */
    afs_int32 expType;		/* for dumps - abs. or relative expiration */
    int doAppend;		/* for dumps - append this dump to the dump set */
    int dontExecute;		/* dont execute the dump or restore */
};

#define	BC_DI_INUSE	1	/* entry not used */

#define	DBHOSTFILE	"dbasehosts"
#define	TAPEHOSTFILE	"tapehosts"
#define	DSNAME		"dumpschedule"
#define	VSNAME		"volumeset"

#define	BC_MAXSIMDUMPS	    64
#define BC_MAXPORTS	    128	/* max number of port offsets for volrestore */
/* debugging support */
#define	afs_dprintf(x)

/* End of prolog file ./bc.p.h. */

#define BC_BADARG                                (156288000L)
#define BC_VERSIONMISMATCH                       (156288001L)
#define BC_NOTUNIQUE                             (156288002L)
#define BC_NOMEM                                 (156288003L)
#define BC_NOCELLCONFIG                          (156288004L)
#define BC_EXISTS                                (156288005L)
#define BC_CONFIGERR                             (156288006L)
#define BC_NOVOLSET                              (156288007L)
#define BC_NOVOLENTRY                            (156288008L)
#define BC_VOLSETEXISTS                          (156288009L)
#define BC_NOHOST                                (156288010L)
#define BC_NOPARTITION                           (156288011L)
#define BC_VERSIONFAIL                           (156288012L)
#define BC_NOTLOCKED                             (156288013L)
#define BC_INTERNALERROR                         (156288014L)
#define BC_NOHOSTENTRY                           (156288015L)
extern void initialize_BUCD_error_table(void);
#define ERROR_TABLE_BASE_BUCD (156288000L)

/* for compatibility with older versions... */
#define init_BUCD_err_tbl initialize_BUCD_error_table
#define BUCD_err_base ERROR_TABLE_BASE_BUCD

/* for compatibility with other users... */
#define ERROR_TABLE_BASE_bucd (156288000L)
#define init_bucd_err_tbl initialize_BUCD_error_table
#define initialize_bucd_error_table initialize_BUCD_error_table
#define bucd_err_base ERROR_TABLE_BASE_bucd