summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* - Round up the journal size to the block size so we don't confuse fsck.jeff2010-05-181-4/+8
| | | | | | | | | | | Reported by: Mikolaj Golub <to.my.trociny@gmail.com> - Only require 256k of blocks per-cg when trying to allocate contiguous journal blocks. The storage may not actually be contiguous but is at least within one cg. - When disabling SUJ leave SU enabled and report this to the user. It is expected that users will upgrade SU filesystems to SUJ and want a similar downgrade path.
* Teach gpart about bootcode on APM.nwhitehorn2010-05-161-1/+1
|
* Use setresuid/setresgid to drop privilegeskevlo2010-05-161-2/+8
|
* Document the 'short preamble' capability for 802.11bg.bz2010-05-141-1/+9
| | | | | Reviewed by: sam MFC after: 4 days
* fsirand(8): make WARNS=3 cleanuqs2010-05-142-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Drop bogus quad_t cast for di_gen, it is a 32bit type - Print di_gen with leading zeros, to get consistent output Before this change, amd64 would print: ino 18 gen 616ca2bd ino 19 gen ffffffff95c2a3ff ino 20 gen 25c3a3d5 ino 21 gen 8dc1472 ino 22 gen 3797056b ino 23 gen 1d47853a ino 24 gen ffffffff82d26995 After the change ino 18 gen 616ca2bd ino 19 gen 95c2a3ff ino 20 gen 25c3a3d5 ino 21 gen 08dc1472 ino 22 gen 3797056b ino 23 gen 1d47853a ino 24 gen 82d26995 PR: bin/139994 (sort of) Reviewed by: mckusick
* mdoc: move remaining sections into consistent orderuqs2010-05-133-44/+44
| | | | | | | This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. Found by: mdocml lint run Reviewed by: ru
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-138-46/+46
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* Fix grammar in a line of output.brueffer2010-05-121-1/+1
| | | | | | PR: 145343 Submitted by: Hywel Mallett <hywel@hmallett.co.uk> MFC after: 1 week
* Casting size_t to uintmax_t is not necessary anymore. This alsobrueffer2010-05-121-3/+2
| | | | | | | | | removes the need for stdint.h inclusion. PR: 146046 Submitted by: Alexander Best <alexbestms@wwu.de> Reviewed by: kan MFC after: 1 week
* Final update to current version of head in preparation for reintegration.mckusick2010-05-0617-42/+236
|\
| * Make SATA XPT negotiate and enable some additional SATA features, such as:mav2010-05-021-0/+4
| | | | | | | | | | | | | | - device initiated power management (some devices support only this way); - Automatic Partial to Slumber Transition (more power saving); - DMA auto-activation (expected to slightly improve performance). More features could be added later, when hardware supports.
| * Add -d and -f arguments to `camcontrol cmd`, to execute DMA ATA commands.mav2010-05-022-3/+21
| |
| * Improve usage of tunefs:edwin2010-05-011-3/+4
| | | | | | | | | | | | | | Document -j switch in usage() to reflect recent SUJ work. Submitted by: Alastair Hogge MFC after: 1 week
| * - Use the path to the filesystem mountpoint to look up the statfsjeff2010-04-301-4/+4
| | | | | | | | | | | | | | | | structure so that we correctly reload. Note that tunefs doesn't properly detect the need to reload if the disk device is specified for a read-only mounted filesystem. - Lessen the contiguity requirement for the journal so that it is more likely to succeed.
| * Default connection timeout is way too long. To make it shorter we have topjd2010-04-291-3/+75
| | | | | | | | | | | | | | | | | | make socket non-blocking, connect() and if we get EINPROGRESS, we have to wait using select(). Very complex, but I know no other way to define connection timeout for a given socket. Reported by: hiroshi@soupacific.com MFC after: 3 days
| * - Check if the worker process was killed by signal and restart it.pjd2010-04-291-18/+26
| | | | | | | | | | | | | | - Improve logging. Pointed out by: Garrett Cooper <yanefbsd@gmail.com> MFC after: 3 days
| * Fix a problem where hastd will stuck in recv(2) after sending request topjd2010-04-2910-3/+87
| | | | | | | | | | | | | | | | | | | | secondary, which died between send(2) and recv(2). Do it by adding timeout to recv(2) for primary incoming and outgoing sockets and secondary outgoing socket. Reported by: Mikolaj Golub <to.my.trociny@gmail.com> Tested by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
| * Restart worker thread only if the problem was temporary.pjd2010-04-281-3/+9
| | | | | | | | | | | | In case of persistent problem we don't want to loop forever. MFC after: 3 days
| * Mark temporary issues as such.pjd2010-04-281-2/+2
| | | | | | | | MFC after: 3 days
| * Use WEXITSTATUS() to obtain real exit code.pjd2010-04-281-2/+3
| | | | | | | | MFC after: 3 days
| * Don't assume that "resource" property is in metadata.pjd2010-04-281-1/+1
| | | | | | | | | | Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
| * Bump man page date.rpaulo2010-04-281-1/+1
| |
| * Fix typos.rpaulo2010-04-282-3/+3
| | | | | | | | Obtained from: DragonFlyBSD
* | Update to current version of head.mckusick2010-04-2854-1151/+5243
|\ \ | |/
| * - Temporarily lower WARNS until I fix alignment warnings on sparc64.jeff2010-04-241-0/+2
| | | | | | | | Reported by: Florian Smeets
OpenPOWER on IntegriCloud