1*22044Sdist /* 2*22044Sdist * Copyright (c) 1980 Regents of the University of California. 3*22044Sdist * All rights reserved. The Berkeley software License Agreement 4*22044Sdist * specifies the terms and conditions for redistribution. 5*22044Sdist * 6*22044Sdist * @(#)dumprestore.h 5.1 (Berkeley) 06/05/85 7*22044Sdist */ 84704Smckusick 95321Smckusic /* 105321Smckusic * TP_BSIZE is the size of file blocks on the dump tapes. 115321Smckusic * Note that TP_BSIZE must be a multiple of DEV_BSIZE. 125321Smckusic * 135321Smckusic * NTREC is the number of TP_BSIZE blocks that are written 1418492Smckusick * in each tape record. HIGHDENSITYTREC is the number of 1518492Smckusick * TP_BSIZE blocks that are written in each tape record on 1618492Smckusick * 6250 BPI or higher density tapes. 175321Smckusic * 185321Smckusic * TP_NINDIR is the number of indirect pointers in a TS_INODE 195321Smckusic * or TS_ADDR record. Note that it must be a power of two. 205321Smckusic */ 214775Smckusic #define TP_BSIZE 1024 224704Smckusick #define NTREC 10 2318492Smckusick #define HIGHDENSITYTREC 32 244775Smckusic #define TP_NINDIR (TP_BSIZE/2) 254704Smckusick 264704Smckusick #define TS_TAPE 1 274704Smckusick #define TS_INODE 2 284704Smckusick #define TS_BITS 3 294704Smckusick #define TS_ADDR 4 304704Smckusick #define TS_END 5 314704Smckusick #define TS_CLRI 6 328367Smckusick #define OFS_MAGIC (int)60011 338367Smckusick #define NFS_MAGIC (int)60012 344704Smckusick #define CHECKSUM (int)84446 354704Smckusick 364775Smckusic union u_spcl { 374775Smckusic char dummy[TP_BSIZE]; 384775Smckusic struct s_spcl { 394775Smckusic int c_type; 404775Smckusic time_t c_date; 414775Smckusic time_t c_ddate; 424775Smckusic int c_volume; 434775Smckusic daddr_t c_tapea; 444775Smckusic ino_t c_inumber; 454775Smckusic int c_magic; 464775Smckusic int c_checksum; 474775Smckusic struct dinode c_dinode; 484775Smckusic int c_count; 494775Smckusic char c_addr[TP_NINDIR]; 504775Smckusic } s_spcl; 514775Smckusic } u_spcl; 524704Smckusick 534775Smckusic #define spcl u_spcl.s_spcl 544775Smckusic 554704Smckusick #define DUMPOUTFMT "%-16s %c %s" /* for printf */ 564704Smckusick /* name, incno, ctime(date) */ 574704Smckusick #define DUMPINFMT "%16s %c %[^\n]\n" /* inverse for scanf */ 58