~ubuntu-branches/ubuntu/warty/openafs/warty

« back to all changes in this revision

Viewing changes to src/tests/stagehdr.h

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-01-10 16:37:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040110163733-jvr0n1uahshlb1uu
Tags: upstream-1.2.11
ImportĀ upstreamĀ versionĀ 1.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * CMUCS AFStools
 
3
 * dumpscan - routines for scanning and manipulating AFS volume dumps
 
4
 *
 
5
 * Copyright (c) 1998 Carnegie Mellon University
 
6
 * All Rights Reserved.
 
7
 * 
 
8
 * Permission to use, copy, modify and distribute this software and its
 
9
 * documentation is hereby granted, provided that both the copyright
 
10
 * notice and this permission notice appear in all copies of the
 
11
 * software, derivative works or modified versions, and any portions
 
12
 * thereof, and that both notices appear in supporting documentation.
 
13
 *
 
14
 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
 
15
 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
 
16
 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
 
17
 *
 
18
 * Carnegie Mellon requests users of this software to return to
 
19
 *
 
20
 *  Software Distribution Coordinator  or  Software_Distribution@CS.CMU.EDU
 
21
 *  School of Computer Science
 
22
 *  Carnegie Mellon University
 
23
 *  Pittsburgh PA 15213-3890
 
24
 *
 
25
 * any improvements or extensions that they make and grant Carnegie Mellon
 
26
 * the rights to redistribute these changes.
 
27
 */
 
28
 
 
29
/* stagehdr.h - (old) Stage backup header format */
 
30
 
 
31
#ifndef _STAGEHDR_H_
 
32
#define _STAGEHDR_H_
 
33
 
 
34
#include "intNN.h"
 
35
 
 
36
/* Stage-related constants */
 
37
#define STAGE_MAGIC    0x00adf8bc       /* magic number for stage header */
 
38
#define STAGE_CHECKSUM 84446            /* checksum (same as 4.2bsd dump) */
 
39
#define STAGE_VERSMIN  20               /* minimum version */
 
40
#define STAGE_NAMLEN   64               /* length of host/part/vol names */
 
41
#define STAGE_HDRLEN   1024             /* size of the header */
 
42
 
 
43
struct stage_header {
 
44
  unsigned char c_vers;               /* header version (starts at 20) */
 
45
  unsigned char c_notused[3];
 
46
  afs_uint32       c_fdate;              /* dump "from" date */
 
47
  afs_uint32       c_tdate;              /* dump "to" date */
 
48
  afs_uint32       c_filenum;            /* tape file number */
 
49
  afs_uint32       c_time;               /* time dump was done */
 
50
  char          c_host[STAGE_NAMLEN]; /* hostname volume came from */
 
51
  char          c_disk[STAGE_NAMLEN]; /* partition volume came from */
 
52
  char          c_name[STAGE_NAMLEN]; /* volume name */
 
53
  afs_uint32       c_id;                 /* volume ID */
 
54
  afs_uint32       c_length;             /* length of the dump */
 
55
  afs_uint32       c_level;              /* dump level */
 
56
  afs_uint32       c_magic;              /* magic number */
 
57
  afs_uint32       c_checksum;           /* checksum of backup header */
 
58
  afs_uint32       c_flags;              /* feature flags */
 
59
};
 
60
 
 
61
#endif /* _STAGEHDR_H_ */