summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Sync with HEAD.obrien2013-02-0837-532/+1205
|\
| * Bump .Dd for the change in r246121.zeising2013-02-051-1/+1
| | | | | | | | Approved by: joel (mentor)
| * Use stripesize as smallest block size if it's available.delphij2013-02-041-0/+5
| | | | | | | | MFC after: 2 weeks
| * Retire struct sockaddr_inarp.glebius2013-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@
| * Improve devd startup time, by tweaking some string handling routines that areian2013-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)
| * Fix a descriptor leak in devd. Clients reading /var/run/devd.pipe can closeian2013-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)
| * Expand description of how gptboot and gptzfsboot choose a partition forwblock2013-01-251-11/+28
| | | | | | | | | | | | | | booting. Reviewed by: ae MFC after: 1 week
| * newfs_msdos: cosmetical cleanupspfg2013-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
| * For Promise/AMD metadata add support for disks with capacity above 2TiBmav2013-01-171-2/+1
| | | | | | | | and for volumes with sector size above 512 bytes.
| * Correct prefix for "locally installed things"eadler2013-01-161-1/+1
| | | | | | | | | | Approved by: cperciva MFC After: 3 days
| * Allow to insert new component to geom_raid3 without specifying number.mav2013-01-152-3/+5
| | | | | | | | | | PR: kern/160562 MFC after: 2 weeks
| * Use the right format string for line buffer.delphij2013-01-131-1/+1
| | | | | | | | | | PR: bin/174910 Submitted by: Fabian Keil <fk fabiankeil.de>
| * Add no_prefer_iface option.ume2013-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
| * Fix -iface and -interface modifiers.hrs2013-01-081-14/+14
| | | | | | | | Spotted by: Ian FREISLICH
| * Use tabs for indentation.kib2013-01-051-5/+5
| | | | | | | | MFC after: 2 weeks
| * Do not round up the size of the UFS filesystem to the fragment sizekib2013-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
| * Document the output of the show command. Modified version of patchwblock2013-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
| * Allow to specify "cache" and "nocache" as an option forkib2013-01-031-23/+26
| | | | | | | | | | | | | | mount_nullfs(8). Tested by: pho MFC after: 2 weeks
| * pflogd does not depend on libutilantoine2013-01-011-1/+1
| |
| * Fix socket calls on error post-r243965.kevlo2012-12-213-3/+3
| | | | | | | | Submitted by: Garrett Cooper
| * - Fix strtol() error handling.hrs2012-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
| * With rotating kernel dumps the higest dump number is not necessarily thepjd2012-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
| * Implement -m option to savecore(8) that allows to limit number of kernelpjd2012-12-162-21/+96
| | | | | | | | | | | | | | dumps stored. Once the limit is reached it restarts from 0. Reviewed by: avg Obtained from: WHEEL Systems
| * Make use of the fact that we changed working directory to the dump directorypjd2012-12-161-4/+3
| | | | | | | | | | | | earlier. Obtained from: WHEEL Systems
| * Minor wording improvments to some manual pageseadler2012-12-161-1/+1
| | | | | | | | | | | | Approved by: bcr (mentor) Obtained from: DragonflyBSD (a5294ca835317c68c919ab43936da4f05ab6e926) MFC after: 3 days
| * Sort flags properly.pjd2012-12-161-3/+3
| | | | | | | | Obtained from: WHEEL Systems
| * Prefer snprintf() over sprintf().pjd2012-12-161-5/+5
| | | | | | | | Obtained from: WHEEL Systems
| * When growing a filesystem, don't leave unused space at the endtrasz2012-12-161-7/+10
| | | | | | | | | | | | if there is not enough room for a full cylinder group. Reviewed by: mckusick@
| * Fix extending filesystems of weird size by making sure the actual sizetrasz2012-12-151-0/+6
| | | | | | | | is always multiple of fragment size.
| * - When checking if a dump exists on the given device there is no need topjd2012-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
| * The clear option (-c) is not compatible with keep (-k) and compress (-z)pjd2012-12-141-0/+2
| | | | | | | | | | | | options. Obtained from: WHEEL Systems
| * If we are not going to clear the dump (we are either just checking if the dumppjd2012-12-141-2/+2
| | | | | | | | | | | | exists or we want to keep it), open device read-only. Obtained from: WHEEL Systems
| * Whitespace cleanups.pjd2012-12-141-6/+6
| |
| * Teach sysctl(8) about parsing a file (while I'm there also give itdelphij2012-12-132-62/+175
| | | | | | | | | | | | | | capability of parsing both = and : formats). Submitted by: hrs (initial version, bugs are mine) MFC after: 3 months
| * Make Tflag and Wflag filters work for more sysctl options.alfred2012-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.
| * Allow sysctl to filter boot and runtime tunables.alfred2012-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
| * In parse():delphij2012-12-111-6/+5
| | | | | | | | | | | | | | | | - Only operate on copy, don't operate on source. - Eliminate home-rolled strsep(). - Constify the parameter. MFC after: 2 weeks
| * Document the new NFS mount options added by r244042.rmacklem2012-12-091-1/+13
| | | | | | | | This is a content change.
| * A number of places in the source tree still reference cuad.* aftereadler2012-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
| * Prefer the use of initalizer lists to ctor assignment.eadler2012-12-062-3/+2
| | | | | | | | | | Approved by: cperciva MFC after: 2 weeks
| * Avoid the creation of a temporary object by using the prefix operatoreadler2012-12-061-9/+9
| | | | | | | | | | | | | | for non-primitive types. Approved by: cperciva MFC after: 2 weeks
| * Constify where possibleeadler2012-12-062-7/+7
| | | | | | | | | | Approved by: cperciva MFC after: 2 weeks
| * Fix an old bug in devd, where it uses std::sort() to sort the variousdim2012-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
| * - Move definition of V_deembed_scopeid to scope6_var.h.hrs2012-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.
| * Fix fallout from r243019, which broke parsing of shortened networkglebius2012-12-041-0/+7
| | | | | | | | | | | | prefixes. Reported and tested by: delphij
| * - Fix LOR in sa6_recoverscope() in rt_msg2()[1].hrs2012-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]
| * Flush stdout after RTM_IFANNOUNCE message.glebius2012-12-041-0/+1
| | | | | | | | | | PR: bin/151600 Submitted by: Eric van Gyzen <eric vangyzen.net>
| * No need to be root when running with -t or -d.glebius2012-12-041-2/+2
| |
| * Mark non-returning function as sucheadler2012-11-291-1/+1
| | | | | | | | | | | | PR: bin/172978 Approved by: cperciva MFC after: 3 days
| * Disallow attaching preloaded memory disks via ioctl.jh2012-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
OpenPOWER on IntegriCloud