summaryrefslogtreecommitdiffstats
path: root/sbin/dump/main.c
Commit message (Collapse)AuthorAgeFilesLines
* I've been meaning to do this for a while. Add an underscore to thedillon2002-01-191-3/+3
| | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee.
* Zap a number of #ifdef sunos blocks, and all of the `register'iedowse2001-11-171-12/+6
| | | | keywords.
* Give a sensible error message when the filesystem to be dumped isiedowse2001-11-161-4/+7
| | | | | | | | | not listed in /etc/fstab. Previously, the user would be greeted with "DUMP: bad sblock magic number" when dump tried to parse the directory contents as an FFS filesystem. PR: bin/12789 Submitted by: Bob Willcox <bob@pmr.com>
* Make the protocol/dumprestore.h header match restore's idea of the dumpdillon2001-10-281-6/+17
| | | | | | | | header for the case where sizeof(time_t) != sizeof(int). dumprestore.h was embedding time_t when it should have been embedding int32_t. Use time_to_time32() and time32_to_time() to convert between the protocoll/file-format time and time_t.
* SECURITY.ru2001-09-051-1/+0
| | | | | | | | Notify operators using wall(1)'s -g option. Drop ``setgid tty'' privilege. Obtained from: OpenBSD MFC after: 1 month
* Add manual page and usage for dump -D (supplied by Dima Dorfman) (will alsodillon2001-07-091-2/+3
| | | | | | be MFC'd) Submitted by: Dima Dorfman <dima@unixfreak.org>
* Oops, forgot to add 'D' to the option morphing block.dillon2001-07-081-0/+1
|
* Add a -D option to dump, allowing the path for the /etc/dumpdates file to bedillon2001-07-081-2/+6
| | | | | | | changed, so independant entities backing up the same thing to different media can be made not to trip over each other. MFC after: 3 days
* Since we use getopt (in rev. 1.12), there's no need for the case's fordd2001-06-091-2/+0
| | | | | | | | the individual options to increment argv and decrement argc. This caused the -T option to swallow an extra argument. PR: 27982 Submitted by: Samuel Greear <sgreear@vsni.com>
* Use \a instead of \007 for making noise.phk2001-01-281-1/+1
| | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net>
* Avoid rawname() stupidly prepending an `r' before the device name evenjoerg2000-04-021-1/+14
| | | | | | | | | | | in cases where the supplied name was already pointing to a character special device. This fixes the breakage that occured when trying to dump a filesystem by name (e. g. /usr), with an fstab already mentioning the raw device name (like /dev/rda0g) where dump attempted to use /dev/rrda0g then. Also removed the now obsolete remark that fstab were carrying block special names.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix typo in dump reportingjmz1999-05-241-3/+4
| | | | | PR: bin/10573 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
* checked, that new sa CAM driver takes care of using buffer sizesandreas1998-09-161-15/+1
| | | | | | | | <= 64 KB. Was able to dump/restore with block sizes of 96, 128 and 200. using systat -vmstat I noticed transfer blocksizes <= 64KB, so physio's limits aren't touched. Since this check was originally from me, I feels safe now to back it out.
* Make `dump' exit codes confirm to manual page.jkoshy1998-07-141-12/+12
| | | | | PR: 5346 Style-check-by: bde
* Correct use of .Nm. Add rcsid. Remove unused #includes.charnier1998-06-151-6/+8
|
* Add Id. Cosmetic in usage string.charnier1997-06-101-3/+6
|
* Implement Kerberized rcmd for rdump/rrestore. This is lacking thewollman1997-04-291-4/+21
| | | | | | | options one would normally expect to set the realm, enable encryption, and whatnot, but this actually is able to contact the remote server, so at least it's a start. (As a bonus, the stripped static binary is unquestionably exportable.)
* The -a option (autosize) option got mangled during the Lite2 merge.peter1997-03-151-3/+2
| | | | Pointed out by: Tom Jackson <tom@peeper.jackson.org>
* Merge Lite2 changes (rather bigish, the dump/restore folks should check)peter1997-03-111-119/+150
|
* Add the `a' option (``auto-size'') to bypass all tape lengthjoerg1997-02-011-7/+18
| | | | considerations, and dump right to the end of medium.
* Fix double typopeter1997-01-081-1/+1
|
* Fix many buffer overflows, correct usage of strcat and implementimp1997-01-071-3/+11
| | | | | | | $TAPE. Inspired by OpenBSD's work in this area. Reviewed by: Peter Wemm, Guido van Rooij and Jordan Hubbard. Obtained from: OpenBSD
* bin/1789: dump estimates a negative number of tapes needed for huge dumpspst1997-01-071-4/+4
|
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-2/+2
| | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
* Put the superfluous "DUMP:" back in the statistics line, to makejoerg1995-12-231-2/+2
| | | | Amanda happy.
* Andreas Klemm's patch set for dump(8), with some minor (cosmetic)joerg1995-11-181-9/+27
| | | | | | | | | | | | | | | | changes and one addition by me. . Use reasonable defaults for the tape drive (/dev/rst0) instead of something we actually don't have. . Add a summary line displaying the alapsed time and the total throughput. . Replace "rmt" for the remote location of rmt(8) by "/etc/rmt", since this is the historical protocol, and relying on the $PATH causes a big pain. Make it adjustable via an environmental variable though. Reviewed by: joerg (for Andreas' part) Submitted by: andreas@knobel.gun.de (Andreas Klemm)
* Fix a silly bug where MAXPATHLEN was subtracted from the string length ratherjkh1995-10-241-2/+2
| | | | | than the other way around! Submitted by: Elmar Bartel <bartel@informatik.tu-muenchen.de>
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Fixed an evil bug where rawname() could write across the boundaries ofjoerg1994-10-281-3/+3
| | | | | | | | an array. The bug became obvious in the old system where the array was only 32 characters long (now MAXPATHLEN). Dump honored its name then (:-) and dumped its core when calling dump -w for a fstab that contained rather long NFS file system names. Even though this is rather unlikely to happen now, a bug is a bug:)
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+560
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud