summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Rename 'status' command to 'list' and introduce new 'status' which producesmarck2013-03-142-5/+71
| | | | | | | | | | more terse output more observable for both scripts and humans. Also, it shifts hastctl closer to GEOM utilities with their list/status command pairs. Approved by: pjd MFC after: 4 weeks
* Removed redundant includes.pjd2013-03-141-10/+0
|
* Correct type for DIOCGSTRIPESIZE. Without this theredelphij2013-03-141-1/+1
| | | | | | | | | would be a stack overflow which will crash the program later. PR: bin/176953 Submitted by: r4721 tormail org MFC after: 3 days
* Minor mdoc fixes.joel2013-03-141-1/+4
|
* Add legacy support to geom raid to create a /dev/arX device for supportsbruno2013-03-081-0/+3
| | | | | | | | | | | | | | | of upgrading older machines using ataraid(4) to newer releases. This optional parameter is controlled via kern.geom.raid.legacy_aliases and will create a /dev/ar0 device that will point at /dev/raid/r0 for example. Tested on Dell SC 1425 DDF-1 format software raid controllers installing from stable/7 and upgrading to stable/9 without having to adjust /etc/fstab Reviewed by: mav Obtained from: Yahoo! MFC after: 2 Weeks
* Use build_iovec() to make it less cryptic. This also fixes warnings.jkim2013-03-062-32/+13
|
* GC unused mount_* directories. mount_reiserfs was disconnected from buildjkim2013-03-059-772/+0
| | | | with r158666. mount_ext2fs and mount_std were disconnected with r164527.
* Update the manual page to reflect reality. With r138509 and r152355,jkim2013-03-051-3/+3
| | | | | | | "nostrictjoliet" option for mount_cd9660(8) was completely replaced with "brokenjoliet" somehow. MFC after: 3 days
* GC unused variables. Prefer NULL over 0 for pointers.jkim2013-03-058-25/+21
|
* Do not suddenly fail on some rulesets if -n (syntax check only) is specifiedmelifaro2013-03-041-4/+13
| | | | | | and ipfw(4) module is not loaded. MFC after: 2 weeks
* devd: Correct typo in comment.eadler2013-03-041-1/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use simpler dst += *x instead of str.append(x, 1).eadler2013-03-041-6/+6
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use string::empty() instea of string::length() == 0.eadler2013-03-041-1/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Remove unnecessary empty default constructors.eadler2013-03-041-2/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Remove empty virtual destructor from class, which has noch subclasses.eadler2013-03-041-1/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Avoid unnecessary temporary objects (and simplify the code) when ↵eadler2013-03-041-3/+3
| | | | | | | handling std::string. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use the standard constructor of std::string instead of string("").eadler2013-03-041-1/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Simplify while (1) { if (x) break; } to while (!x) {}.eadler2013-03-041-3/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Remove call to _exit() from signal handler, which also sets a stop flag.eadler2013-03-041-1/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use volatile sig_atomic_t for the flag set by a signal handler.eadler2013-03-041-2/+2
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* Constify where possible.eadler2013-03-042-2/+2
| | | | Approved by: cperciva (mentor)
* Implement buffer size checking in ipfw(8) add cmd.melifaro2013-03-033-62/+125
| | | | | | PR: bin/65961 Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> MFC after: 2 weeks
* Fix ipfw table argument parsing/printing.melifaro2013-03-021-54/+92
| | | | | | | | Fix style. PR: kern/175909 Submitted by: Daniel Hagerty <hag@linnaean.org> MFC after: 2 weeks
* Garbage collect NTFS bits which are now completely disconnected fromattilio2013-03-023-473/+0
| | | | | | the tree since few months. This patch is not targeted for MFC.
* Garbage collect HPFS bits which are now already completely disconnectedattilio2013-03-023-358/+0
| | | | | | | | from the tree since few months (please note that the userland bits were already disconnected since a long time, thus there is no need to update the OLD* entries). This is not targeted for MFC.
* The .journal file needs to reside on the ROOTINO which must not extendpho2013-02-271-1/+1
| | | | beyond direct blocks. A typo caused this check to fail.
* Fix typo in EFI GPT GUID.benno2013-02-271-1/+1
|
* Clarify that overriding the -h/-D flags through flags in device.hintsn_hibma2013-02-261-4/+3
| | | | only works for sio(4) but not for uart(4) which no longer has this flag.
* Fix casting.trociny2013-02-261-5/+5
| | | | MFC after: 3 days
* 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.
OpenPOWER on IntegriCloud