summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Release 6 errata notices for 10.3-RELEASE, all related to Microsoft Hyper-V.glebius2016-08-121-10/+11
| | | | | Submitted by: Dexuan Cui <decui microsoft.com>, gjb Approved by: so
* MFC 285730gnn2016-03-031-1/+1
| | | | | | | | Only report the lack of ALTQ support if pfctl is using verbose (-v) mode. PR: 194935 Submitted by: Jim Thompson Approved by: re (gjb)
* MFC r295969:ae2016-03-021-1/+1
| | | | | | | | Fix bug in filling and handling ipfw's O_DSCP opcode. Due to integer overflow CS4 token was handled as BE. PR: 207459 Approved by: re (gjb)
* MFC r292573asomers2016-01-181-1/+9
| | | | | | | | | | | | | | Fix "mount -a" for NFS and ZFS filesystems with shared mountpoints sbin/mount.c Check whether an fstab entry has the same fstype as a mounted filesystem before declaring it to be mounted. This will allow NFS filesystems that share a mountpoint with a local filesystem to be automatically mounted at boot. This is not such an unusual situation. For example, if somebody uses the standard installer with a ZFS root, he'll get a /usr/home filesystem, even though he may choose to mount /usr/home over NFS.
* MFC r292831: Add SFF-8024 Extended Specification Compliance.melifaro2016-01-171-4/+44
| | | | | Submitted by: markb_mellanox.com Differential Revision: https://reviews.freebsd.org/D4666
* MFC r290689:trasz2016-01-121-8/+9
| | | | | | Fix resource leaks in error cases. Sponsored by: The FreeBSD Foundation
* MFC r290548:trasz2016-01-125-22/+316
| | | | | | | | | | | | Userspace part of reroot support. This makes it possible to change 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. Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3693
* MFC r289110:trasz2016-01-121-4/+5
| | | | | | | | | | Make geom_nop(4) collect statistics on all types of BIOs, not just reads and writes. PR: kern/198405 Submitted by: Matthew D. Fuller <fullermd at over-yonder dot net> Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3679
* MFC: r287842allanjude2016-01-121-9/+6
| | | | | | Make ifconfig always exit with an error code if an important ioctl fails PR: 203062
* MFC r292020asomers2016-01-111-6/+17
| | | | | | | Increase devd's client socket buffer size to 256KB. This is not as large as it looks, because we'll hit the sockbuf's mbuf limit long before hitting its data limit. A 256KB data limit allows creating a ZFS pool on about 450 drives without overflowing the client socket buffers.
* MFC r287429:trasz2016-01-111-1/+0
| | | | | | | The dumpfs(8) utility doesn't actually use disktab(5); remove it from "SEE ALSO". Sponsored by: The FreeBSD Foundation
* MFC r287396:trasz2016-01-119-14/+18
| | | | | | | | | | | It's 2015, and some people are still trying to use fdisk and then 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. Sponsored by: The FreeBSD Foundation
* MFC 289113:trasz2016-01-112-6/+9
| | | | | | Add 'p' postfix to mdconfig(8). Sponsored by: The FreeBSD Foundation
* MFC r292057:ae2016-01-101-11/+1
| | | | | | | | | | | | | | | | Make detection of GPT a bit more reliable. When we are detecting a partition table and didn't find PMBR, try to read backup GPT header from the last sector and if it is correct, assume that we have GPT. Differential Revision: https://reviews.freebsd.org/D4282 MFC r292058: Remove a note about damaged PMBR. Now GPT will be detected automatically with such corruption. Relnotes: yes
* MFC r289677:bdrewery2016-01-076-7/+7
| | | | Fix a ton of speelling errors
* MFC: r292266 & r292947smh2016-01-062-7/+24
| | | | | | Add flag to disable inital reboot(8) userland sync Sponsored by: Multiplay
* MFC r287920:rstone2016-01-051-0/+3
| | | | | | | | | | | | | | | Fix /sbin/route to never look up (invalid) interface names through DNS /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
* MFC r292048:ngie2015-12-171-5/+6
| | | | | | | | | | | Don't leak rsector/sector in mp_label(..) Use calloc instead of malloc + memset(.., 0, ..) when allocating sector Differential Revision: https://reviews.freebsd.org/D4450 Reported by: cppcheck Reviewed by: mav Sponsored by: EMC / Isilon Storage Division
* MFC r292005:ngie2015-12-161-0/+1
| | | | | | | | Call va_end on ap when vsnprintf fails in run_cmd(..) to clean up the variable state Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
* MFC r290236kp2015-12-151-0/+1
| | | | | | | | | | | pfctl: Fix uninitialised veriable 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
* MFC r291329:bdrewery2015-12-045-9/+0
| | | | Remove redundant DPSRCS which were already in SRCS.
* MFC r290083:bdrewery2015-12-041-2/+2
| | | | Use more appropriate ${SHAREDIR} rather than /usr/share.
* MFC r291207:smh2015-11-301-4/+19
| | | | | | Fix dumpon compatibility with dumpdev kenv Sponsored by: Multiplay
* MFC r290450:smh2015-11-131-1/+16
| | | | | | Add sysctl to control LACP strict compliance default Sponsored by: Multiplay
* MFC r289913,r289916:ngie2015-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | r289913: Use 't' (bits) not 'i' (bytes) for describing MRIE (aka "Method of Reporting Informational Exceptions") in the SCSI mode database as the field described in X3T10/94-190 (revision 4; page 2, table 1) [1.] is 4 bits wide, not 4 bytes wide 1. http://ftp.t10.org/ftp/t10/document.94/94-190r4.pdf Bug 200619 Reported by: Michael Baptist <mbaptist@isilon.com> Submitted by: Lars Skodje <lskodje@isilon.com> Sponsored by: EMC / Isilon Storage Division r289916: Limit RESOLUTION_MAX to INT_MAX, not UINT_MAX (all spelled out) so the 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. PR: 200619 Reported by: Michael Baptist Submitted by: Lars Skodje Sponsored by: EMC / Isilon Storage Division
* MFC r289229:ngie2015-11-011-2/+2
| | | | | | | | | Replace references to /dev/acd0 with /dev/cd0 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 r288963:delphij2015-10-291-1/+1
| | | | | Now that we own the code, use arc4random(3) unconditionally and remove the corresponding HAVE_ARC4RANDOM conditions.
* MFC r288305:ngie2015-10-2616-63/+25
| | | | Replace N #defines with nitems to simplify ifconfig code slightly
* MFC r288477:bdrewery2015-10-201-6/+18
| | | | | | META_MODE: For some reason meta mode cannot generate the intermediate tab.c files. Split up all of the targets to be more clear on how they are generated to fix the problem.
* MFC r287827:trasz2015-10-182-3/+11
| | | | | | | Add a way to specify stripesize and stripeoffset to gnop(8). This makes it possible to "simulate" 4K media, to eg test alignment handling. Sponsored by: The FreeBSD Foundation
* MFC 287397:trasz2015-10-181-2/+2
| | | | | | Fix markup. Sponsored by: The FreeBSD Foundation
* MFC r286360:trasz2015-10-181-47/+46
| | | | | | | | | | | | Tweak mdconfig(8) manual page, in particular revise the EXAMPLES section. This removes stuff that doesn't really belong there, and simplifies examples for the basic operations. MFC r286361: Whoops, wrong flag. Sponsored by: The FreeBSD Foundation
* MFC r258909:trasz2015-10-182-4/+10
| | | | | | | | Tweak mdconfig(8) manual page, in particular revise the EXAMPLES section. This removes stuff that doesn't really belong there, and simplifies examples for the basic operations. Sponsored by: The FreeBSD Foundation
* MFC r257182 (by jmg@):trasz2015-10-181-1/+1
| | | | | | bump date forgotten in r257165 Sponsored by: The FreeBSD Foundation
* MFC r257165 (by jmg@):trasz2015-10-181-6/+12
| | | | | | | | | | Document that -a will output the device name when -u is not specified.. when -u is specified it is not... update the docs to say that you can use full device names w/ -u, and update the examples... Sponsored by: The FreeBSD Foundation
* MFC r285847:trasz2015-10-181-1/+2
| | | | | | Add missing SIGUSR1 description. Sponsored by: The FreeBSD Foundation
* MFC r265164: Small cleanup: mostly whitespace vs. tabs.emaste2015-10-151-31/+31
|
* MFC r264889: newfs_msdos: Correct min/max cluster counts for FAT12/16/32emaste2015-10-151-5/+5
| | | | | | | | | | | | FAT12 1..4084 FAT16 4085..65524 FAT32 65525.. This is required for interoperability with other FAT implementations, and in particular UEFI. Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
* MFC: 288984bapt2015-10-141-1/+5
| | | | | | | | | | | | | | | Only print the errno string in case sysctl(3) does not file with ENOENT 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' Sponsored by: Gandi.net
* Trim spaces at the end of the buffer before trying to convert it to an oidbapt2015-10-141-0/+6
| | | | | | | This allows to write entries in sysctl.conf with spaces before the '=' like kern.ipc.shmmax = 9663676416 Sponsored by: Gandi.net
* MFC r288249:bdrewery2015-10-131-1/+2
| | | | Add SUBDIR_PARALLEL.
* MFC r288248:bdrewery2015-10-133-30/+0
| | | | Remove disconnected directories.
* MFC r288528:ae2015-10-121-1/+1
| | | | | | Fix possible segmentation fault. PR: 203494
* MFC r288446: Disable suspend during shutdown.cperciva2015-10-081-0/+14
|
* MFC r281787vangyzen2015-10-021-0/+3
| | | | | | | | | | dmesg: accommodate message buffer growth between the sysctl calls Allocate 12.5% extra space to avoid ENOMEM when the message buffer is growing steadily. Reported by: Steve Wahl <steve_wahl@dell.com> (and tested) Sponsored by: Dell Inc.
* MFC r286702:dim2015-09-221-4/+4
| | | | | In ipfw2, avoid left-shifting negative integers, which is undefined. While here, make some other arguments to htonl(3) unsigned too.
* Re-add deprecated options as no-op to prevent breakage of backwardhrs2015-09-211-0/+6
| | | | | | compatibility. Spotted by: ume
* MFC r266310melifaro2015-09-181-1/+1
| | | | | | | | | | | | | | Fix wrong formatting of 0.0.0.0/X table records in ipfw(8). Add `flags` u16 field to the hole in ipfw_table_xentry structure. Kernel has been guessing address family for supplied record based on xent length size. Userland, however, has been getting fixed-size ipfw_table_xentry structures guessing address family by checking address by IN6_IS_ADDR_V4COMPAT(). Fix this behavior by providing specific IPFW_TCF_INET flag for IPv4 records. PR: bin/189471,kern/200169
* MFC r286700hiren2015-09-152-0/+8
| | | | Make LAG LACP fast timeout tunable through IOCTL.
* MFC 287607:hrs2015-09-131-10/+3
| | | | | - Remove GIF_{SEND,ACCEPT}_REVETHIP. - Simplify EADDRNOTAVAIL and EAFNOSUPPORT conditions.
OpenPOWER on IntegriCloud