aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Sync with HEAD.David E. O'Brien2013-02-0837-532/+1205
|\ | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * Bump .Dd for the change in r246121.Niclas Zeising2013-02-051-1/+1
| | | | | | | | | | | | | | Approved by: joel (mentor) Notes: svn path=/head/; revision=246361
| * Use stripesize as smallest block size if it's available.Xin LI2013-02-041-0/+5
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=246329
| * Retire struct sockaddr_inarp.Gleb Smirnoff2013-01-311-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since ARP and routing are separated, "proxy only" entries don't have any meaning, thus we don't need additional field in sockaddr to pass SIN_PROXY flag. New kernel is binary compatible with old tools, since sizes of sockaddr_inarp and sockaddr_in match, and sa_family are filled with same value. The structure declaration is left for compatibility with third party software, but in tree code no longer use it. Reviewed by: ru, andre, net@ Notes: svn path=/head/; revision=246143
| * Improve devd startup time, by tweaking some string handling routines that areIan Lepore2013-01-302-25/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | heavily used when parsing config files. Mostly these changes avoid making temporary copies of the strings, and avoid doing byte at a time append operations, on the most-used code path. On a 1.2 GHz ARM processor this reduces the time to parse the config files from 13 to 6 seconds. Reviewed by: imp Approved by: cognet (mentor) Notes: svn path=/head/; revision=246134
| * Fix a descriptor leak in devd. Clients reading /var/run/devd.pipe can closeIan Lepore2013-01-302-14/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | their socket connection any time, and devd only notices that when it gets an error trying to write an event to the client. On a system with no device change activity, clients could connect and disappear repeatedly without devd noticing, leading to an ever-growing list of open socket descriptors in devd. Now devd uses poll(2) looking for POLLHUP on all existing clients every time a new client connection is established, and also periodically (once a minute) to proactively find zombie clients and reap the socket descriptors. It also now has a connection limit, configurable with a new -l <num> command line arg. When the maximum number of connections is reached it stops accepting new connections until some current clients drop off. Reviewed by: imp Approved by: cognet (mentor) Notes: svn path=/head/; revision=246121
| * Expand description of how gptboot and gptzfsboot choose a partition forWarren Block2013-01-251-11/+28
| | | | | | | | | | | | | | | | | | | | booting. Reviewed by: ae MFC after: 1 week Notes: svn path=/head/; revision=245910
| * newfs_msdos: cosmetical cleanupsPedro F. Giffuni2013-01-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Simplify diagnostic messages. - Adopt lowercase first letters to make the messages more canonical. PR: bin/175404 Submitted by: Christoph Mallon Reviewed by: bde MFC after: 3 days Notes: svn path=/head/; revision=245648
| * For Promise/AMD metadata add support for disks with capacity above 2TiBAlexander Motin2013-01-171-2/+1
| | | | | | | | | | | | | | and for volumes with sector size above 512 bytes. Notes: svn path=/head/; revision=245522
| * Correct prefix for "locally installed things"Eitan Adler2013-01-161-1/+1
| | | | | | | | | | | | | | | | Approved by: cperciva MFC After: 3 days Notes: svn path=/head/; revision=245492
| * Allow to insert new component to geom_raid3 without specifying number.Alexander Motin2013-01-152-3/+5
| | | | | | | | | | | | | | | | PR: kern/160562 MFC after: 2 weeks Notes: svn path=/head/; revision=245456
| * Use the right format string for line buffer.Xin LI2013-01-131-1/+1
| | | | | | | | | | | | | | | | PR: bin/174910 Submitted by: Fabian Keil <fk fabiankeil.de> Notes: svn path=/head/; revision=245361
| * Add no_prefer_iface option.Hajimu UMEMOTO2013-01-093-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | It stops treating the address on the interface as special by source address selection rule even when the interface is outgoing interface. This is desired in some situation. Requested by: hrs Reviewed by: IHANet folks including hrs MFC after: 1 week Notes: svn path=/head/; revision=245230
| * Fix -iface and -interface modifiers.Hiroki Sato2013-01-081-14/+14
| | | | | | | | | | | | | | Spotted by: Ian FREISLICH Notes: svn path=/head/; revision=245168
| * Use tabs for indentation.Konstantin Belousov2013-01-051-5/+5
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=245074
| * Do not round up the size of the UFS filesystem to the fragment sizeKonstantin Belousov2013-01-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | when comparing its size with the size of the media, to determine if the last disk block is unused. Submitted by: Andreas Longwitz <longwitz@incore.de> Reviewed by: pjd MFC after: 2 weeks Notes: svn path=/head/; revision=245072
| * Document the output of the show command. Modified version of patchWarren Block2013-01-031-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | provided by Bas Smeelen <b.smeelen@ose.nl>. Use of 'gpart list' suggested by by Andrey V. Elsukov <ae@FreeBSD.org>. PR: docs/174270 Submitted by: Ronald F.Guilmette <rfg@tristatelogic.com> Reviewed by: ae (block sizes) MFC after: 1 week Notes: svn path=/head/; revision=245012
| * Allow to specify "cache" and "nocache" as an option forKonstantin Belousov2013-01-031-23/+26
| | | | | | | | | | | | | | | | | | | | mount_nullfs(8). Tested by: pho MFC after: 2 weeks Notes: svn path=/head/; revision=245005
| * pflogd does not depend on libutilAntoine Brodin2013-01-011-1/+1
| | | | | | | | Notes: svn path=/head/; revision=244929
| * Fix socket calls on error post-r243965.Kevin Lo2012-12-213-3/+3
| | | | | | | | | | | | | | Submitted by: Garrett Cooper Notes: svn path=/head/; revision=244538
| * - Fix strtol() error handling.Hiroki Sato2012-12-161-16/+35
| | | | | | | | | | | | | | | | | | | | | | - Add a range condition of given FIB number and the related error messages. - Fix free() problem. Spotted by: Artyom Mirgorodskiy Discussed with: glebius Notes: svn path=/head/; revision=244325
| * With rotating kernel dumps the higest dump number is not necessarily thePawel Jakub Dawidek2012-12-161-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | last one. To make it easier to find the last one create symlinks with 'last' suffix that will point to the files of the last coredump, eg.: info.last -> info.5 textdump.tar.last.gz -> textdump.tar.5.gz Reviewed by: avg Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244321
| * Implement -m option to savecore(8) that allows to limit number of kernelPawel Jakub Dawidek2012-12-162-21/+96
| | | | | | | | | | | | | | | | | | | | dumps stored. Once the limit is reached it restarts from 0. Reviewed by: avg Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244320
| * Make use of the fact that we changed working directory to the dump directoryPawel Jakub Dawidek2012-12-161-4/+3
| | | | | | | | | | | | | | | | | | earlier. Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244319
| * Minor wording improvments to some manual pagesEitan Adler2012-12-161-1/+1
| | | | | | | | | | | | | | | | | | Approved by: bcr (mentor) Obtained from: DragonflyBSD (a5294ca835317c68c919ab43936da4f05ab6e926) MFC after: 3 days Notes: svn path=/head/; revision=244318
| * Sort flags properly.Pawel Jakub Dawidek2012-12-161-3/+3
| | | | | | | | | | | | | | Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244317
| * Prefer snprintf() over sprintf().Pawel Jakub Dawidek2012-12-161-5/+5
| | | | | | | | | | | | | | Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244316
| * When growing a filesystem, don't leave unused space at the endEdward Tomasz Napierala2012-12-161-7/+10
| | | | | | | | | | | | | | | | | | if there is not enough room for a full cylinder group. Reviewed by: mckusick@ Notes: svn path=/head/; revision=244295
| * Fix extending filesystems of weird size by making sure the actual sizeEdward Tomasz Napierala2012-12-151-0/+6
| | | | | | | | | | | | | | is always multiple of fragment size. Notes: svn path=/head/; revision=244243
| * - When checking if a dump exists on the given device there is no need toPawel Jakub Dawidek2012-12-142-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | provide dump directory. Eliminate this redundant argument. This changes the usage, but the only risk here is that a warning will be printed about directory given as device. - Update usage of -C option. - When clearing dump header from the given device there is also no need to provide dump directory, although additional arguments for -c were not documented. - Document that -v can be used with -c and that list of devices can be given. Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244218
| * The clear option (-c) is not compatible with keep (-k) and compress (-z)Pawel Jakub Dawidek2012-12-141-0/+2
| | | | | | | | | | | | | | | | | | options. Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244217
| * If we are not going to clear the dump (we are either just checking if the dumpPawel Jakub Dawidek2012-12-141-2/+2
| | | | | | | | | | | | | | | | | | exists or we want to keep it), open device read-only. Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244216
| * Whitespace cleanups.Pawel Jakub Dawidek2012-12-141-6/+6
| | | | | | | | Notes: svn path=/head/; revision=244215
| * Teach sysctl(8) about parsing a file (while I'm there also give itXin LI2012-12-132-62/+175
| | | | | | | | | | | | | | | | | | | | capability of parsing both = and : formats). Submitted by: hrs (initial version, bugs are mine) MFC after: 3 months Notes: svn path=/head/; revision=244198
| * Make Tflag and Wflag filters work for more sysctl options.Alfred Perlstein2012-12-121-11/+11
| | | | | | | | | | | | | | | | To do this move the Tflag and Wflag checks earlier in show_var() so we bail earlier for variables not matching our query. Notes: svn path=/head/; revision=244133
| * Allow sysctl to filter boot and runtime tunables.Alfred Perlstein2012-12-112-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following flags to sysctl: -W - show only writable sysctls -T - show only tuneable sysctls This can be used to create a /var/run/sysctl.boot to compare set tunables versus booted tunables. Sponsored by: iXsystems Notes: svn path=/head/; revision=244106
| * In parse():Xin LI2012-12-111-6/+5
| | | | | | | | | | | | | | | | | | | | | | - Only operate on copy, don't operate on source. - Eliminate home-rolled strsep(). - Constify the parameter. MFC after: 2 weeks Notes: svn path=/head/; revision=244104
| * Document the new NFS mount options added by r244042.Rick Macklem2012-12-091-1/+13
| | | | | | | | | | | | | | This is a content change. Notes: svn path=/head/; revision=244055
| * A number of places in the source tree still reference cuad.* afterEitan Adler2012-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | sio(4) was deprecated by uart(4). s/cuad/cuau/g/ PR: docs/171533 Reviewed by: imp Approved by: cperciva (implicit) MFC after: 3 weeks Notes: svn path=/head/; revision=244040
| * Prefer the use of initalizer lists to ctor assignment.Eitan Adler2012-12-062-3/+2
| | | | | | | | | | | | | | | | Approved by: cperciva MFC after: 2 weeks Notes: svn path=/head/; revision=243932
| * Avoid the creation of a temporary object by using the prefix operatorEitan Adler2012-12-061-9/+9
| | | | | | | | | | | | | | | | | | | | for non-primitive types. Approved by: cperciva MFC after: 2 weeks Notes: svn path=/head/; revision=243931
| * Constify where possibleEitan Adler2012-12-062-7/+7
| | | | | | | | | | | | | | | | Approved by: cperciva MFC after: 2 weeks Notes: svn path=/head/; revision=243930
| * Fix an old bug in devd, where it uses std::sort() to sort the variousDimitry Andric2012-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lists it reads from its configuration files on the priority field. Because some items in the lists have the same priority, and std::sort() is not stable, the exact order in which the items are enumerated does not have to correspond to the order they appear in the configuration files. Apparently this was never noticed with libstdc++, but with libc++ it could cause the "uhid" entry from /etc/devd/usb.conf to be used instead of the "ums" entry (which is earlier in the file). This caused the problem described in the PR: the USB mouse module was never loaded, and the other actions (such as starting moused) were not executed. To fix the problem, make devd use std:stable_sort() instead. Reported by: Jan Beich <jbeich@tormail.org> PR: bin/172958 MFC after: 2 weeks Notes: svn path=/head/; revision=243907
| * - Move definition of V_deembed_scopeid to scope6_var.h.Hiroki Sato2012-12-051-10/+0
| | | | | | | | | | | | | | | | | | - Deembed scope id in L3 address in in6_lltable_dump(). - Simplify scope id recovery in rtsock routines. - Remove embedded scope id handling in ndp(8) and route(8) completely. Notes: svn path=/head/; revision=243903
| * Fix fallout from r243019, which broke parsing of shortened networkGleb Smirnoff2012-12-041-0/+7
| | | | | | | | | | | | | | | | | | prefixes. Reported and tested by: delphij Notes: svn path=/head/; revision=243867
| * - Fix LOR in sa6_recoverscope() in rt_msg2()[1].Hiroki Sato2012-12-042-2/+13
| | | | | | | | | | | | | | | | | | | | - Check V_deembed_scopeid before checking if sa_family == AF_INET6. - Fix scope id handing in route(8)[2] and ifconfig(8). Reported by: rpaulo[1], Mateusz Guzik[1], peter[2] Notes: svn path=/head/; revision=243866
| * Flush stdout after RTM_IFANNOUNCE message.Gleb Smirnoff2012-12-041-0/+1
| | | | | | | | | | | | | | | | PR: bin/151600 Submitted by: Eric van Gyzen <eric vangyzen.net> Notes: svn path=/head/; revision=243860
| * No need to be root when running with -t or -d.Gleb Smirnoff2012-12-041-2/+2
| | | | | | | | Notes: svn path=/head/; revision=243859
| * Mark non-returning function as suchEitan Adler2012-11-291-1/+1
| | | | | | | | | | | | | | | | | | PR: bin/172978 Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=243665
| * Disallow attaching preloaded memory disks via ioctl.Jaakko Heinonen2012-11-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The feature is dangerous because the kernel code didn't check validity of the memory address provided from user space. - It seems that mdconfig(8) never really supported attaching preloaded memory disks. - Preloaded memory disks are automatically attached during md(4) initialization. Thus there shouldn't be much use for the feature. PR: kern/169683 Discussed on: freebsd-hackers Notes: svn path=/head/; revision=243372