summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* gsched(8) was first released with FreeBSD 8.1uqs2010-07-301-1/+1
| | | | MFC after: 3 days
* Fix typo.pjd2010-07-291-1/+1
| | | | | | PR: docs/149033 Submitted by: Kolar <hsn@sendmail.cz> MFC after: 3 days
* - Avoid calling the copy constructor when it is not necessary.lulf2010-07-291-4/+3
|
* - Remove unused instance of string.lulf2010-07-291-1/+0
|
* Small typo fix: s/ommited/omittedbcr2010-07-271-2/+2
| | | | | | PR: docs/148977 Submitted by: Warren Block (wblock at wonkity dot com) MFC after: 4 days
* Document that the "ngtee" action no longer accepts packet, andglebius2010-07-271-4/+2
| | | | | | | | thus don't depend on one_pass flag anymore. This is a POLA violation, but it is quite difficult to restore the old behavior with new code. Also, the new behavior matches behavior of the older "tee" action, and this is more intuitive.
* Export PCI IDs of ATA/SATA controllers through CAM and ata(4) layers tomav2010-07-251-0/+10
| | | | | GEOM. This information needed for proper soft-RAID's on-disk metadata reading and writing.
* Clarify that the "number of bytes per sector"-range in thebcr2010-07-251-2/+2
| | | | | | | | | | | -S option is meant to be "inclusive". The original issue of the PR was already fixed. PR: docs/142418 Submitted by: David Naylor (naylor dot b dot david at gmail dot com) No objection from: kib MFC after: 5 days
* Note that foreground fsck should be run after a filesystem related panic.mckusick2010-07-231-0/+9
| | | | | Suggested by: Mikhail Teterin (mi@) MFC after: 1 week
* Document that SI unit suffixes are supported for -b and -s optionsae2010-07-231-7/+11
| | | | | | | | | of add verb. Mention about maximum size limit for "freebsd-boot" partition. It should be smaller than 545 KB (hardcoded in pmbr). Show usage of SI unit suffixes in example. Approved by: mav (mentor) MFC after: 1 week
* Note that foreground fsck should be run after a filesystem related panic.mckusick2010-07-221-0/+11
| | | | | Suggested by: Mikhail Teterin (mi@) MFC after: 1 week
* Actually, only the fullsync mode is implemented, not memsync mode.pjd2010-07-221-3/+5
| | | | | | Correct manual page. MFC after: 3 days
* better printing of headers when listing flowsluigi2010-07-151-8/+18
|
* Do not bzero() NULL pointer on malloc() error.mav2010-07-141-1/+1
| | | | Submitted by: Dmitry Luhtionov
* o Restore missed flag in the synopsis.maxim2010-07-131-1/+1
| | | | | | PR: docs/148534 Submitted by: Warren Block MFC after: 1 week
* o Add -q flag to usage().maxim2010-07-131-1/+1
| | | | MFC after: 1 week
* o Add -q flag to the synopsis.maxim2010-07-131-1/+2
| | | | | | PR: docs/148535 Submitted by: Warren Block MFC after: 1 week
* When dhclient obtains a lease, it runs dhclient-script and expectsbrian2010-07-071-16/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | it to configure the interface. When the script is complete, dhclient monitors the routing socket and will terminate if its address is deleted or if its interface is removed or brought down. Because the routing socket is already open when dhclient-script is run, dhclient ignores address deletions for 10 seconds after the script was run. If the address that will be obtained is already configured on the interface before dhclient starts, and if dhclient-script takes more than 10 seconds (perhaps due to dhclient-*-hooks latencies), on script completion, dhclient will immediately and silently exit when it sees the RTM_DELADDR routing message resulting from the script reassigning the address to the interface. This change logs dhclient's reason for exiting and also changes the 10 second timeout to be effective from completion of dhclient-script rather than from when it was started. We now ignore RTM_DELADDR and RTM_NEWADDR messages when the message contains no interface address (which should not happen) rather than exiting. Not reviewed by: brooks (timeout) MFC after: 3 weeks
* - Permit zero length directories as a handled inconsistency. This allowsjeff2010-07-061-46/+115
| | | | | | | | | directory truncation to proceed before the link has been cleared. This is accomplished by detecting a directory with no . or .. links and clearing the named directory entry in the parent. - Add a new function ino_remref() which handles the details of removing a reference to an inode as a result of a lost directory. There were some minor errors in various subcases of this routine.
* Fix the clear function which has been broken for a bit.mjacob2010-07-041-6/+17
| | | | MFC after: 1 week
* Let boot(8) refer to the uart(4) serial driver, which is the replacementbcr2010-07-041-3/+3
| | | | | | | | | for the obsolete sio(4) driver. PR: docs/144498 Submitted by: Bruce Cran (bruce at cran dot org dot uk) Approved by: marcel MFC after: 2 weeks
* sysctlbyname() returns -1 on error and sets errno. It doesmarcel2010-07-031-10/+8
| | | | not return the error itself.
* Correct explanation for idle and standby subcommands' -t argument.mav2010-07-011-5/+7
|
* - Don't assign the return value from read(2) to a variable of typejh2010-06-301-6/+8
| | | | | | | | | | int. - Use errx(3) instead of err(3) to print the error message on short reads in readlabel(). errno won't be set on short reads which can easily occur here due to the fixed size read request. PR: 144307 Reviewed by: bde
* Expand system into my_system, and add the necessary tidyness that weimp2010-06-292-2/+95
| | | | | | | | | | need. Close the pidfile. Then close all descriptors >= 3 to avoid information leakage to children. This solves the problem of not being able to restart devd when you have, for example, a dhclient forked to configure your network... MFC after: 3 days
* Improve fsck robustness for SU+J cases:delphij2010-06-222-60/+117
| | | | | | | | | | - Use err/errx only when the case is really fatal. For other cases, fall back to full fsck instead of quiting fsck. - Plug a memory leak. - Avoid divide by zero when printing summary. - Output "FILE SYSTEM IS MARKED CLEAN" when a successful journal recovering is done. - When -f is specified, do full fsck instead of journal recovery.
* Check for overflow before it occurs. Also add check forae2010-06-211-2/+2
| | | | | | | negative numbers. Suggested by: ache Approved by: kib (mentor)
* Remove G_TYPE_ASCLBA type and replace it with G_TYPE_STRING in gpart.ae2010-06-215-177/+210
| | | | | | | | | | | | | | | Move code that converts params from humanized numbers to sectors count to subr.c and adjust comment. Add post-processing for "size" and "start offset" params in gpart, now they are properly converted to sectors count with known sector size that can be greater that 512 bytes. Also replace "unsigned long long" type to "off_t" for unify code since it used for medium size in libgeom(3) and DIOCGMEDIASIZE ioctl. PR: bin/146277 Reviewed by: marcel (previous version) Approved by: kib (mentor) MFC after: 1 month
* Small style fixes:ed2010-06-201-32/+16
| | | | | | - ANSIfy prototypes. - Remove unneeded whitespace. - Add const keyword to function where it can be used.
* Fix some style(9), although there's a lot more issues here.brian2010-06-205-24/+34
| | | | | | | | | Fix some casting errors. PR: 142384 Submitted by: giffunip at tutopia dot com Obtained from: NetBSD MFC after: 3 weeks
* mdoc nitpicking for gsched.8uqs2010-06-191-3/+3
| | | | | | | | | | - remove stray argument [1] - remove stray whitespace - use canonical wording for the HISTORY section PR: docs/147119 [1] Submitted by: Alexander Best <alexbestms@wwu.de> [1] MFC after: 1 week
* Call free and freeaddrinfo before exiting.brucec2010-06-161-14/+35
| | | | | | | | PR: bin/144730 PR: bin/144974 Submitted by: Earl R. Lapus <earl.lapus at gmail.com> Approved by: rrs (mentor) MFC after: 1 month
* Correct various log messages.pjd2010-06-142-3/+3
| | | | | Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* Fix typos.pjd2010-06-141-7/+7
| | | | MFC after: 3 days
* Initialize gctl_seq for synchronization requests.pjd2010-06-141-1/+4
| | | | | | | Reported by: hiroshi@soupacific.com Analysed by: Mikolaj Golub <to.my.trociny@gmail.com> Tested by: hiroshi@soupacific.com, Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* Plug memory leak.pjd2010-06-141-0/+1
| | | | | | Found by: Coverity Prevent CID: 7057 MFC after: 3 days
* Plug memory leak.pjd2010-06-141-0/+1
| | | | | | Found by: Coverity Prevent CID: 7056 MFC after: 3 days
* Plug memory leak.pjd2010-06-141-0/+2
| | | | | | Found by: Coverity Prevent CID: 7051 MFC after: 3 days
* Plug memory leaks.pjd2010-06-141-6/+10
| | | | | | Found by: Coverity Prevent CID: 7052, 7053, 7054, 7055 MFC after: 3 days
* Remove macros that are not really needed. The idea was to have them in casepjd2010-06-141-20/+12
| | | | | | | | | | | we grow more descriptors, but I'll reconsider readding them once we get there. Passing (a = b) expression to FD_ISSET() is bad idea, as FD_ISSET() evaluates its argument twice. Found by: Coverity Prevent CID: 5243 MFC after: 3 days
* Eliminate dead code.pjd2010-06-141-3/+1
| | | | | | Found by: Coverity Prevent CID: 5158 MFC after: 3 days
* Remove dead variable assignmentsuqs2010-06-113-4/+2
| | | | | Found by: clang static analyzer Verified by: md5(1)
* Initialize variables before usage.uqs2010-06-112-0/+2
| | | | | Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 7736, 7760)
* bgeom(3) does strdup of param name.ae2010-06-071-0/+1
| | | | | | | | Don't leak memory when deleting param from gctl_req. Reviewed by: marcel Approved by: mav (mentor) MFC after: 2 weeks
* - Mention that VTOC8 labels are found in Fujitsu SPARC64 machines as well.marius2010-06-031-14/+43
| | | | | | | | | | | - Add information regarding VTOC8 bootrstrap code and how it's handled with r208777 in place. - Document the mapping of partition types to VTOC8 tags. - Add examples for VTOC8 to the respective section. - Eliminated hard sentence breaks. Reviewed by: marcel (slightly buggy version) MFC after: 3 days
* - In gpart_bootfile_read() fix an off-by-one error preventing the bootstrapmarius2010-06-031-37/+102
| | | | | | | | | | | | | file to be of maximum size. - Add special handling required for SMI/VTOC8 disklabel partcode, i.e. avoid overwriting the label when writing the bootstrap code to the partition starting at 0 and install it to all partitions when the -i option is omitted just like geom_sunlabel(4) and sunlabel(8) do by default. - Add missing prototypes. - Add const where applicable. Reviewed by: marcel MFC after: 3 days
* Clarify devfs manpages slightly.jilles2010-05-291-0/+1
| | | | | | | | | | mount(8): add xref to devfs(5) devfs(5): change example to something more likely to be useful (it is not necessary to mount a devfs on /dev manually, but for chroots/jails it is often needed), mention since when devfs is preferred to device nodes on ufs PR: 146600 MFC after: 2 weeks
* mdoc: .Ud has attitude, it takes no argument!uqs2010-05-271-1/+1
|
* Add support to background fsck to delete zero-length directories.mckusick2010-05-202-1/+33
|
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-191-1/+1
| | | | Reviewed by: ru
OpenPOWER on IntegriCloud