summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r277172:trasz2015-03-071-4/+4
| | | | | | Improve wording. Sponsored by: The FreeBSD Foundation
* MFC r277834:trasz2015-03-071-13/+23
| | | | | | | When there are no automounted filesystems, autounmountd(8) should wait for filesystem event, instead of looping on a timeout. Sponsored by: The FreeBSD Foundation
* MFC r275756:trasz2015-03-071-3/+14
| | | | | | | | Fix bug that made automount(8) never unmount stale autofs(5) mounts, ie mounts for entries that were there in auto_master(5), and then got removed. Sponsored by: The FreeBSD Foundation
* MFC r275755:trasz2015-03-071-7/+1
| | | | | | | Fix spurious "child process X terminated with exit status 1" messages from automountd(8). Sponsored by: The FreeBSD Foundation
* MFC r274859:trasz2015-03-072-4/+67
| | | | | | Implement "automount -c". Sponsored by: The FreeBSD Foundation
* MFC r273127:trasz2015-03-073-10/+54
| | | | | | | | | | | | | | | | | Make automountd(8) inform autofs(4) whether directory being handled can have wildcards. This makes it possible for autofs(4) to avoid requesting automountd(8) action on access to nonexistent nodes - unless wildcards are actually used. Note that this change breaks ABI for automountd(8). MFC r278521: Restore ABI compatibility, broken in r273127. Note that while this fixes ABI with 10.1, it breaks ABI for 11-CURRENT, so rebuild of automountd(8) is neccessary. Sponsored by: The FreeBSD Foundation
* MFC r278493: Update copyrights.dteske2015-03-056-6/+6
|
* MFC r278491: Add bsdconfig api function f_dialog_menutag2help()dteske2015-03-051-0/+33
|
* MFC r278490:dteske2015-03-051-0/+50
| | | | Add bsdconfig api functions f_dialog_pause()/f_dialog_pause_no_cancel()
* MFC r278489: Eliminate sub-shells where possible for performance.dteske2015-03-053-41/+89
|
* MFC r278488: Whitespace.dteske2015-03-051-2/+1
|
* MFC r278483: Comments.dteske2015-03-051-1/+1
|
* MFC r278470:dteske2015-03-051-0/+1
| | | | | Add new alias "bsdconfig api" (same as "bsdconfig includes") NB: My fingers like typing "api" a lot more than "includes"
* MFC r278467:dteske2015-03-051-1/+1
| | | | Replace the only instance of sed(1) in bsdconfig(8) with awk(1).
* MFC r274073:dteske2015-03-0539-119/+0
| | | | | | | | Follow-up to r255036; remove beforeinstall directives from bsdconfig(8) Makefile's, fixing concurrent installworld (`make -j17 installworld'). Reviewed by: delphij Thanks to: delphij, emaste
* MFC r273068:dteske2015-03-053-6/+6
| | | | | | Rename awk(1) implementation of GNU awk's built-in asorti() function to prevent fatal conflict should one-true-awk ever be replaced -- e.g., in an appliance -- with GNU awk. NB: Renamed my implementation to _asorti()
* MFC r273067:dteske2015-03-053-2/+7
| | | | Fix awk(1) asorti() implementation to work when called in a loop.
* MFC rev. 278728:thomas2015-03-021-18/+18
| | | | | | | | | (backup_kernel_finddir, backup_kernel, install_files): Add missing references to $BASEDIR, in order to allow correct operation when updating a system mounted at another location than / (e.g. when updating an alternate Boot Environment). Reviewed by: cperciva
* MFC r278192:ngie2015-03-011-5/+17
| | | | | | | | | | | | | | | | Add the following options to enable/disable several features in the base system WITHOUT_BOOTPARAMD - bootparamd WITHOUT_BOOTPD - bootpd WITHOUT_FINGER - finger, fingerd WITHOUT_FTP - ftp, ftpd WITHOUT_INETD - inetd WITHOUT_RBOOTD - rbootd WITHOUT_TCP_WRAPPERS - tcpd, et al WITHOUT_TFTP - tftp, tftp-server WITHOUT_TIMED - timed Sponsored by: EMC / Isilon Storage Division
* MFC r279276: Add checks for malloc() failures.mav2015-03-011-0/+5
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* MFC r279277: Fix memory leak on incorrect initiator portal.mav2015-03-011-0/+1
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* MFC r264007,r264008,r264009,r264011,r264012,r264013rstone2015-03-011-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC support for PCI Alternate RID Interpretation. ARI is an optional PCIe feature that allows PCI devices to present up to 256 functions on a bus. This is effectively a prerequisite for PCI SR-IOV support. r264007: Add a method to get the PCI RID for a device. Reviewed by: kib MFC after: 2 months Sponsored by: Sandvine Inc. r264008: Re-implement the DMAR I/O MMU code in terms of PCI RIDs Under the hood the VT-d spec is really implemented in terms of PCI RIDs instead of bus/slot/function, even though the spec makes pains to convert back to bus/slot/function in examples. However working with bus/slot/function is not correct when PCI ARI is in use, so convert to using RIDs in most cases. bus/slot/function will only be used when reporting errors to a user. Reviewed by: kib MFC after: 2 months Sponsored by: Sandvine Inc. r264009: Re-write bhyve's I/O MMU handling in terms of PCI RID. Reviewed by: neel MFC after: 2 months Sponsored by: Sandvine Inc. r264011: Add support for PCIe ARI PCIe Alternate RID Interpretation (ARI) is an optional feature that allows devices to have up to 256 different functions. It is implemented by always setting the PCI slot number to 0 and re-purposing the 5 bits used to encode the slot number to instead contain the function number. Combined with the original 3 bits allocated for the function number, this allows for 256 functions. This is enabled by default, but it's expected to be a no-op on currently supported hardware. It's a prerequisite for supporting PCI SR-IOV, and I want the ARI support to go in early to help shake out any bugs in it. ARI can be disabled by setting the tunable hw.pci.enable_ari=0. Reviewed by: kib MFC after: 2 months Sponsored by: Sandvine Inc. r264012: Print status of ARI capability in pciconf -c Teach pciconf how to print out the status (enabled/disabled) of the ARI capability on PCI Root Complexes and Downstream Ports. MFC after: 2 months Sponsored by: Sandvine Inc. r264013: Add missing copyright date. MFC after: 2 months
* MFC r279083:jamie2015-02-271-8/+8
| | | | | | | | | | | | Fix the logic for skipping parameters (with -s) that have "jailsys" parents (such as host.hostname); these were being skipped all the time. That it went this long without anyone noticing is a sign that this feature isn't actually used by anyone, but it's there so it might as well work. MFC r279123: Allow for parameters added with the JP_OPT flag to not exist. That's why the flag exists in the first place.
* MFC r279081:jamie2015-02-272-2/+5
| | | | | | | Allow parameters listed on the command line to override the -v option, instead of crashing. PR: 197701
* MFC r278523:kib2015-02-241-1/+5
| | | | In mountd, silence a race with the parallel unmount.
* MFC r278594: Add missing asprintf() status checks.mav2015-02-201-2/+8
|
* MFC r278354: Teach ctld(8) to control non-iSCSI CTL ports.mav2015-02-206-72/+257
| | | | | | | | | | | | | | | This change introduces new target option "port", that assigns current target to specified CTL port. On config application ctld(8) will apply LUN mapping according to target configuration to specified port and bring the port up. On shutdown cltd(8) will remove the mapping and put the port down. This change allows to configure both iSCSI and FibreChannel targets in the same configuration file in alike way. Kernel side support was added earlier at r278037. Relnotes: yes Sponsored by: iXsystems, Inc.
* MFC r278322: Add support for multiple portal groups per target.mav2015-02-197-111/+279
| | | | | | | | | | This change allows multiple "portal-group" options to be specified per target. Each of them may include new optional auth-group name parameter to override per-target auth parameters for specific portal group. Kernel side support was added earlier at r278161. Sponsored by: iXsystems, Inc.
* MFC r278161: Bring some more order into iSCSI portal group tags support.mav2015-02-194-10/+17
| | | | | | | While ctld(8) still does not allow multiple portal groups per target to be configured, kernel should now be able to handle it. Sponsored by: iXsystems, Inc.
* MFC r278037: CTL LUN mapping rewrite.mav2015-02-197-312/+466
| | | | | | | | | | | | | | | | | | | Replace iSCSI-specific LUN mapping mechanism with new one, working for any ports. By default all ports are created without LUN mapping, exposing all CTL LUNs as before. But, if needed, LUN mapping can be manually set on per-port basis via ctladm. For its iSCSI ports ctld does it via ioctl(2). The next step will be to teach ctld to work with FibreChannel ports also. Respecting additional flexibility of the new mechanism, ctl.conf now allows alternative syntax for LUN definition. LUNs can now be defined in global context, and then referenced from targets by unique name, as needed. It allows same LUN to be exposed several times via multiple targets. While there, increase limit for LUNs per target in ctld from 256 to 1024. Some initiators do not support LUNs above 255, but that is not our problem. Relnotes: yes Sponsored by: iXsystems, Inc.
* MFC r274853:mav2015-02-194-2/+22
| | | | | | | | | | For both iSCSI initiator and target increase socket buffer sizes before establishing connection. This is a workaround for Chelsio TOE driver, that does not update socket buffer size in hardware after connection established, and unless that is done beforehand, kernel code will stuck, attempting to send/receive full PDU at once.
* MFC r274804:mav2015-02-191-10/+10
| | | | | | | | | In conf_apply() remove iSCSI ports from kernel before removing LUNs. Previous order confused initiators with messages about "removed" LUNs during simple ctld restart without any real config change. After this commit initiators only reestablish lost connection, receive "Power on occurred" UNIT ATTENTION status and continue normal operation.
* MFC r278827sbruno2015-02-181-1/+3
| | | | Check for required arguments before accessing argv[0] and core dumping.
* MFC r278621: Fix man page to match real option names.mav2015-02-151-4/+4
|
* MFC r277677:ngie2015-02-131-1/+4
| | | | | | | | r277677: Add MK_BSDINSTALL knob for building and installing bsdinstall Sponsored by: EMC / Isilon Storage Division
* MFC r278182:ngie2015-02-111-0/+3
| | | | | | | | | r278182: Conditionalize building radius support into libpam, ppp, etc via MK_RADIUS_SUPPORT Sponsored by: EMC / Isilon Storage Division
* MFC: r278173bapt2015-02-111-1/+5
| | | | | | Test the return of fetchParseURL(3) CID: 1125811
* MFC: r278172bapt2015-02-111-4/+10
| | | | | | | | Plug resources leak CID: 1125813 CID: 1125807 CID: 1125808
* MFC r277728:ngie2015-02-111-1/+4
| | | | | | | | r277728: Add MK_AUTOFS knob for building and installing autofs(4), et al Sponsored by: EMC / Isilon Storage Division
* MFC r277727:ngie2015-02-111-0/+2
| | | | | | | | r277727: Add MK_BHYVE knob for building and installing bhyve(4), et al Sponsored by: EMC / Isilon Storage Division
* MFC r277675,r277726,r278070:ngie2015-02-111-1/+4
| | | | | | | | | | | | | | | | | | | | | | r277675: Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernel modules, etc Sponsored by: EMC / Isilon Storage Division r277726: Build sbin/iscontrol again if MK_ISCSI != no Pointyhat to: me r278070: Remove duplicate MK_ISCSI block and sort the conditional blocks so this error won't crop up again in the future Reported by: gjb
* MFC r278323:jamie2015-02-105-1/+44
| | | | | | | | | Add mount.procfs jail parameter, so procfs can be mounted when a prison's root is in its fstab. Also fix a typo while I'm at it. PR: 197237 197066
* When upgrading, install the ELF runtime linkers before libraries.brooks2015-02-091-0/+9
| | | | | | | | | | This is required to prevent problems with nss modules that use libthr when upgrading from releases prior to 10.1. PR: 197366 Differential Revision: D1790 Reviewed by: cperciva Sponsored by: DARPA, AFRL
* MFC r278297:dim2015-02-091-4/+2
| | | | | | | | | | | | | | | | | Fix two clang 3.6.0 warnings in usr.sbin/syslogd: usr.sbin/syslogd/syslogd.c:1023:10: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] f->f_prevline && !strcmp(msg, f->f_prevline) && ~~~^~~~~~~~~~ usr.sbin/syslogd/syslogd.c:1178:16: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] } else if (f->f_prevline) { ~~ ~~~^~~~~~~~~~ In both cases, the f_prevline field of struct filed is a char array, so it can never be null. Remove the checks. Reviewed by: jilles Differential Revision: https://reviews.freebsd.org/D1716
* MFC r276571: Add a manual page for phttpget(8).delphij2015-02-042-1/+89
|
* MFC r276027:smh2015-02-011-46/+22
| | | | | | | | | Switch zfsboot installer force 4K option to use vfs.zfs.min_auto_ashift=12 MFC r277333: Fix bsdinstall when working with geli boot disks Sponsored by: Multiplay
* MFC r277855:jamie2015-01-311-2/+10
| | | | | | | Add allow.mount.fdescfs jail flag. PR: 192951 Submitted by: ruben@verweg.com
* MFC r277352:rstone2015-01-283-3/+4
| | | | | | | | | | | | | | | | | | | | | | When mountd is creating sockets, it iterates over all addresses specified in the "hosts" array and eventually looks up the network address with getaddrinfo(). At one point it checks for a numeric address and if it sees one, it sets a hint parameter to force getaddrinfo to interpret the host as a numeric address. However that hint is not cleared for subsequent iterations of the loop and if any hosts seen after this point are host names, getaddrinfo will fail on the name. The result of this bug is that you cannot pass a host name to the -h flag. Unfortunately, the first iteration will either process ::1 or 127.0.0.1, so the flag is set on the first iteration and all host names will fail to be processed. The same bug applies to rpc.lockd and rpc.statd, so fix them too. Differential Revision: https://reviews.freebsd.org/D1507 Reported by: Dylan Martin MFC after: 1 week Sponsored by: Sandvine Inc.
* MFC r274791:trasz2015-01-261-3/+22
| | | | | | | | | | | | Add missing error checking for kernel_port_{add,remove}(). Both can fail for reasons yet unknown; don't make it increment cumulated_error as a kind of temporary workaround. MFC r275399: Fix null pointer dereference. Sponsored by: The FreeBSD Foundation
* MFC r275746:trasz2015-01-261-3/+3
| | | | | | Fix markup. Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud