Standardize License information
[openafs.git] / src / butc / common.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /* random constants */
11 #define TC_MAXNAMELEN  64       /* name length */
12
13 /* This specifies the interface to the tape coordinator */
14
15 /* describes the information that should be dumped to dump a single volume */
16 struct tc_dumpDesc {
17         afs_int32 vid;                  /* volume to dump */
18         afs_int32 partition;            /* partition at which to find the volume */
19         afs_int32 date;         /* date from which to do the dump */
20         opaque hostID[16];      /* opaque netaddress, really a sockaddr_in */
21 };
22
23 /* define how to restore a volume */
24 struct tc_restoreDesc {
25         afs_int32 origVid;              /* original volume id */
26         afs_int32 vid;                  /* 0 means allocate new volid */
27         afs_int32 partition;            /* where to restore the volume */
28         afs_int32 flags;                /* flags */
29         opaque hostID[16];      /* which file server to restore the volume to */
30         opaque newName[TC_MAXNAMELEN];  /* new name suffix */
31 };
32 /* describes the current status of a dump */
33 struct tc_dumpStat {
34         afs_int32 dumpID;               /* dump id we're returning */
35         afs_int32 bytesDumped;  /* bytes dumped so far */
36         afs_int32 volumeBeingDumped;    /* guess */
37         afs_int32 flags;                /* true if the dump is done */
38 };