xref: /titanic_50/usr/src/cmd/fs.d/ufs/volcopy/volcopy.h (revision 3db86aab554edbb4244c8d1a1c90f152eee768af)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.1	*/
27 
28 #define LOG
29 #define	MINUSA	1
30 #define	MINUSS	2
31 #define FIL_SYS	1
32 #define DEV_IN	2
33 #define VOL_IN	3
34 #define DEV_OUT	4
35 #define VOL_OUT	5
36 #define INPUT	0
37 #define OUTPUT	1
38 #define	T_TYPE	0xfd187e20	/* like FsMAGIC */
39 #define EQ(X,Y,Z) !strncmp(X,Y,Z)
40 #define NOT_EQ(X,Y,Z) strncmp(X,Y,Z)
41 #define	BLKSIZ		512	/* use physical blocks */
42 #define _2_DAYS		172800L
43 #define MAX_BLKS	20
44 #define Ft800x10	15L
45 #define Ft1600x4	22L
46 #define Ft1600x10	28L
47 #define Ft1600x16	30L
48 #define Ft1600x32	32L
49 #define Ft6250x10	90L
50 #define Ft6250x16	95L
51 #define Ft6250x32	115L
52 #define Ft6250x50	120L
53 #define	BUFCNT	2
54 #define	_128K	131072
55 
56 /*
57  * Special tape drive types.
58  */
59 
60 #define A_DRIVE	1	/* 3B15 Accellerated Tape Ctlr (32 blks/rec) */
61 #define C_DRIVE	2	/* 3B15 Compatibility Mode (10 blks/rec) */
62 #define K_DRIVE	3	/* 3B20 Kennedy tape drive (4 blks/rec max) */
63 #define T_DRIVE	4	/* 3B20 Tape File Controller (50 blks/rec) */
64 
65 /* Synchronization flags */
66 
67 #define	P_NONE	0	/* Null message */
68 #define	P_READ	1	/* Read allowed */
69 #define	P_WRITE	2	/* Write allowed */
70 #define	P_DONE	3	/* Done reading */
71 #define	P_ABORT	4	/* Abort due to unrecoverable error */
72 #define	P_TEST	5
73