]> andersk Git - moira.git/commitdiff
OpenAFS 1.4.x support; steal bits of ubik.h we need rather than including it.
authorzacheiss <zacheiss>
Fri, 12 May 2006 20:20:08 +0000 (20:20 +0000)
committerzacheiss <zacheiss>
Fri, 12 May 2006 20:20:08 +0000 (20:20 +0000)
afssync/ubik.c

index ec39e832c16d7397a286c0cb05237de943459284..1757aa77384889c5122d02dd75cf4d18a2a9d985 100644 (file)
@@ -6,11 +6,29 @@
 #include <lock.h>
 #define UBIK_INTERNALS
 #include <stds.h>
-#include <ubik.h>
 #include <rx/xdr.h>
 #include "print.h"
 #include "prserver.h"
 
+/* Stolen bits of ubik.h. */
+
+struct ubik_version {
+  afs_int32 epoch;
+  afs_int32 counter;
+};
+typedef struct ubik_version ubik_version;
+
+/* ubik header file structure */
+struct ubik_hdr {
+  afs_int32 magic;            /* magic number */
+  short pad1;                 /* some 0-initd padding */
+  short size;                 /* header allocation size */
+  struct ubik_version version;        /* the version for this file */
+};
+
+#define HDRSIZE             64  /* bytes of header per dbfile */
+#define UBIK_MAGIC      0x354545
+
 extern int dbase_fd;
 struct ubik_dbase *dbase;
 
This page took 0.103768 seconds and 5 git commands to generate.