summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Remove two lint directives that aren't needed since rev 1.5.obrien2001-03-301-2/+0
|
* This change sanitizes the way fsck deals with pass numbers.phk2001-03-304-61/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consider this /etc/fstab: # Device Mountpoint FStype Options Dump Pass# /dev/ad1s1b none swap sw 0 0 /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1e /home ufs rw 2 2 /dev/ad1s1e /tmp ufs rw 2 2 /dev/ad1s1f /usr ufs rw 2 2 /dev/ccd0c /syv ufs rw 2 11 proc /proc procfs rw 0 0 ccd0c is striped over /dev/ad0f and /dev/ad1g Without this pass, fsck in preen mode will check ad0s1a first, and then issue three processes in parallel: One process doing ad0s1e One process doing ad1s1e and ad1s1f One process doing ccd0c There is no way to tell it that ccd0c overlaps ad0 and ad1. With the patch, it will do it this way: pass 2: One process doing ad0s1e One process doing ad1s1e and ad1s1f and when they are complete: pass 11: One process doing ccd0c This is much faster and more sane. Valid pass numbers are anything from 1 to INTMAX-1. I retired the '-l' option which tried to allow people to do something like this, but which didn't work and which complicated the code an awful lot.
* Allow specification of which source address to use for encapsulation.phk2001-03-281-3/+18
| | | | | PR: 25847 Submitted by: Eugene Polovnikov <eugene@brain-fag.org>
* Make rev 1.5 better match the rest of dump(8)'s output.obrien2001-03-271-2/+2
|
* Do not exit if unable to read /etc/dumpdates or create it.obrien2001-03-271-2/+4
| | | | | | 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.
* give the "netgrent" functions a home in netdb.halfred2001-03-271-5/+0
|
* Rewrite of the CAM error recovery code.ken2001-03-272-113/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the major changes include: - The SCSI error handling portion of cam_periph_error() has been broken out into a number of subfunctions to better modularize the code that handles the hierarchy of SCSI errors. As a result, the code is now much easier to read. - String handling and error printing has been significantly revamped. We now use sbufs to do string formatting instead of using printfs (for the kernel) and snprintf/strncat (for userland) as before. There is a new catchall error printing routine, cam_error_print() and its string-based counterpart, cam_error_string() that allow the kernel and userland applications to pass in a CCB and have errors printed out properly, whether or not they're SCSI errors. Among other things, this helped eliminate a fair amount of duplicate code in camcontrol. We now print out more information than before, including the CAM status and SCSI status and the error recovery action taken to remedy the problem. - sbufs are now available in userland, via libsbuf. This change was necessary since most of the error printing code is shared between libcam and the kernel. - A new transfer settings interface is included in this checkin. This code is #ifdef'ed out, and is primarily intended to aid discussion with HBA driver authors on the final form the interface should take. There is example code in the ahc(4) driver that implements the HBA driver side of the new interface. The new transfer settings code won't be enabled until we're ready to switch all HBA drivers over to the new interface. src/Makefile.inc1, lib/Makefile: Add libsbuf. It must be built before libcam, since libcam uses sbuf routines. libcam/Makefile: libcam now depends on libsbuf. libsbuf/Makefile: Add a makefile for libsbuf. This pulls in the sbuf sources from sys/kern. bsd.libnames.mk: Add LIBSBUF. camcontrol/Makefile: Add -lsbuf. Since camcontrol is statically linked, we can't depend on the dynamic linker to pull in libsbuf. camcontrol.c: Use cam_error_print() instead of checking for CAM_SCSI_STATUS_ERROR on every failed CCB. sbuf.9: Change the prototypes for sbuf_cat() and sbuf_cpy() so that the source string is now a const char *. This is more in line wth the standard system string functions, and helps eliminate warnings when dealing with a const source buffer. Fix a typo. cam.c: Add description strings for the various CAM error status values, as well as routines to look up those strings. Add new cam_error_string() and cam_error_print() routines for userland and the kernel. cam.h: Add a new CAM flag, CAM_RETRY_SELTO. Add enumerated types for the various options available with cam_error_print() and cam_error_string(). cam_ccb.h: Add new transfer negotiation structures/types. Change inq_len in the ccb_getdev structure to be "reserved". This field has never been filled in, and will be removed when we next bump the CAM version. cam_debug.h: Fix typo. cam_periph.c: Modularize cam_periph_error(). The SCSI error handling part of cam_periph_error() is now in camperiphscsistatuserror() and camperiphscsisenseerror(). In cam_periph_lock(), increase the reference count on the periph while we wait for our lock attempt to succeed so that the periph won't go away while we're sleeping. cam_xpt.c: Add new transfer negotiation code. (ifdefed out) Add a new function, xpt_path_string(). This is a string/sbuf analog to xpt_print_path(). scsi_all.c: Revamp string handing and error printing code. We now use sbufs for much of the string formatting code. More of that code is shared between userland the kernel. scsi_all.h: Get rid of SS_TURSTART, it wasn't terribly useful in the first place. Add a new error action, SS_REQSENSE. (Send a request sense and then retry the command.) This is useful when the controller hasn't performed autosense for some reason. Change the default actions around a bit. scsi_cd.c, scsi_da.c, scsi_pt.c, scsi_ses.c: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Selection timeouts shouldn't be covered by a sense flag. scsi_pass.[ch]: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Get rid of the last vestiges of a read/write interface. libkern/bsearch.c, sys/libkern.h, conf/files: Add bsearch.c, which is needed for some of the new table lookup routines. aic7xxx_freebsd.c: Define AHC_NEW_TRAN_SETTINGS if CAM_NEW_TRAN_CODE is defined. sbuf.h, subr_sbuf.c: Add the appropriate #ifdefs so sbufs can compile and run in userland. Change sbuf_printf() to use vsnprintf() instead of kvprintf(), which is only available in the kernel. Change the source string for sbuf_cpy() and sbuf_cat() to be a const char *. Add __BEGIN_DECLS and __END_DECLS around function prototypes since they're now exported to userland. kdump/mkioctls: Include stdio.h before cam.h since cam.h now includes a function with a FILE * argument. Submitted by: gibbs (mostly) Reviewed by: jdp, marcel (libsbuf makefile changes) Reviewed by: des (sbuf changes) Reviewed by: ken
* The common wisdom is to use the largest number of cylinders per group.obrien2001-03-271-3/+4
| | | | | | So bump the default from `16' to `22', which is the largest value allowed with the current default block size. This change increases the the group size from 32MB/g to 44MB/g on a 4GB SCSI disk.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-2692-25/+95
| | | | - MAN[1-9] -> MAN.
* Don't call daemon() and setup our signal handlers until after we checkalfred2001-03-251-41/+34
| | | | | | | | | | | | | and do the unregister/reregister work. Don't call syslog in the unregister/reregister code as we haven't called openlog() yet. Be a more conservative about accepting errno values from socket(2), only EPROTONOSUPPORT means that the kernel isn't supporting it something like INET6. The other possible errnos would be returned if there was a mistake in the socket(2) call so remove them from the list of "acceptable" return values.
* Disable ipv6 when getnetconfigent("udp6"/"tcp6") fails.alfred2001-03-251-1/+2
| | | | Submitted by: Martin Blapp <mb@imp.ch>
* Replace pmap_unset() with rpcb_unset() which fixes the unregistering.alfred2001-03-251-2/+2
| | | | Submitted by: Martin Blapp <mb@imp.ch>
* Deal with lack of IPv6 support gracefully.alfred2001-03-251-4/+8
| | | | Submitted by: Martin Blapp <mb@imp.ch>
* fix -o port=xxxalfred2001-03-251-5/+8
|
* Respect style(9), one must not include both <sys/types.h> androberto2001-03-221-1/+0
| | | | | | <sys/param.h> (the latter includes the former). Submitted by: bde
* Include headers to unbreak world.alfred2001-03-211-0/+2
| | | | Submitted by: Ollivier Robert <roberto@eurocontrol.fr>
* Additions to run checks on live filesystems. This change will notmckusick2001-03-2112-168/+399
| | | | | | | | | affect current systems until fsck is modified to use these new facilities. To try out this change, set the fsck passno to zero in /etc/fstab to cause the filesystem to be mounted without running fsck, then run `fsck_ffs -p -B <filesystem>' after the system has been brought up multiuser to run a background cleanup on <filesystem>. Note that the <filesystem> in question must have soft updates enabled.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* Set the default manual section for sbin/ to 8.ru2001-03-2083-94/+39
|
* Reboot(8) normally waits 5 seconds after sending SIGTERMs to alliedowse2001-03-201-10/+32
| | | | | | | | | | processes and then sends SIGKILLs. If a lot of processes are swapped out, this delay may not be long enough, so processes such as an X server may be killed before they have had time to clean up properly. Make this delay more dynamic by waiting up to 60 seconds for swap page-in activity to end. While I'm here, ANSIfy and remove a `register' specifier.
* mdoc(7) police: fixes to the previous revision:ru2001-03-201-2/+8
| | | | | | - fixed bad formatting - avoid using German - removed hard sentence break
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-195-764/+1450
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* Fix minor mdoc(7) and spelling nits.ru2001-03-191-4/+4
|
* Activate atacontrolsos2001-03-191-0/+1
|
* Some minor cleanups to the code, no new functionality.sos2001-03-191-44/+62
|
* Incorporate most of Ruslans changes plus minor addtion by mesos2001-03-191-32/+48
|
* Correct typo in usage.ume2001-03-181-1/+1
| | | | Submitted by: David Malone <dwmalone@maths.tcd.ie>
* It is the ``nostrictjoliet'' option equivalent to -b.ru2001-03-161-2/+2
| | | | Reviewed by: bp
* Back out ru's changes. Soren has requested this and I see no reasonimp2001-03-164-187/+98
| | | | | | to not just do it. It is his new code that is being actively developed so he has say over it. ru's direct changes were premature as they occurred less than 4 hours after it was committed to the tree.
* mdoc(7) police: removed hard sentence break introduced in rev 1.82.ru2001-03-161-1/+2
|
* Explain that TCP fragments with an offset of 1 are reported as beingdd2001-03-161-1/+2
| | | | | | | | dropped by rule -1 if logging is enabled. PR: 25796 Submitted by: Crist J. Clark <cjclark@alum.mit.edu> Approved by: nik
* Make this compile with ${BDECFLAGS}, apply style(9), cleanup manpage.ru2001-03-154-98/+187
|
* Add atacontrol, a util to control variuos aspects of the ATA.4 driver,sos2001-03-153-0/+302
| | | | please consult atacontrol.8 for usage..
* mdoc(7) police: add a missing An call.ru2001-03-121-1/+2
|
* Update userland interface for broken Joilet disks.bp2001-03-112-2/+12
| | | | Reviewed by: adrian
* In the absence of explicit ``-t type'' option assume that ``-f file''sobomax2001-03-091-1/+6
| | | | | | implies ``-t vnode''. Approved by: phk
* Make md(4) and mdconfig(8) take over the role of vn(4) and vnconfig(8)phk2001-03-092-2/+16
| | | | | | | entirely as previously advertised. md(4) adopted all assets of vn(4) some time back and has proper devfs support and cloning abilities to boot.
* 1) If mdconfig isn't given an action argument, it assumes detach.phk2001-03-091-4/+5
| | | | | | | | | 2) Running `mdconfig -l` without any attached devices results in mdconfig printing "md0" to standard output. Submitted by: dd [1] [1] no, not "dd(1)" but "Dima Dorfman"
* Add new option -m which allows the user to set IP TTL.ru2001-03-092-12/+34
|
* bye-bye documented raw devicesobrien2001-03-091-3/+3
|
* bye-bye documented raw deviceobrien2001-03-091-3/+3
|
* Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,obrien2001-03-085-47/+5
| | | | and remove leading `r'(aw) from it.
* Restore the -c option, which was accidentally removed from the getoptdes2001-03-061-1/+1
| | | | string two revisions ago.
* mdoc(7) police: misc formatting fixes.ru2001-03-052-56/+100
| | | | (This page still needs a lot of work.)
* First attempt to not overflow in disk space calculations. Use off_timp2001-03-052-10/+10
| | | | | for the size variable used to calculate the size of the partition. Also use ULL suffix for constants to ensure that we use 64 bit math.
* Fix style nit.obrien2001-03-042-2/+2
|
* Correct grammar in comment.kris2001-03-041-3/+3
|
* Support inheritance of the "nodump" flag down a hierarchy.obrien2001-03-032-26/+82
| | | | | Submitted by: Dima Dorfman <dima@unixfreak.org> Obtained from: NetBSD
* Fix typo present since 1997: single used mode -> single user mode.asmodai2001-03-031-1/+1
|
OpenPOWER on IntegriCloud