Home | History | Annotate | Download | only in dump
History log of /src/sbin/dump/dumprmt.c
RevisionDateAuthorComments
 1.37  15-Jun-2013  christos handle new lfs split
 1.36  13-Jan-2013  dholland Use <ctype.h> functions correctly.
 1.35  13-Jan-2013  dholland Add some const.
 1.34  29-Aug-2011  joerg branches: 1.34.2; 1.34.8;
Use __dead
 1.33  11-Apr-2009  lukem fix sign-compare issue
 1.32  18-Dec-2006  christos branches: 1.32.22;
Convert a couple of "(void)&" constructs to volatile.
Flag various unused parameters in restore and dump so that these will
compile with -Wextra. (Note: restore uses some stuff from dump.)
 1.31  27-Jun-2005  christos sprinkle const
 1.30  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.29  25-Dec-2001  lukem Fixes from FreeBSD:
- Fix error if first tape was write protected. Fix NetBSD PRs 4754 and 6098.
- Make dump exit codes confirm to manual page.
- Use \a instead of \7 to make noise.
- Fix estimated number of tapes for huge dumps to cartridges.
- Use <sys/queue.h> SLIST_* instead of home-rolled lists.
- Do not exit if unable to read or create /etc/dumpdates.
- Support output (tape) device returning ENOSPC for end-of-media on a write.

Fixes by me:
- Remove unused ddates_in.
- Don't dump core if SIGINFO is received before 1 second has elapsed.
- Only process SIGINFO in current "active" child.
- Don't dump core in -w if dumpdates wasn't readable and ddatev == NULL
- Minor KNF; wrap some lines
 1.28  23-Dec-2001  lukem unifdef sunos
 1.27  14-Dec-2001  bouyer Add a -l (autoload) flag. For multivolume dumps, this makes dump eject the
tape when a volume is full, and try to reopen the tape drive for 2 mn.
To be used with tape changers which load the next tape when the current one is
ejected.
While I'm there fix eject handling for remote tape.
 1.26  01-Nov-2001  lukem fix -Wshadow warnings
 1.25  28-May-2001  lukem unifdef !__STDC__ (missed in previous)
 1.24  27-May-2001  lukem knf to ansi
 1.23  26-May-2001  lukem use strdup appropriately
 1.22  04-Feb-2001  christos fix redundant decls
 1.21  30-Jul-1998  thorpej branches: 1.21.10;
Turn on TCP_NODELAY on the remote tape socket, from FreeBSD. Here is the
commit message from Bill Fenner:

Turn on TCP_NODELAY on the remote socket, to turn off sender silly window
syndrome avoidance. The combination of SWS avoidance and ack-every-other
causes low throughput if the block size divided by the MSS is odd (which
is true with the default block size and MSS).
Turning on TCP_NODELAY disables the Nagle algorithm and sender SWS avoidance.
The rdump request/response protocol can not invoke Nagle and cannot cause
SWS, so this has no negative effects.

Also, put back the code that sets the TOS to "throughput", which seems to
have been erroneously removed during the Lite-2 merge.
 1.20  30-Mar-1998  mrg use <errno.h>
 1.19  16-Sep-1997  lukem resolve conflicts from lite-2 import
 1.18  15-Sep-1997  lukem * cleanup for WARNS=1
* fix use of .Nm
* comment out some unused(?) functions
 1.17  05-Jun-1997  mrg fix PR#3710, reported by Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>.
- don't pass pw->pw_name into functions; make a copy.
 1.16  05-Jun-1997  lukem * Add the ability to dump specific files & directories of a single
filesystem. This uses fts(3) to access the directory structure (and
not the raw device), so the standard access permissions are adhered
to (unlike dumping an entire filesystem, which just requires read
access to the raw disk device).
* Support SIGINFO status reporting.
* Remove now unused variables that previously stored the (e)uid.
* Be more informative in a couple of error messages.
 1.15  27-May-1997  mrg enable rcmd(). garbage collect.
 1.14  26-May-1997  mrg use orcmd() for now.
 1.13  21-Apr-1997  mrg be safe with buffers.
 1.12  15-Apr-1997  lukem remove use of "register".
 1.11  05-Nov-1996  thorpej - If rcmd() fails, don't do any of the setsockopt() calls.
- Since the TCP_MAXSEG setsockopt can only descrease the MSS, and never
increase it, do an IP_TOS:IPTOS_THROUGHPUT setsockopt instead, since
dump is a bulk transfer.
Submitted by Bill Fenner <fenner@parc.xerox.com>.
 1.10  15-Mar-1996  scottr Be more paranoid with our effective uid.
 1.9  18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.8  23-Sep-1994  mycroft Eliminate uses of some obsolete functions.
 1.7  23-Sep-1994  mycroft err(3)/warn(3) cleanup
 1.6  08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.5  22-Dec-1993  cgd new version from CSRG, via BSDI, with fixes
 1.4  01-Aug-1993  mycroft Add RCS identifiers.
 1.3  23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2  22-Mar-1993  cgd added rcs ids to all files
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3  16-Sep-1997  lukem imported from lite-2
 1.1.1.2  13-Jun-1994  mycroft Import 4.4-Lite version.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.21.10.2  16-Jan-2002  he Pull up revisions 1.28-1.29 (via patch, requested by bouyer):
Various fixes:
o Fix error if first tape is write-protected; fixes PR#4754 and PR#6098
o Make error codes conform to manual page
o Use \a to make noise
o Fix estimated number of tapes for huge dumps to cartridges
o Use <sys/queue.h> SLIST_* macros instead of homegrown variants
o Do not exit if unable to read/create /etc/dumpdates
o Support output (tape) device returning ENOSPC for end-of-media on write
o Don't dump core if SIGINFO is received before 1 second has elapsed
o Only process SIGINFO in currently active child
o Ensure current (sub)block isn't past end of file system -- fixes
"spins forever but does nothing" bug.
o Some other minor fixes (types, whitespace, KNF, unifdef sunos, ...)
 1.21.10.1  16-Jan-2002  he Pull up revision 1.27 (via patch, requested by bouyer):
Implement ``-l <timeout>'' option for use with e.g. autochangers.
 1.32.22.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.34.8.2  23-Jun-2013  tls resync from head
 1.34.8.1  25-Feb-2013  tls resync with head
 1.34.2.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.34.2.1  23-Jan-2013  yamt sync with head

RSS XML Feed