summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 'file system' > filesystemtrhodes2002-05-061-12/+18
| | | | | | | add FILES section. PR: 34239 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Address a few minor style and consistency issues in revision 1.32.iedowse2002-05-061-23/+15
| | | | Submitted by: Joshua Goodall <joshua@roughtrade.net>
* Make argument to printf match format.marcel2002-05-061-1/+1
|
* Fix a couple of problems which could cause panics at runtime:luigi2002-05-051-51/+56
| | | | | | | | | | | | | | | | + setting a bandwidth too large for a pipe (above 2Gbit/s) could cause the internal representation (which is int) to wrap to a negative number, causing an infinite loop in the kernel; + (see PR bin/35628): when configuring RED parameters for a queue, the values are not passed to the kernel resulting in panics at runtime (part of the problem here is also that the kernel does not check for valid parameters being passed, but this will be fixed in a separate commit). These are both critical fixes which need to be merged into 4.6-RELEASE. MFC after: 1 day
* Fix the fallback to mount(2) with RELENG_4 kernels and -CURRENTmux2002-05-051-2/+23
| | | | | | utilities by catching SIGSYS. Submitted by: bde
* - revert back to vmcore.#fenner2002-05-053-109/+271
| | | | | | | | | | | | | | - reimplement -z - use syslog() - improve consistancy of messages - allow -f to recover cleared dumps - return bufsize to 1024 * 1024 - return the ability to write sparse files - update man page - fix minfree to require 2k for info file instead of the kernel size - include Berkeley copyright too due to amount of old code copied Submitted by: Chad David <davidc@acns.ab.ca>
* Restore the minfree functionality into savecore. This patchmux2002-05-041-7/+80
| | | | | | | | restores the check_space() function with small modifications to make it work with the current code. The patch was slightly modified by Bill Fenner to handle error messages better. Reviewed by: fenner
* Swap the order of mount and nmount calls. We now call nmountmux2002-05-021-14/+14
| | | | | first, since all the consumers of mount_std in the tree have been converted to nmount.
* Set the permissions on restored symbolic links.iedowse2002-05-021-1/+19
| | | | | PR: bin/37665 Submitted by: "Michael C. Adler" <mad1@tapil.com>
* Minor bug fixes uncovered while working on UFS2.mckusick2002-05-022-2/+2
| | | | They should have no effect on existing systems.
* Make this compile and not segfault on ia64. ptr = strdup("foo"); ispeter2002-05-011-3/+4
| | | | | | fatal if the declaration of strdup() isn't in scope. The upper 32 bits of the pointer are lost since it defaults to returning "int". Fix some warnings while here, including trying to make gcc-3.1 happy.
* Add a hack so that fdisk(8) can initialize an ia64 disk. There ispeter2002-05-011-0/+10
| | | | | no /boot/mbr to read the boot code from (ia64 does not *have* bootblocks!). fdisk depended on magic in the /boot/mbr file to initialize some fields.
* Enlighten those who read the FINE POINTS of the documentation a bitcjc2002-05-011-3/+14
| | | | | | | | | more on how ipfw(8) deals with tiny fragments. While we're at it, add a quick log message to even let people know we dropped a packet. (Note that the second FINE POINT is somewhat redundant given the first, but since the code is there, leave the docs for it.) MFC after: 1 day
* Add partition type for IBM's JFS.grog2002-04-281-0/+1
| | | | Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
* Rename the file used to specify the nextboot to make it clear that thiswes2002-04-261-1/+1
| | | | | | | is a loader configuration file and can be used for more than just a kernel name. Submitted by: Gordon Tetlow <gordont@gnf.org>
* Add a -k option to reboot to specify the kernel to boot next timewes2002-04-262-5/+34
| | | | | | | | | | | | | | | | around. If the kernel boots successfully, the record of this kernel is erased, it is intended to be a one-shot option for testing kernels. This could be improved by having the loader remove the record of the next kernel to boot, it is currently removed in /etc/rc immediately after disks are mounted r/w. I'd like to MFC this before the 4.6 freeze unless there is violent objection. Reviewed by: Several on IRC MFC after: 4 days
* vinum_start: examine storage array devices, not just disks.grog2002-04-261-3/+4
| | | | | | | Submitted by: Holger Kipp <holger.kipp@alogis.com> PR: 37458 MFC after: 5 days (to get 4.6 code freeze)
* Remove the -v option, it is now default behaviour.phk2002-04-242-17/+5
| | | | Sponsored by: DARPA & NAI Labs
* Continue the cleanup preparations for UFS2 (& GEOM):phk2002-04-243-168/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use only one filedescriptor. Open in R/O or R/W based in the '-N' option. Make the filedescriptor a global variable instead of passing it around as semi-global variable(s). Remove the undocumented ability to specify type without '-T' option. Replace fatal() with straight err(3)/errx(3). Save calls to strerror() where applicable. Loose the progname variable. Get the sense of the cpgflag test correct so we only issue warnings if people specify cpg and can't get that. It can be argued that this should be an error. Remove the check to see if the disk is mounted: Open for writing would fail if it were mounted. Attempt to get the sectorsize and mediasize with the generic disk ioctls, fall back to disklabel and /etc/disktab as we can. Notice that on-disk labels still take precedence over /etc/disktab, this is probably wrong, but not as wrong as the entire concept of /etc/disktab is. Sponsored by: DARPA & NAI Labs.
* Unbreak NFS mounts when mount(8) is invoked as : mount path@server.mux2002-04-231-1/+5
| | | | Reviewed by: obrien
* Do our best to determine if the user is attempting an NFS mount whenmux2002-04-221-6/+19
| | | | | | | | | | | the filesystem type isn't given in the command line. In the case of an IPv6 address containing ':', one must use the '@' separator for it to be properly parsed (mount_nfs(8) still needs fixing at the moment though). PR: bin/37230 Reviewed by: obrien MFC after: 1 week
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-228-19/+19
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Add mount_udf and mount_smbfs to crossrefs.dwmalone2002-04-211-0/+2
| | | | | PR: 37200 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
* Add FBSDID. Start errx(3) messages with lowercase. Remove a ')' with no '('.charnier2002-04-211-14/+15
| | | | | | In usage(), use fprintf(3) instead of errx(3), to make the printed string really start with `usage: ...'. Reviewed by: marcel
* Use `The .Nm utility'charnier2002-04-201-4/+5
|
* Add character translation table between Unix and NetWare accordingbp2002-04-201-9/+9
| | | | | | | to Sweden standards. Submitted by: Roger Olofsson <roger.olofsson@kommun.engelholm.se> MFC after: 1 week
* Use `The .Nm utility'charnier2002-04-192-8/+10
|
* Push the .info file contents out when we're done so people canphk2002-04-191-0/+1
| | | | read the description while the megs shift from one place to another.
* just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.suz2002-04-192-1/+61
| | | | | | | (based on freebsd4-snap-20020128) Reviewed by: ume MFC after: 1 week
* De-__P, use ansi function definitionsimp2002-04-184-268/+117
|
* Fix the fdisk(8) manual page.trhodes2002-04-182-112/+115
| | | | | | | | | s/partition/slice/ in fdisk.8 fix a bug in fdisk(8) where it did not honer -t when using -I PR: 36563 and 35688 Submitted by: bde Reviewed by: bde
* Replaced exists() tests with two equivalent defined().ru2002-04-182-2/+2
| | | | | LIBDIR is defined in bsd.own.mk but sys.mk no longer includes bsd.own.mk as of revision 1.60.
* dump(8)'s manual page is confusing in its use of records, blocks,trhodes2002-04-171-13/+26
| | | | | | | | | | | blocksizes, etc does not give the default of -b only mentiones rdump in the NAME section uses both filesystem and file system in similar contexts PR: 34248 Submitted by: Gary W. Swearingen <swear@blarg.net> MFC after: 3 days
* Expand the reserved space section. Explain how the amount of reservedkeramida2002-04-161-4/+12
| | | | | | space can affect performance. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
* Change reference URLs.kuriyama2002-04-161-2/+2
| | | | | | Submitted by: Olivier Tharan <olivier.tharan@idealx.com> PR: docs/37094 MFC after: 1 week
* disklabel(8) manual page:trhodes2002-04-152-54/+50
| | | | | | | | | | | | | --change "-s newboot" to "-s newboot2" in an example --Fixed spelling --Fixed some confusion between slice/parition/primary partition and other things. PR: 35947 and 35951 Noticed by: Gary W. Swearingen <swear@blarg.net> Reviewed by: keramida Thanks to: grog MFC after: 2 days
* Sync with UDF p4 tree: Properly initialize part of the mntopts.asmodai2002-04-152-2/+2
| | | | Move to WARNS=1.
* Take the "tickadj" element out of struct clockinfo. Our adjtime(2)phk2002-04-151-2/+2
| | | | | implementation is being changed and the very concept of tickadj will no longer be meaningful.
* Actually add the UDF files!scottl2002-04-143-0/+225
|
* Add a filesystem driver for the Universal Disk Format. For more info,scottl2002-04-141-0/+1
| | | | | | | see http://people.freebsd.org/~scottl/udf MFC after: when asmodai gets the backport done Prodded by: phk asmodai des
* Do not use perl where sed is more than adequate.obrien2002-04-131-1/+4
|
* High-level changes (user visible):marcel2002-04-131-56/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | o Implement -c (clear) to clear previously kept headers (note that dumps not cleared will remain until -c is used), o Implement -f (force) to allow re-saving a previously saved dump, o Implement -k (keep) and make clearing the dump header the default, o Implement -v (verbose) and make most output conditional upon it, o Emit minimal output for the non-verbose case with the assumption that savecore is run mostly from within /etc/rc, o Update usage message to reflect what is and what's not, o mark -d as obsolete. Low-level changes: o Rename devname to device, for devname mirrors a global declaration and GCC 3.x warns about it, o Open the dump device R/W for clear and !keep to work, o Reorder the locals of DoFile according to style(9), o Remove newlines from strings passed to warn* and err*, o Use stat(2) to check if a dump has been saved before, o Truncate existing core and info files to support force, o First check for the magic and the version before we complain about parity errors. This prevents emitting parity error messages when there's no dump, o Keep track of the number of headers found and the number of headers saved to support the minimal output, o Close files we opened in DoFile. Not critical, but cleaner.
* I don't know what the MAINTAINER means in src/ part of FreeBSD.ru2002-04-121-2/+0
| | | | | | | | | I'll still be overseeing the changes that go into natd(8) and will maintain it the way I see it, non-preventing for the rest of developers. I will re-ask for the MAINTAINER bit if the ${MAINTAINER} gets defined.
* restore(8) manual page does not explain rrestore.trhodes2002-04-121-0/+4
| | | | | PR: 34234 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Removed the cruft that became cruft after rev. 1.4.ru2002-04-121-5/+1
| | | | Fixed CLEANFILES.
* Update dumpon manual page to explain single/multi-user usabilitytrhodes2002-04-091-6/+4
| | | | | PR: 36465 No Objections from: ru
* GC kget(1), userconfig is long dead.phk2002-04-094-199/+0
|
* Rename DIOCGKERNELDUMP to DIOCSKERNELDUMP as it strictly speakingphk2002-04-091-4/+4
| | | | | | is a "set" not a "get" operation. Sponsored by: DARPA & NAI Labs.
* Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>.phk2002-04-082-2/+2
| | | | Sponsored by: DARPA & NAI Labs
* Don't set WARNS to 2, we're default compatible now.phk2002-04-082-2/+0
| | | | Noticed by: bde
OpenPOWER on IntegriCloud