David E. O'Brien
8cc6e4d84a
Do not exit if unable to read /etc/dumpdates or create it.
...
If one is trying to dump or repair an ill system, give the user a fighting
chance. Refusing to operate w/o a very non-critical file (feature) is
just plain stupid.
2001-03-27 19:28:00 +00:00
Ruslan Ermilov
0a5779d45b
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
Ruslan Ermilov
fe655281c5
Set the default manual section for sbin/ to 8.
2001-03-20 18:13:31 +00:00
David E. O'Brien
ff7405adba
bye-bye documented raw devices
2001-03-09 13:06:53 +00:00
David E. O'Brien
8454c72c24
Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,
...
and remove leading `r'(aw) from it.
2001-03-08 09:04:40 +00:00
David E. O'Brien
801382fa98
Support inheritance of the "nodump" flag down a hierarchy.
...
Submitted by: Dima Dorfman <dima@unixfreak.org>
Obtained from: NetBSD
2001-03-03 11:35:50 +00:00
Poul-Henning Kamp
941ee63274
Use <sys/queue.h> instead of home-rolled list.
...
Submitted by: "Jason Smethers" <jsmethers@pdq.net>
2001-01-29 09:45:51 +00:00
Poul-Henning Kamp
bfa0b2984d
Use \a instead of \007 for making noise.
...
Submitted by: "Jason Smethers" <jsmethers@pdq.net>
2001-01-28 21:21:37 +00:00
Ruslan Ermilov
1252c1bb05
Prepare for mdoc(7)NG.
2000-12-18 15:16:24 +00:00
Ruslan Ermilov
7c7fb079b9
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 16:52:27 +00:00
Ruslan Ermilov
726b61ab5f
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
Kris Kennaway
257875bed0
Update device name.
2000-05-07 09:27:53 +00:00
Warner Losh
37736675d1
Add include of errno.h where needed, remove extern int errno where not.
...
These commits were inspired by a similar commit to netbsd.
2000-04-14 06:15:01 +00:00
Joerg Wunsch
04285c0615
Avoid rawname() stupidly prepending an `r' before the device name even
...
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.
2000-04-02 10:16:40 +00:00
Sheldon Hearn
ef8f7ac935
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 11:27:47 +00:00
Nik Clayton
b1ba45cfe5
Remove xrefs to obsolete ft driver.
...
PR: docs/17080
Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:40:18 +00:00
Mark Murray
f499a39621
Use libcrypto instead of libdes.
2000-02-24 21:01:54 +00:00
Mike Pritchard
f050f700ad
Fix various man pages to stop abusing the .Bx macro to generate
...
the strings "FreeBSD" and "NetBSD". Use the .Fx or .Nx macro
instead.
2000-01-23 01:30:05 +00:00
Alexey Zelkin
07a48f4bcc
Add `.Nm rdump' to NAME section.
2000-01-10 12:18:10 +00:00
Warner Losh
a7d7b470ae
vsprintf -> vsnprintf in msg().
1999-11-10 18:11:16 +00:00
Mark Murray
1099209e99
Prepare for K5.
1999-09-20 06:21:51 +00:00
Mark Murray
105b74f110
Fix for new KerberosFix for new Kerberos44
1999-09-19 22:14:33 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Bill Fumerola
16c4e40827
Fix nested if/else within an if
1999-07-08 22:27:00 +00:00
Jordan K. Hubbard
a741b77965
Fix time of last dump handling.
...
Submittted by: Richard Wiwatowski <rjwiwat@ozemail.com.au>
1999-07-02 04:44:43 +00:00
Jean-Marc Zucconi
8878be20f8
Fix typo in dump reporting
...
PR: bin/10573
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
1999-05-24 00:35:47 +00:00
Matt Jacob
9b979919c4
temporary workaround for bin/11464
1999-05-03 13:53:16 +00:00
Jordan K. Hubbard
f1a3bb13d8
The attached patch to /usr/src/sbin/dump/optr.c changes the comparison
...
so that dumps are treated by dump -w as having been done on midnight
of the day they were actually run. This makes dump -w behave as
expected for regularly scheduled daily dumps - if they all run the
same day. It makes dump -w behave strangely if you dump late in the
day and check again after midnight, but that is the lesser of two
evils.
Submitted by: Mike Meyer <mwm@phone.net>
PR: 9429
1999-03-21 23:47:38 +00:00
Dima Ruban
97b465b142
64bit fixes.
...
(Note: ``dump'' doesn't work on alpha yet. Apparently there's a problem
somewhere is the physio() area)
Submitted by: myself && Matt Dillon.
1998-10-27 04:01:19 +00:00
Ollivier Robert
4a73c49a6d
Change rst0 into rsa0.
1998-09-22 10:05:27 +00:00
David E. O'Brien
be0cde6f10
Remove useless `BINOWN=root' now that it is the default.
1998-09-19 22:42:06 +00:00
Andreas Klemm
678bcd7728
checked, that new sa CAM driver takes care of using buffer sizes
...
<= 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.
1998-09-16 20:52:12 +00:00
Justin T. Gibbs
49fccf2a24
Add support for dealing with ENOSPC as the error code returned by a tape
...
device hitting EOM on a write.
1998-09-15 10:25:50 +00:00
Mark Murray
448bbb5805
Fix LIBDIR (for aout/ELF).
1998-08-06 21:41:13 +00:00
Joseph Koshy
f69e804d24
Make `dump' exit codes confirm to manual page.
...
PR: 5346
Style-check-by: bde
1998-07-14 09:19:47 +00:00
Philippe Charnier
7580ffbbbd
Correct use of .Nm. Add rcsid. Remove unused #includes.
1998-06-15 06:58:13 +00:00
Bill Fenner
4a3bf3b27c
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.
1998-05-17 06:39:38 +00:00
Steve Price
f135a2b210
Fix minor typo.
...
PR: 6571
Submitted by: Stephen J. Roznowski <sjr@home.net>
1998-05-10 16:35:31 +00:00
John Birrell
e3f5655fab
read() and write() return ssize_t not int, so the first arg to atomic()
...
should be ssize_t too.
1998-01-25 09:15:10 +00:00
Steve Price
d2daa2c099
The default dumplevel is 0.
...
PR: 5413
Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
1998-01-03 20:26:15 +00:00
Mark Murray
6adb44d7f0
Make this part of the 'krb' distribution.
1997-10-24 16:20:25 +00:00
Joerg Wunsch
59dcbbb234
Fix the man page description about what will go into an incremental
...
backup.
PR: docs/4785
Submitted by: Matthew Dillon
1997-10-19 09:43:08 +00:00
Joerg Wunsch
d6038ed629
Do not account the tape change time for ETA estimations.
...
PR: bin/4369
Submitted by: blank@fox.uni-trier.de (Sascha Blank)
1997-10-12 14:09:13 +00:00
Joerg Wunsch
b394198484
The unit for the B option is 1 KB, not `dump records'.
...
PR: docs/4223
1997-10-12 13:10:26 +00:00
Mark Murray
81127b1486
Changes for the new KTH KerberosIV.
1997-09-28 08:42:27 +00:00
Steve Price
81eaff0252
Remove the reference to the nonexistant dump(5) manpage.
...
PR: docs/3704
1997-08-23 21:52:47 +00:00
Philippe Charnier
a1e5f53b8f
Add Id. Cosmetic in usage string.
1997-06-10 11:14:04 +00:00
Joerg Wunsch
ee359f4838
Fix a long-standing bug with dump not treating errors correctly. They
...
were mishandled as an EOF, which became fatal if your first tape was
accidentally write-protected.
PR: bin/850 dump treats write-protect as an EOT...
1997-05-06 20:52:28 +00:00
Garrett Wollman
1982ee69fd
Implement Kerberized rcmd for rdump/rrestore. This is lacking the
...
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.)
1997-04-29 17:46:27 +00:00
Peter Wemm
e457979c0d
Document the -a option in .Fl form instead of .Cm form to be consistant
...
with the rest of the manpage. (Lite2 documents it in getopt form, Lite1
did it in old-style arg format)
1997-03-15 06:23:57 +00:00
Peter Wemm
79aed3fe40
The -a option (autosize) option got mangled during the Lite2 merge.
...
Pointed out by: Tom Jackson <tom@peeper.jackson.org>
1997-03-15 05:32:40 +00:00
Peter Wemm
a37c38b8d8
Merge Lite2 changes (rather bigish, the dump/restore folks should check)
1997-03-11 12:09:50 +00:00
Peter Wemm
39e5614a71
This commit was generated by cvs2svn to compensate for changes in r23669,
...
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:59:39 +00:00
Peter Wemm
1811bdf372
Import some CSRG 4.4BSD-Lite2 components for sbin onto vendor branch.
...
(note that some of these have already been imported, this is a no-op)
1997-03-11 11:59:39 +00:00
Peter Wemm
c0ec1f37ef
Revert $FreeBSD$ to $Id$
1997-02-22 14:40:44 +00:00
Jordan K. Hubbard
28ebf21479
Update CHANGEDSINCE macro to conform to -current dinode.h
1997-02-16 22:16:08 +00:00
Eivind Eklund
20a842df1f
Removed default setuid and added a comment to the manpage explaining this.
1997-02-09 20:56:34 +00:00
Joerg Wunsch
af00957e47
Add the a' option (
`auto-size'') to bypass all tape length
...
considerations, and dump right to the end of medium.
1997-02-01 23:44:19 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Wolfram Schneider
af20215665
Sort cross references.
1997-01-13 00:25:51 +00:00
Peter Wemm
9e0dc595f6
Fix double typo
1997-01-08 03:00:42 +00:00
Warner Losh
f5dcc2f1e6
Fix many buffer overflows, correct usage of strcat and implement
...
$TAPE. Inspired by OpenBSD's work in this area.
Reviewed by: Peter Wemm, Guido van Rooij and Jordan Hubbard.
Obtained from: OpenBSD
1997-01-07 20:48:24 +00:00
Paul Traina
71fbc63c69
bin/1789: dump estimates a negative number of tapes needed for huge dumps
1997-01-07 20:15:04 +00:00
David E. O'Brien
4cbb75f40e
Backing out my change of /etc/rmt -> /usr/sbin/rmt.
...
Added comments in both files stateing why /etc/rmt is correct so someone
else wont do the same thing again.
Suggested by: Warner Losh & Ollivier
1996-12-29 11:48:45 +00:00
David E. O'Brien
cbb90fdbbc
rmt is /usr/sbin/rmt, not /etc/rmt which is a link to /usr/sbin/rmt
1996-12-29 00:57:18 +00:00
Bill Fenner
b11ecdd6d0
Use fprintf(stderr,) instead of msgtail() so it works for restore as well.
1996-11-01 17:23:41 +00:00
Peter Wemm
c737f472e8
Temporarily disable an information message that was added in the last
...
commit.. This causes a link error in sbin/restore which also uses this
file.
1996-11-01 13:02:20 +00:00
Bill Fenner
4aad1224fc
Make rdump error messages a little clearer and make them look like dump
...
messages, and make it explicit that stderr output came from the remote end.
(e.g. "rmt: command not found")
1996-11-01 05:39:10 +00:00
Bill Fenner
d71ba03df8
If rcmd() fails, return immediately instead of trying a bunch of
...
setsockopt()'s on a -1 file descriptor.
Remove attempt to decrease TCP MSS; it makes no sense.
Set the IP TOS to IPTOS_THROUGHPUT as an indication that this is an
application sending large blocks of data, as recommended by RFC1700.
1996-10-28 23:26:37 +00:00
Nate Williams
45808359e6
ts_sec -> tv_sec
...
ts_nsec -> tv_nsec
1996-09-20 04:56:09 +00:00
Bruce Evans
eaa86f9d7f
Don't use __dead or __pure in user code. They were obfuscations
...
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.
1996-09-14 03:00:32 +00:00
Mike Pritchard
0f7785061e
Use the .At macro where appropriate.
1996-08-23 01:06:24 +00:00
Joerg Wunsch
3be059bae1
Put the superfluous "DUMP:" back in the statistics line, to make
...
Amanda happy.
1995-12-23 11:53:56 +00:00
Joerg Wunsch
019420a58f
Andreas Klemm's patch set for dump(8), with some minor (cosmetic)
...
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)
1995-11-18 18:00:43 +00:00
Jordan K. Hubbard
abdec3e35c
Fix a silly bug where MAXPATHLEN was subtracted from the string length rather
...
than the other way around!
Submitted by: Elmar Bartel <bartel@informatik.tu-muenchen.de>
1995-10-24 13:46:35 +00:00
Garrett Wollman
656dcd4316
Delete bogus referneces to timezone code internal header file `tzfile.h',
...
which is no longer bogusly installed in /usr/include.
1995-08-07 19:17:46 +00:00
Rodney W. Grimes
41e969f6cf
Man page was incorrectly pointing to /etc/dump, it should be /sbin/dump.
...
Submitted by: faried nawaz <fn@big-brother.csrv.uidaho.edu>
1995-07-15 10:44:19 +00:00
Joerg Wunsch
d195e6deec
When using dump/rdump on large filesytems (my case 3 GB), the lseek
...
claims multiple times to have failed. The problem is a off_t is
converted into a int and checked for a negative. A true lseek check
should be checking if the off_t is equal to -1 for failure.
(Suggested fix from PR #bin/461)
Submitted by: mark tinguely <tinguely@opus.cs.ndsu.NoDak.edu>
1995-06-24 17:07:21 +00:00
Rodney W. Grimes
5ebc7e6281
Remove trailing whitespace.
1995-05-30 06:12:45 +00:00
Jordan K. Hubbard
681e4fa0cf
Add pointer to the `ft' command.
1995-01-26 00:32:58 +00:00
Joerg Wunsch
56d5f6db85
Fixed an evil bug where rawname() could write across the boundaries of
...
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:)
1994-10-28 17:26:27 +00:00
Garrett Wollman
404c1a5fc1
Convert to our man installation style. Also fixed long-standing bug
...
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
1994-08-05 02:42:42 +00:00
Rodney W. Grimes
8fae3551ec
BSD 4.4 Lite sbin Sources
...
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00