We don't need to dump WAPBL log files - don't dump files with SF_LOG

flag set, and document this.
This commit is contained in:
simonb 2008-08-12 13:28:35 +00:00
parent 163d7169c0
commit 89943600ac
2 changed files with 18 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: dump.8,v 1.56 2005/09/11 23:36:55 wiz Exp $
.\" $NetBSD: dump.8,v 1.57 2008/08/12 13:28:35 simonb Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" Regents of the University of California.
@ -30,7 +30,7 @@
.\"
.\" @(#)dump.8 8.3 (Berkeley) 5/1/95
.\"
.Dd April 19, 2005
.Dd August 12, 2008
.Dt DUMP 8
.Os
.Sh NAME
@ -127,6 +127,15 @@ is ignored, the only dump level that is supported is
.Fl 0 ,
and all of the files must reside on the same file system.
.Pp
Any files with the superuser
.Qq log
flag
.Pq Dv SF_LOG
set will be skipped.
These files are assumed to be
.Xr wapbl 4
journal files and will not be backed up.
.Pp
The following options are supported by
.Nm :
.Bl -tag -width Ds

View File

@ -1,4 +1,4 @@
/* $NetBSD: traverse.c,v 1.47 2006/06/24 05:28:54 perseant Exp $ */
/* $NetBSD: traverse.c,v 1.48 2008/08/12 13:28:35 simonb Exp $ */
/*-
* Copyright (c) 1980, 1988, 1991, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)traverse.c 8.7 (Berkeley) 6/15/95";
#else
__RCSID("$NetBSD: traverse.c,v 1.47 2006/06/24 05:28:54 perseant Exp $");
__RCSID("$NetBSD: traverse.c,v 1.48 2008/08/12 13:28:35 simonb Exp $");
#endif
#endif /* not lint */
@ -137,6 +137,11 @@ mapfileino(ino_t ino, u_int64_t *tape_size, int *dirskipped)
dp = getino(ino);
if (dp == NULL || (mode = (DIP(dp, mode) & IFMT)) == 0)
return;
/*
* Skip WAPBL log file inodes.
*/
if (DIP(dp, flags) & SF_LOG)
return;
/*
* Put all dirs in dumpdirmap, inodes that are to be dumped in the
* used map. All inode but dirs who have the nodump attribute go