#ifndef __bc_types_INCLUDED
#define __bc_types_INCLUDED
+/*
+ * These are the sizes of the current definitions of database
+ * Ids. In general, FileId_t can be set to uint64_t and it
+ * *should* work. Users have reported back that it does work
+ * for PostgreSQL. For the other types, all places in Bacula
+ * have been converted, but no one has actually tested it.
+ * In principle, the only field that really should need to be
+ * 64 bits is the FileId_t
+ */
+typedef uint32_t FileId_t;
+typedef uint32_t DBId_t; /* general DB id type */
+typedef uint32_t JobId_t;
+
+
typedef char POOLMEM;
extern uint32_t bacula_db_version;
-/*
- * These are the sizes of the current definitions of database
- * Ids. In general, FileId_t can be set to uint64_t and it
- * *should* work. Users have reported back that it does work
- * for PostgreSQL. For the other types, all places in Bacula
- * have been converted, but no one has actually tested it.
- * In principle, the only field that really should need to be
- * 64 bits is the FileId_t
- */
-typedef uint32_t FileId_t;
-typedef uint32_t DBId_t; /* general DB id type */
-typedef uint32_t JobId_t;
-
#define faddr_t long
/*
uint32_t JobErrors; /* */
uint64_t JobBytes; /* Number of bytes processed this job */
uint64_t ReadBytes; /* Bytes read -- before compression */
+ FileId_t FileId; /* Last FileId used */
uint32_t Errors; /* Number of non-fatal errors */
volatile int32_t JobStatus; /* ready, running, blocked, terminated */
int32_t JobPriority; /* Job priority */
volatile int32_t FDJobStatus; /* File daemon Job Status */
uint32_t ExpectedFiles; /* Expected restore files */
uint32_t MediaId; /* DB record IDs associated with this job */
- FileId_t FileId; /* Last file id inserted */
uint32_t FileIndex; /* Last FileIndex processed */
POOLMEM *fname; /* name to put into catalog */
JOB_DBR jr; /* Job DB record for current job */
bool write_part_after_job; /* Set to write part after job */
bool PreferMountedVols; /* Prefer mounted vols rather than new */
bool need_fd; /* set if we need FD connection */
-
- uint32_t FileId; /* Last file id inserted */
/* Parmaters for Open Read Session */
BSR *bsr; /* Bootstrap record -- has everything */
mixed priorities
General:
+24Nov08
+kes Move definition of FileId_t to bc_types and define it once in the jcr.
22Nov08
kes Remove all time_t from arguments in favor of utime_t, which is
machine independent.