⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dump.5

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 5
字号:
.\" SCCSID: @(#)dump.5	8.1	9/11/90.TH dump 5 .SH Namedumprestor, dumpdates \- incremental dump format.SH Syntax.B #include <sys/types.h>.br.B #include <sys/inode.h>.br.B #include <dumprestor.h>.SH Description.NXR "dump keyword".NXAM "dump command" "dump file".NXB "dumprestor file" "format"Tapes used by.PN dumpand .PN restorecontain:.nfA header recordTwo groups of bit map recordsA group of records describing directoriesA group of records describing files.fi.PPThe format of the header record and of the firstrecord of each description as given in theinclude file <dumprestor.h>is:.NXR "dumprestor file" "format".EX 0#define NTREC   	10#define MLEN    	16#define MSIZ    	4096#define TS_TAPE 	1#define TS_INODE	2#define TS_BITS 	3#define TS_ADDR 	4#define TS_END  	5#define TS_CLRI 	6#define MAGIC   	(int) 60011#define CHECKSUM	(int) 84446struct	spcl {	int		c_type;	time_t		c_date;	time_t		c_ddate;	int		c_volume;	daddr_t		c_tapea;	ino_t		c_inumber;	int		c_magic;	int		c_checksum;	struct		dinode		c_dinode;	int		c_count;	char		c_addr[BSIZE];} spcl;struct	idates {	char		id_name[16];	char		id_incno;	time_t		id_ddate;};#define	DUMPOUTFMT	"%-16s %c %s"		/* for printf */						/* name, incno, ctime(date) */#define	DUMPINFMT	"%16s %c %[^\en]\en"	/* inverse for scanf */.EE.PPNTREC is the number of 1024-byte records in a physicaltape block.MLEN is the number of bits in a bit map word.MSIZ is the number of bit map words..PPTheTS_ entries are used in the.I c_typefield to indicate what sort of headerthis is.The types and their meanings are as follows:.NXR "dump file" "TS_entry list".TP 13TS_TAPETape volume label..PD 0.TPTS_INODEA file or directory follows.The.I c_dinodefield is a copy of the disk inode and containsbits telling what sort of file this is..TPTS_BITSA bit map follows.This bit map has a one (1) bitfor each inode that was dumped..TPTS_ADDRA subrecord of a file description.See.I c_addrdescribed in the next list..TPTS_ENDEnd of tape record..TPTS_CLRIA bit map follows.This bit map contains a zero bit forall inodes that were empty on the file system when dumped..TPMAGICAll header records have this number in.I c_magic..TPCHECKSUMHeader records checksum to this value..PD.PPThe fields of the header structure are as follows:.NXR "dump file" "field reference list".TP 13c_typeThe type of the header..PD 0.TPc_dateThe date the dump was taken..TPc_ddateThe date the file system was dumped from..TPc_volumeThe current volume number of the dump..TPc_tapeaThe current number of this (1024-byte) record..TPc_inumberThe number of the inode being dumped if thisis of type TS_INODE..TPc_magicThis contains the value MAGICabove, truncated as needed..TPc_checksumThis contains whatever value is needed tomake the record sum to CHECKSUM..TPc_dinodeThis is a copy of the inode as it appears on thefile system.  For further information, see .MS fs 5 ..TPc_countThe count of characters in.I c_addr..TPc_addrAn array of characters describing the blocks of thedumped file.A character is zero if the block associated with that character was notpresent on the file system; otherwise the character is nonzero.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 describeall of the blocks in a file, TS_ADDRrecords will be scattered through the file, each onepicking up where the last left off..PD.PPEach volume except the last ends with a tapemark (read as an endof file).The last volume ends with a TS_ENDrecord and then the tapemark..PPThe structure.I idatesdescribes an entry in the file.PN /etc/dumpdateswhere dump history is kept.The fields of the structure are:.NXR "dumpdates file" "field reference list".TP \w'TS_INODE\ 'uid_nameThe dumped filesystem is.RI `/dev/ id_nam'..PD 0.TPid_incnoThe level number of the dump tape.  For further information,see .MS dump 8 ..TPid_ddateThe date of the incremental dump in system format.  For further information, see .MS types 5 ..PD.SH Files.PN /etc/dumpdates.SH See Alsofs(5), types(5), dump(8), restore(8).NXE "dumprestor file" "format"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -