.\" Copyright (c) 1980, 1993
.\" The Regents of the University of California. All rights reserved.
.\" This module is believed to contain source code proprietary to AT&T.
.\" Use and redistribution is subject to the Berkeley Software License
.\" Agreement and your Software Agreement with AT&T (Western Electric).
.\" @(#)dump.5 8.1 (Berkeley) 6/5/93
.TH DUMP 5 "June 5, 1993"
dump, dumpdates \- incremental dump format
.B #include <sys/types.h>
.B #include <sys/inode.h>
.B #include <protocols/dumprestore.h>
two groups of bit map records
a group of records describing directories
a group of records describing files
The format of the header record and of the first
record of each description as given in the
.I <protocols/dumprestore.h>
#define MAGIC (int) 60011
#define CHECKSUM (int) 84446
#define DUMPOUTFMT "%-16s %c %s" /* for printf */
/* name, incno, ctime(date) */
#define DUMPINFMT "%16s %c %[^\en]\en" /* inverse for scanf */
NTREC is the number of 1024 byte records in a physical
MLEN is the number of bits in a bit map word.
MSIZ is the number of bit map words.
TS_ entries are used in the
field to indicate what sort of header
The types and their meanings are as follows:
A file or directory follows.
field is a copy of the disk inode and contains
bits telling what sort of file this is.
This bit map has a one bit
for each inode that was dumped.
A subrecord of a file description.
This bit map contains a zero bit for
all inodes that were empty on the file system when dumped.
All header records have this number in
Header records checksum to this value.
The fields of the header structure are as follows:
The date the dump was taken.
The date the file system was dumped from.
The current volume number of the dump.
The current number of this (1024-byte) record.
The number of the inode being dumped if this
This contains the value MAGIC
above, truncated as needed.
This contains whatever value is needed to
make the record sum to CHECKSUM.
This is a copy of the inode as it appears on the
The count of characters in
An array of characters describing the blocks of the
A character is zero if the block associated with that character was not
present on the file system, otherwise the character is non-zero.
If the block was not present on the file system, no block was dumped;
the block will be restored as a hole in the file.
If there is not sufficient space in this record to describe
all of the blocks in a file, TS_ADDR
records will be scattered through the file, each one
picking up where the last left off.
Each volume except the last ends with a tapemark (read as an end
The last volume ends with a TS_END
record and then the tapemark.
describes an entry in the file
where dump history is kept.
The fields of the structure are:
The level number of the dump tape;
The date of the incremental dump in system format