summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Userspace part of reroot support. This makes it possible to changetrasz2015-11-085-22/+316
| | | | | | | | | | | | | the root filesystem without full reboot, using "reboot -r". This can be used to to eg. boot from a temporary md_image preloaded by loader(8), setup an iSCSI session, and continue booting from rootfs mounted over iSCSI. Reviewed by: kib@, bapt@ MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3693
* savecore(8): Be quiet unless the user asks for verbosecem2015-11-071-7/+10
| | | | | | | Make savecore(8) more suitable for init-time scripts; be quiet by default. Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3229
* Follow-up to r290475: Add sysctl(8) support for added typescem2015-11-071-28/+81
| | | | Sponsored by: EMC / Isilon Storage Division
* Always check the return value of lseek.asomers2015-11-061-6/+4
| | | | | | | | | | | | This is a follow-up to r289845, which only fixed one occurence of CID 1009429. Coverity CID: 1009429 Reviewed by: markj MFC after: 2 weeks X-MFC-With: r289845 Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D4096
* Add sysctl to control LACP strict compliance defaultsmh2015-11-061-1/+16
| | | | | | | | | | | | | Add net.link.lagg.lacp.default_strict_mode which defines the default value for LACP strict compliance for created lagg devices. Also: * Add lacp_strict option to ifconfig(8). * Fix lagg(4) creation examples. * Minor style(9) fix. MFC after: 1 week
* ifconfig: fix padding for '<ifname> scan' command outputavos2015-11-061-2/+2
| | | | | | | (S:N and beacon interval fields). Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4085
* Implement `ipfw internal olist` command to list named objects.ae2015-11-032-0/+42
| | | | | | Reviewed by: melifaro Obtained from: Yandex LLC Sponsored by: Yandex LLC
* pfctl: Fix uninitialised veriablekp2015-11-011-0/+1
| | | | | | | | | In pfctl_set_debug() we used 'level' without ever initialising it. We correctly parsed the option, but them failed to actually assign the parsed value to 'level' before performing to ioctl() to configure the debug level. PR: 202996 Submitted by: Andrej Kolontai
* Use more appropriate ${SHAREDIR} rather than /usr/share.bdrewery2015-10-271-2/+2
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Limit RESOLUTION_MAX to INT_MAX, not UINT_MAX (all spelled out) so thengie2015-10-251-1/+1
| | | | | | | | | | | | | | mode value isn't always clipped to -1 when (resolution * size) == 32, which would have been the case with values => {4i,32b,32t}. This seems to have been broken in r64382. MFC after: 1 week X-MFC with: r289915 PR: 200619 Reported by: Michael Baptist Submitted by: Lars Skodje Sponsored by: EMC / Isilon Storage Division
* Fix various Coverity issues in sbin/savecore/savecore.c:asomers2015-10-231-6/+6
| | | | | | | | | | | | | CID1009429: Fix unchecked return value from lseek while clearing dump CID1007781: Fix file descriptor leak in DoFile CID1007261: Don't send potentially unterminated string to syslog(3) Coverity CID: 1009429 Coverity CID: 1007781 Coverity CID: 1007261 MFC after: 2 weeks Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D3991
* sysctl(8): Fix style nitscem2015-10-231-5/+6
| | | | | Suggested by: bde Sponsored by: EMC / Isilon Storage Division
* Sysctl: Add common support for U8, U16 typescem2015-10-221-0/+28
| | | | Sponsored by: EMC / Isilon Storage Division
* Fix a ton of speelling errorseadler2015-10-217-12/+12
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* newfs_msdos: use NetBSD's mkfs_msdos.h verbatim for makefs compatibilityemaste2015-10-201-42/+50
| | | | Sponsored by: The FreeBSD Foundation
* Make libxo depend on libutil because it uses humanize_number after r287111ngie2015-10-181-1/+1
| | | | | | | | Remove overlinking in lib/libxo/tests, sbin/savecore, and usr.bin/{iscsictl,wc,xo} PR: 203673 Sponsored by: EMC / Isilon Storage Division
* Replace /dev/acd0 with /dev/cd1ngie2015-10-171-3/+3
| | | | | | | | | | atapicd(4) has been removed since r249083, and if a system has more than one optical drive, it will likely be /dev/cd1 Update mount.conf(8) to reflect the change in behavior MFC after: never Sponsored by: EMC / Isilon Storage Division
* newfs_msdos: prefer snprintf to sprintfemaste2015-10-161-1/+1
| | | | | Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
* newfs_msdos: move mkfs_msdos to separate file for later use in makefsemaste2015-10-154-835/+918
| | | | Sponsored by: The FreeBSD Foundation
* newfs_msdos: rework option parsing to match NetBSDemaste2015-10-151-125/+162
| | | | | | | | | | NetBSD split newfs_msdos in two so that they can reuse the file system creation part in makefs. This change is a step on the path of bringing that support to FreeBSD. Reviewed by: kib, pfg Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3905
* Replace references to /dev/acd0 with /dev/cd0ngie2015-10-131-2/+2
| | | | | | | | atapicd(4) was replaced by cd(4) with the atacam work done by mav@ and then removed in r249083 X-MFC to: stable/10 MFC after: 2 weeks
* casperd: bump default socket queue length to SOMAXCONN; make length ↵adrian2015-10-132-6/+18
| | | | | | | | | | | | | configurable. The current default listen queue for casperd is too small (8) and hard-coded. This patch increases the default to SOMAXCONN, and introduces a command line flag that can used to further increase or decrease the queue length. PR: bin/202147 Submitted by: <lidl@pix.net>
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-126-18/+1
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Remove compatibility shims for legacy ATA device names.mav2015-10-111-3/+0
| | | | | We got new ATA stack in FreeBSD 8.x, switched to it at 9.x, completely removed old stack at 10.x, so at 11.x it is time to remove compat shims.
* Add 'p' postfix to mdconfig(8).trasz2015-10-102-6/+9
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Make geom_nop(4) collect statistics on all types of BIOs, not justtrasz2015-10-101-4/+5
| | | | | | | | | | reads and writes. PR: kern/198405 Submitted by: Matthew D. Fuller <fullermd at over-yonder dot net> MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3679
* Only print the errno string in case sysctl(3) does not file with ENOENTbapt2015-10-071-1/+5
| | | | | | | | | | | | | | | This reduces the noise in error reporing from sysctl(8): Before: $ sysctl bla=something sysctl: unknown oid 'bla': No such file or directory After: $ sysctl bla=something sysctl: unknown oid 'bla' MFC after: 1 week Sponsored by: Gandi.net
* Trim spaces at the end of the buffer before trying to convert it to an oidbapt2015-10-071-0/+6
| | | | | | | | This allows to write entries in sysctl.conf with spaces before the '=' like kern.ipc.shmmax = 9663676416 MFC after: 1 week Sponsored by: Gandi.net
* Now that we own the code, use arc4random(3) unconditionallydelphij2015-10-061-1/+1
| | | | | | and remove the corresponding HAVE_ARC4RANDOM conditions. MFC after: 2 weeks
* Fix possible segmentation fault.ae2015-10-031-1/+1
| | | | | PR: 203494 MFC after: 1 week
* META_MODE: For some reason meta mode cannot generate the intermediate tab.cbdrewery2015-10-021-6/+18
| | | | | | | | files. Split up all of the targets to be more clear on how they are generated to fix the problem. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Disable suspend when we're shutting down. This solves the "tell FreeBSDcperciva2015-10-011-0/+14
| | | | | | | | | | | | to shut down; close laptop lid" scenario which otherwise tended to end with a laptop overheating or the battery dying. The implementation uses a new sysctl, kern.suspend_blocked; init(8) sets this while rc.suspend runs, and the ACPI sleep code ignores requests while the sysctl is set. Discussed on: freebsd-acpi (35 emails) MFC after: 1 week
* Replace N #defines with nitems to simplify ifconfig code slightlyngie2015-09-2715-59/+23
| | | | MFC after: 1 week
* Add SUBDIR_PARALLEL.bdrewery2015-09-261-1/+2
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Remove disconnected directories.bdrewery2015-09-264-68/+0
| | | | | | These were added disconnected in 2005 in r145524. Sponsored by: EMC / Isilon Storage Division
* META_MODE: Remove DEP_MACHINE from Makefile.depend files.bdrewery2015-09-254-8/+0
| | | | | | This has not been needed since r246865 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.bdrewery2015-09-254-8/+0
| | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* Fix two cases where "const" were washed off pointers with strchr(3)phk2015-09-251-4/+6
|
* Fix /sbin/route to never look up (invalid) interface names through DNSrstone2015-09-171-0/+3
| | | | | | | | | | | | | /sbin/route has a bug where if it is passed an interface name that does not exist, it falls through and winds up interpreting it as a hostname. It fails out eventually, but on a system where DNS lookup is broken you can end up waiting for up to 60 seconds waiting for the DNS lookup to timeout. I'm not quite sure what happens if the DNS lookup somehow succeeds but I doubt that can end well. Reviewed by: markj, cem MFC after: 2 weeks Sponsored by: EMC/Isilon Storage Division
* Update META_MODE dependencies.bdrewery2015-09-172-0/+7
|
* Make ifconfig always exit with an error code if an important ioctl failsallanjude2015-09-161-9/+6
| | | | | | | | | | | | PR: 203062 Arm Twisting by: Kristof Provost Reviewed by: kp Approved by: bapt (mentor) MFC after: 2 weeks Relnotes: yes Sponsored by: ScaleEngine Inc. Sponsored by: vBSDCon Differential Revision: https://reviews.freebsd.org/D3644
* Add a way to specify stripesize and stripeoffset to gnop(8). This makestrasz2015-09-152-3/+11
| | | | | | | | | it possible to "simulate" 4K media, to eg test alignment handling. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3664
* - Remove #ifdef HAVE_POLL_H.hrs2015-09-101-4/+2
| | | | | | - Use nitems(). MFC after: 3 days
* - Remove GIF_{SEND,ACCEPT}_REVETHIP.hrs2015-09-101-10/+3
| | | | | | - Simplify EADDRNOTAVAIL and EAFNOSUPPORT conditions. MFC after: 3 days
* The dumpfs(8) utility doesn't actually use disktab(5); remove ittrasz2015-09-031-1/+0
| | | | | | | from "SEE ALSO". MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix markup.trasz2015-09-021-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* It's 2015, and some people are still trying to use fdisk and thentrasz2015-09-029-14/+18
| | | | | | | | | | | | | go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead. Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first. Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3315
* pf: Remove support for 'scrub fragment crop|drop-ovl'kp2015-08-272-8/+3
| | | | | | | | | | | | | | The crop/drop-ovl fragment scrub modes are not very useful and likely to confuse users into making poor choices. It's also a fairly large amount of complex code, so just remove the support altogether. Users who have 'scrub fragment crop|drop-ovl' in their pf configuration will be implicitly converted to 'scrub fragment reassemble'. Reviewed by: gnn, eri Relnotes: yes Differential Revision: https://reviews.freebsd.org/D3466
* Code cleanup unused-but-set-variable spotted by gcc.araujo2015-08-251-2/+0
| | | | | Approved by: bapt (mentor) Differential Revision: D3475
* Code cleanup unused-but-set-variable spotted by gcc.araujo2015-08-253-14/+4
| | | | | | Reviewed by: melifaro Approved by: bapt (mentor) Differential Revision: D3473
OpenPOWER on IntegriCloud