summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add information about multi-session CDs from the log message of r1.4.murray2002-03-131-0/+9
| | | | | | Also, add an examples section and show how to mount a Kodak Photo-CD. PR: docs/35206
* Document the existence of machdep.guessed_bootdev, as suggestedluigi2002-03-121-0/+1
| | | | | | | | | | | by Sheldon. For a detailed description look at the commit log for sysctl.c rev.1.42 -- i do not think it is appropriate to put the full description in this manpage, and the "boot" and "loader" manpages where this description might go are also missing a description of a number of similar variables, so i think this it is ok to limit documentation to this now, and update it later when I (or someone else) have a chance to revise "boot" and "loader".
* Sparc64 support.des2002-03-111-7/+7
|
* Make the handling of machdep.guessed_bootdev compiled on i386 only.luigi2002-03-111-1/+7
|
* Add complete Sparc64 support.obrien2002-03-112-34/+128
| | | | | | Submitted by: tmm Dike out vax support.
* * Support the Sparc64.obrien2002-03-112-14/+10
| | | | | * Do not default to any particular platform. Require that we explicitly support a particular platform.
* Chase sysctl name.dd2002-03-111-1/+1
| | | | Submitted by: Christopher Sharp <christopher_sharp@web.de>
* Export a (machine dependent) kernel variable bootdev asluigi2002-03-101-0/+51
| | | | | | | | | | | | | | | | | | | | | | machdep.guessed_bootdev, and add code to sysctl to parse its value and give a (not necessarily correct) name to the device we booted from (the main motivation for this code is to use the info in the PicoBSD boot scripts, and the impact on the kernel is minimal). NOTE: the information available in bootdev is not always reliable, so you should not trust it too much. The parsing code is the same as in boot2.c, and cannot cover all cases -- as it is, it seems to work fine with floppies and IDE disks recognised by the BIOS. It _should_ work as well with SCSI disks recognised by the BIOS. Booting from a CDROM in floppy emulation will return /dev/fd0 (because this is what the BIOS tells us). Booting off the network (e.g. with etherboot) leaves bootdev unset so the value will be printed as "invalid (0xffffffff)". Finally, this feature might go away at some point, hopefully when we have a more reliable way to get the same information. MFC-after: 5 days
* Check the <channel> arg a bit more.sos2002-03-102-5/+12
| | | | Submitted by: David Malone <dwmalone@maths.tcd.ie>
* Document `sysctl variable=/dev/foo' syntax.dd2002-03-101-2/+24
| | | | | PR: 34184 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
* Remove inappropriate .Op calls in examples.dd2002-03-102-4/+4
| | | | | PR: 35689 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Minor English fixes.dd2002-03-101-2/+2
| | | | | PR: 35730 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Update headerssos2002-03-042-2/+2
|
* A bit of premptive GEOM POLA magic: If we don't get a virgin disklabelphk2002-03-032-12/+32
| | | | from /dev/food0, then try from /dev/f00d0c, in strange cases this work.
* Add the RAID rebuild command.sos2002-03-032-3/+14
|
* Add a new "-S" flag to dump to allow it just print out dump estimateiedowse2002-03-012-5/+20
| | | | | | | | | size and then exit. PR: bin/35450 Submitted by: Mark Hannon <markhannon@optushome.com.au> Obtained from: NetBSD MFC after: 1 week
* Show standard deviation.ume2002-03-013-10/+11
| | | | | | | PR: bin/35433 Submitted by: Morten Rodal <morten@rodal.no>, Maxim Konovalov <maxim@macomnet.ru> MFC after: 1 week
* Fix "make release.4" breakage.matusita2002-02-282-3/+6
| | | | | | | | | | | | | | | | | | | | | | src/contrib/isc-dhcp/includes/minires/resolv.h has a 'extern' definition but it makes an error when linking crunched binary just like this: dhclient.lo: In function `MRres_nquery': dhclient.lo(.text+0x2dcce): undefined reference to `__h_errno_set' dhclient.lo(.text+0x2dd5b): undefined reference to `__h_errno_set' dhclient.lo: In function `MRres_nquerydomain': dhclient.lo(.text+0x2de53): undefined reference to `__h_errno_set' The author understands this will be a problem (see comments in resolv.h). Murray said that the author will fix this, but as a temporary solution, modifying the source code and not to use __h_errno_set. BTW, I'm sorry that previous commitlog in src/sbin/dhclient/Makefile should read "Found by:" instead of "Confirmed by"; I just found that rev 1.15 has a typo so fixed. Tested on: ushi.jp.FreeBSD.org with today's 5-current source code. (belive me, "make release.4" works fine now)
* Some style(9) whitespace fixes and a correction to the copyright.brooks2002-02-281-22/+24
|
* For unbraking "make release": s/client/common/gmatusita2002-02-281-7/+7
| | | | | | (these files are sitting in src/contrib/isc-dhcp/common, not .../client.) Confirmed by: 5.0-CURRENT-20020228-JPSNAP at snapshots.jp.FreeBSD.org
* Use network byte order for the ICMP sequence number. This is onlyfenner2002-02-271-6/+8
| | | | | significant when monitoring packets on another system, since otherwise the ICMP sequence number is only used by the ping client.
* Introduce a version field to `struct xucred' in place of one of thedd2002-02-271-1/+2
| | | | | | | | | | | | spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code. Reviewed by: rwatson
* Add some ifdef(RELEASE_CRUNCH) goo to explicitly list the requisitemurray2002-02-261-0/+48
| | | | | object files for crunchgen. Without this patch, release.4 will fail to build the crunched binaries for the release floppies.
* #include <sys/time.h> instead of depending on namespace pollution inbde2002-02-251-3/+3
| | | | | | | <sys/stat.h> for its prerequisite <sys/time.h>. #include <sys/param.h> in the correct place instead of bogusly including <sys/types.h>.
* 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
OpenPOWER on IntegriCloud