summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Neutralize bits of ns_parse.c with bad juju.obrien2002-02-201-1/+6
|
* Style cleanup.obrien2002-02-196-33/+24
| | | | Approved by: Murray
* Makefile glue for DHCP v3 import.murray2002-02-197-20/+151
|
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-187-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Add some more partition types.joe2002-02-181-26/+56
| | | | | PR: i386/14793 MFC after: 3 days
* Use a more robust scheme for determining how many blocks to skipiedowse2002-02-181-15/+18
| | | | | | | | | after an EOT-terminated volume. We keep track of the current record number, and synchronise it with the c_tapea field each time we read a header. Avoid the use of c_firstrec because some bugs in dump can cause it to be set incorrectly. Move the initialisation of some variables to avoid compiler warnings.
* When we reach the end of the dump in findinode(), ask for anotheriedowse2002-02-181-9/+19
| | | | | | | | | | volume if we missed some earlier tapes (the user can still enter 'none' later if the tapes are unavailable). Previously with 'x' restores, we might not ask for all tapes if the tapes are supplied in reverse order. Clarify the message that describes what volume should be mounted first; reverse order is only efficient when extracting a few files.
* Supply progress information in dump's process title, which is usefuliedowse2002-02-164-7/+22
| | | | | | | | for monitoring automated backups. This is based on a patch by Mikhail Teterin, with some changes to make its operation clearer and to update the proctitle more frequently. PR: bin/32138
* On receipt of a SIGINFO, schedule an immediate printout of theiedowse2002-02-164-2/+16
| | | | | | | percentage complete and remaining time estimate. PR: bin/32138 Submitted by: mi
* Do not disable IPv6 and vlan support when RELEASE_CRUNCH is defined.luigi2002-02-151-2/+0
| | | | | We do support already IPv6 in the RELENG_4 boot floppies, and vlan might be desirable as well.
* In createfiles(), properly handle a number of cases where no furtheriedowse2002-02-141-16/+24
| | | | | | | | | | | | | | | | | | | | | volumes are available, instead of getting stuck in a loop calling getvol(). Normally restore in 'x' or 'i' modes will ask for a new (earlier) volume when the current inode number on the tape is greater than the last inode to be restored, since there can be no further inodes of interest on that volume. However we don't want to change volumes in this case either if the user explicitly said that there are no more tapes, or if we are looking at the first volume. When no more volumes are available but there are still inodes that we have not found, we now just fall through to the code that prints out a list of any missing files, so the restore completes normally. Also simplify the logic a bit by always returning to the start of the main for(;;) loop whenever the volume has changed. This should completely fix the "Changing volumes on pipe input" bug that is often observed when restoring dumps of active filesystems. PR: bin/4176, bin/34604, misc/34675
* Typo fix: Usally -> Usually.keramida2002-02-141-1/+1
| | | | | PR: docs/34918 Submitted by: Harry Newton <harry_newton@telinco.co.uk>
* Fix a number of long-standing restore bugs in tape.c, mainly relatingiedowse2002-02-131-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | to multi-volume restores: - In findinode(), keep a copy of header->c_type so that we don't exit the do-while loop until we have processed the current header. Exiting too early leaves curfile.ino set to 0, which confuses the logic in createfiles(), so multi-volume restores with the 'x' command don't work if you follow the instructions and supply the tapes in reverse order. This appears to have been broken by CSRG revision 5.33 tape.c (Oct 1992). - The logic in getvol() for deciding how many records to skip after the volume header was confused; sometimes it would skip too few records and sometimes too many, leading to "resync restore" warnings and missing files. Skip to the next header only when the current action is not `USING'. Work around a dump bug that sets c_count incorrectly in the volume header of the first tape. Some of the problems here date back to at least 1991. - Back out revision 1.23. This appeared to avoid warnings about missing files in the 'rN' verification case, but it made the problems with the 'x' command worse by stopping getvol() from even attempting to find the first inode number on the newly inserted tape. The bug it addressed is fixed by correcting the skipping logic as described above. - Save the value of `tpblksread' in case the wrong volume is supplied, because it is incremented each time we read a volume header. We already saved `blksread' for the same reson.
* Don't refer to findinode()'s `complain' parameter in a comment; itiedowse2002-02-121-1/+1
| | | | was removed in 1986.
* Correct an out of date device node name. We do not have /dev/rsd0.ctlmaxim2002-02-112-2/+2
| | | | | | | | | nowadays. Spotted by: Sergey Osokin <osa@freebsd.org.ru> Reviewed by: ken, ru Approved by: ken, ru MFC after: 1 week
* Note what the default address_family is.dd2002-02-111-0/+2
| | | | | PR: 32463 Submitted by: Gary W. Swearingen
* Make dump's behaviour more sensible when the output file is a fifo.iedowse2002-02-111-0/+6
| | | | | | | | | | Normally trewind() performs a close-open-close cycle to rewind the tape when closing the device, but this is not ideal for fifos. We now skip the final open-close if the output descriptor is a fifo. PR: bin/25474 Submitted by: Alex Bakhtin <bakhtin@amt.ru> MFC after: 1 week
* Make it clear that dump(8)'s honoring of the UF_NODUMP flag is subjectdd2002-02-101-12/+6
| | | | | | | to the -h option. While here, xref chflags(1). PR: 33907 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Document ping6(8) reaction to SIGINFO.maxim2002-02-071-2/+14
| | | | | | | PR: doc/33639 Reviewed by: ru Approved by: ru MFC after: 1 week
* Document ping(8) reaction to SIGINFO.maxim2002-02-071-1/+13
| | | | | | | PR: doc/33639 Reviewed by: ru Approved by: ru MFC after: 1 week
* Minor grammar fixes.markm2002-02-061-4/+4
|
* Match the requirements of the new kernel structures.sos2002-02-041-0/+103
|
* If the dhcpd server doesn't provide a domain name or dns servers thenalfred2002-02-011-4/+7
| | | | | | | | | | don't clobber /etc/resolv.conf Add $FreeBSD. Submitted by: an j. peterson" <rbw@myplace.org> Verified fix in: dhcp-3.0.1rc6 PR: misc/34455
* Something i always wanted to see: add a function to print the list ofjoerg2002-01-264-19/+164
| | | | | | | | blocks allocated by some inode. Indirect blocks are printed recursively, so beware :), the list could become lengthy... (We should probably add some output pager to fsdb.) MFC after: 1 month
* Avoid pointless initialization of global variables to 0. This onlyjoerg2002-01-261-2/+2
| | | | | | | | bloats the resulting binary file by forcing them out of .bss into .data, while the C standard already guarantees them to become initialized to 0 at program startup. MFC after: 1 week
* Don't exit with -1 if the user typed "quit".joerg2002-01-261-1/+2
| | | | MFC after: 1 week
* Fix some function prototypes.phk2002-01-252-24/+24
| | | | | | | | | | Cure the "lets put everything in registers" ailment. Set WARNS=2 Fix two problems where casting messed up large quotafiles. PR: 34108 Submitted by: Maxim Katargin <kmv@asplinux.ru> MFC after: 3 weeks
* Remove a not-very-useful printf(3).green2002-01-251-1/+0
|
* Allow fsdb the ability to work with entries named with whitespace embedded.green2002-01-253-3/+33
| | | | | | | | | | | This works by retokenizing a line with a split limit so that if the argument count for a command is greater than the number of arguments formed by splitting apart the line of user input, the last argument is instead all of the remainder of the input line. Yes, I needed this capability at one point to fix a filesystem manually, which happened to break with a problematic space-containing directory entry.
* Insert a missing paragraph break (.Pp).schweikh2002-01-241-0/+1
| | | | MFC after: 3 weeks
* Style.ru2002-01-241-11/+8
| | | | Approved by: ken
* CG hard sentence breaks.sobomax2002-01-231-1/+2
| | | | Submitted by: ru
* Don't use `you'.sobomax2002-01-221-3/+2
| | | | Submitted by: ru
* Allow dump device be configured as early as possible using loader(8) tunable.sobomax2002-01-211-6/+12
| | | | | | | This allows obtaining crash dumps from the panics occured during late stages of kernel initialisation before system enters into single-user mode. MFC after: 2 weeks
* from select(2):billf2002-01-201-3/+9
| | | | | | | | | Any of readfds, writefds, and exceptfds may be given as nil pointers if no descriptors are of interest. neither wfds nor efds were of interest so now they are nil. also, do a little better then making an educated guess for nfds.
* I've been meaning to do this for a while. Add an underscore to thedillon2002-01-195-18/+18
| | | | | | | | 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.
* By popular demand, also include the "devlist" subcommand into the setjoerg2002-01-181-1/+7
| | | | | | of commands available in the boot floppy environment. MFC after: 1 week
* Well, RELEASE_BUILD_FIXIT has now been renamed into RELEASE_CRUNCH.joerg2002-01-181-2/+2
| | | | | At least, the old version is still good for the MFC though (where everything is still going the old way). ;-)
* Add 'camcontrol rescan all' and 'camcontrol reset all' functionality token2002-01-182-46/+185
| | | | | | | | | | | | | | | camcontrol. This enables rescanning all busses or resetting all busses in a system. The current implementation is not the ideal way to do it -- the ideal way to do it would be for the transport layer to handle wildcarded busses on bus rescan and reset operations. The current implementation enumerates all the busses and sends a rescan or reset CCB individually. Handling this behavior in the transport layer will happen later. Reviewed by: imp Tested by: joerg MFC after: 1 week
* Introduce an interface announcement message for the routingru2002-01-181-1/+24
| | | | | | | | | socket so that routing daemons and other interested parties know when an interface is attached/detached. PR: kern/33747 Obtained from: NetBSD MFC after: 2 weeks
* Provide an option to make camcontrol `minimalistic': if the (env/make)joerg2002-01-172-1/+37
| | | | | | | | | variable RELEASE_BUILD_FIXIT is defined, a camcontrol binary will be built that only knows the "rescan" and "reset" subcommands. The resulting code is small enough to still fit onto the boot floppy. Reviewed by: ken MFC after: 1 week
* Fix typo by s/advertise/advertises/schweikh2002-01-161-1/+1
| | | | MFC after: 4 weeks
* - Attempt to help declutter kern. sysctl by moving security out fromarr2002-01-161-5/+5
| | | | | | beneath it. Reviewed by: rwatson
* Back out part of the revision 1.2 changes -- sendto(2) canru2002-01-151-73/+28
| | | | | | | | | | | | not return ENOBUFS for unreliable protocols like divert. This should fix an issue when natd(8) keeps spamming already full dummynet(4) queues with the same packet forever. Spotted by: chkno@dork.com Explained by: luigi Reviewed by: Ari Suutari <ari.suutari@syncrontech.com> MFC after: 2 weeks
* First ping after a preload (-l) was sent undelayed.ru2002-01-151-1/+2
| | | | | PR: bin/32354 Obtained from: ping.c,v 1.61
* Fixed two bugs with the "-l preload" option:ru2002-01-141-5/+9
| | | | | | | - first ping after a preload was sent undelayed - we could send more than -c packets in preload PR: bin/32354
* mdoc(7) police: tidy up the markup.ru2002-01-101-61/+86
|
* mdoc(7) police: tidy up the markup in revision 1.96.ru2002-01-101-5/+12
|
* mdoc(7) police: tidy up previous delta.ru2002-01-091-9/+6
|
* mdoc(7) police:ru2002-01-091-0/+14
| | | | | | Restore (sorta) a useful piece of information that got lost in the previous delta -- an ability to specify /prefixlength after an IPv6 address.
OpenPOWER on IntegriCloud