summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add i/o error counters to hastd(8) and make hastctl(8) displaytrociny2013-02-255-1/+71
| | | | | | | them. This may be useful for detecting problems with HAST disks. Discussed with and reviewed by: pjd MFC after: 1 week
* Fix ARM build by assigning the computed time here tokientzle2013-02-251-2/+2
| | | | a variable of the right type for printf.
* Catch up with internal API changes for initbarea() and getdatablk()pluknet2013-02-241-2/+2
| | | | | | of fsck_ffs introduced with r247212. Submitted by: David Wolfskill <david@catwhisker.org>
* When running with the -d option, instrument fsck_ffs to track the number,mckusick2013-02-247-37/+206
| | | | | | data type, and running time of its I/O operations. No functional changes.
* Reflect CARP media-type departure.pluknet2013-02-211-3/+2
| | | | X-MFC after: never
* Separate items in the list of System values with .Pp to ease readability.pluknet2013-02-211-0/+4
|
* - Add support for 'memsync' mode. This is the fastest replication mode that'spjd2013-02-178-43/+334
| | | | | | | | | | why it will now be the default. - Bump protocol version to 2 and add backward compatibility for version 1. - Allow to specify hosts by kern.hostid as well (in addition to hostname and kern.hostuuid) in configuration file. Sponsored by: Panzura Tested by: trociny
* Remove write only assignments and thus fix the build after struct bufareapluknet2013-02-151-1/+0
| | | | TAILQ conversion (r246812).
* Update fsck_ffs buffer cache manager to use TAILQ macros.mckusick2013-02-152-31/+31
| | | | No functional changes.
* Fix minor memory leak.pjd2013-02-101-0/+1
|
* Assert that if we are not dealing with keyfile we are dealing with passfile.pjd2013-02-101-0/+2
|
* Use arc4random_buf(3) instead of reimplementing it.pjd2013-02-101-21/+5
|
* Mark a mesh path to a mesh gate with a 'G'.monthadar2013-02-071-1/+3
| | | | Approved by: adrian (mentor)
* 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.
OpenPOWER on IntegriCloud