mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
5941e412ca
called -r but it takes 512 byte blocks instead of megabytes, and I felt a megabytes specification would be far more useful so I did not use the same option character. This will *greatly* improve dump performance at the cost of possibly missing filesystem changes that occur between passes, and does a fairly good job making up for the loss of buffered block devices. Caching is disabled by default to retain historical behavior. In tests, dump performance improved by about 40% when dumping / or /usr. Beware that dump forks and the cache may wind up being larger then you specify, but a more complex shared memory implementation would not produce results that are all that much better so I kept it simple for now. MFC after: 3 days
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
# $FreeBSD$
|
|
|
|
# dump.h header file
|
|
# itime.c reads /etc/dumpdates
|
|
# main.c driver
|
|
# optr.c operator interface
|
|
# dumprmt.c handles remote tape via rmt(8)
|
|
# tape.c handles the mag tape and opening/closing
|
|
# traverse.c traverses the file system
|
|
# unctime.c undo ctime
|
|
#
|
|
# DEBUG use local directory to find ddate and dumpdates
|
|
# TDEBUG trace out the process forking
|
|
|
|
PROG= dump
|
|
LINKS= ${BINDIR}/dump ${BINDIR}/rdump
|
|
CFLAGS+=-DRDUMP
|
|
CFLAGS+=-I${.CURDIR}/../../libexec/rlogind
|
|
WARNS= 0
|
|
SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c unctime.c cache.c
|
|
MAN= dump.8
|
|
MLINKS+=dump.8 rdump.8
|
|
|
|
.if defined(MAKE_KERBEROS4) && !defined(NO_OPENSSL) && !defined(NOCRYPT)
|
|
.PATH: ${.CURDIR}/../../crypto/kerberosIV/appl/bsd
|
|
SRCS+= krcmd.c kcmd.c rcmd_util.c
|
|
DPADD= ${LIBKRB} ${LIBCRYPTO}
|
|
LDADD+= -lkrb -lcrypto
|
|
CFLAGS+=-DKERBEROS -DHAVE_CONFIG_H \
|
|
-I${.CURDIR}/../../kerberosIV/include \
|
|
-I${.CURDIR}/../../crypto/kerberosIV/include \
|
|
-I${.CURDIR}/../../crypto/kerberosIV/lib/roken \
|
|
-I${.CURDIR}/../../crypto/kerberosIV/appl/bsd
|
|
DISTRIBUTION= krb4
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|