summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix the fixbapt2014-11-251-0/+1
|
* Fix build.delphij2014-11-251-5/+1
|
* Convert makefs to LIBADDbapt2014-11-241-7/+1
| | | | Add definition of libnetbsd in src.libnames.mk
* Convert to LIBADD.brd2014-11-241-2/+1
| | | | Reviewed by: bapt
* Remove the pidfile clause from the ctl.conf example. Why do everyonetrasz2014-11-241-3/+1
| | | | | | | just copy/paste this line into their configs, it's beyond me. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix the negation (!) operator so that it binds only to the word thatian2014-11-231-12/+12
| | | | | immediately follows it, which means 'not' has to be reset every time an option word or device name is processed.
* Consider the negation operator (!) to be a word even if it is not followedian2014-11-231-0/+5
| | | | | by whitespace. This allows "optional !foo" which is what most programmers are naturally going to tend to do as opposed to "optional ! foo".
* Fix the following -Werror warnings from clang 3.5.0, while buildingdim2014-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | bsnmpd's snmp_hostres module: usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600); ^ usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600); ^~~ labs usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60); ^ usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60); ^~~ labs Since tm::tm_gmtoff is a long, use labs(3) instead. MFC after: 3 days
* Fix the following -Werror warnings from clang 3.5.0, while buildingdim2014-11-221-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usr.sbin/rtadvd: usr.sbin/rtadvd/rtadvd.c:1291:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) { ^ usr.sbin/rtadvd/rtadvd.c:1291:7: note: remove the call to 'abs' since unsigned values cannot be negative abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) { ^~~ usr.sbin/rtadvd/rtadvd.c:1324:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) { ^ usr.sbin/rtadvd/rtadvd.c:1324:7: note: remove the call to 'abs' since unsigned values cannot be negative abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) { ^~~ 2 errors generated. These warnings occur because both preferred_time and pfx_pltimeexpire are uint32_t's, so the subtraction expression is also unsigned, and calling abs() is a no-op. However, the intention was to look at the absolute difference between the two unsigned quantities. Introduce a small static function to clarify what we're doing, and call that instead. Reviewed by: hrs MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D1197
* Implement "automount -c".trasz2014-11-222-4/+67
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* For both iSCSI initiator and target increase socket buffer sizes beforemav2014-11-224-2/+22
| | | | | | | | | | | 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 after: 1 week
* In conf_apply() remove iSCSI ports from kernel before removing LUNs.mav2014-11-211-10/+10
| | | | | | | | | 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 after: 1 month
* Fix error handling.trasz2014-11-211-1/+1
| | | | | | MFC after: 1 month Coverity CID: 1249768 Sponsored by: The FreeBSD Foundation
* Document use of wildcards (*) and ampersands (&) in autofs map files.trasz2014-11-211-3/+20
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1199 Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add missing error checking for kernel_port_{add,remove}(). Both can failtrasz2014-11-211-3/+22
| | | | | | | | for reasons yet unknown; don't make it increment cumulated_error as a kind of temporary workaround. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Replace the pw(1) calls with a variable, to make it easier to to change ↵brd2014-11-194-32/+35
| | | | | | across all the tests as needed. Reviewed by: will
* Make the auto_master(5) man page clearer on how auto_mastertrasz2014-11-191-5/+23
| | | | | | | | | and map files work together, and add example for smbfs. Differential Revision: https://reviews.freebsd.org/D1184 Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix improper .Fx macro usage.trasz2014-11-191-1/+2
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1158 Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Re-work non-persistent filesystem detection as it was not possible tofeld2014-11-181-8/+7
| | | | | | | detect /dev/md backed mfs filesystems that way. Differential Revision: https://reviews.freebsd.org/D1163 Approved by: ian
* Clean up some languagebrd2014-11-172-18/+18
| | | | Reviewed by: will
* Add logic for detecting non-persistent filesystems being utilized byfeld2014-11-171-0/+9
| | | | | | | | | | workdir which would break the upgrade process upon reboot. Currently we check for tmpfs and mdmfs. PR: 195006 Differential Revision: https://reviews.freebsd.org/D1163 Approved by: cperciva
* The "intr" option is NFS-specific; fix examples in auto_master(5).trasz2014-11-171-3/+3
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Default to use 10 seconds as nap interval instead of 1.delphij2014-11-162-3/+3
| | | | | | | | | | | | | | | | | | | | | Previously, we have a nap interval of 1 second while we have a timeout of 128 seconds by default, which could be an overkill, and for some hardware the patting action may be expensive. Note that the choice of nap interval is still arbitrary. We preferred a safe value where even when the system is very heavily loaded, the watchdog should not shoot the system down if it's not really hung. According to the manual page of Linux's watchdog daemon, the nap interval time of theirs is 10 seconds, which seems to be a reasonable value -- according to Intel documentation AP-725 (Document Number: 292273-001), ICH5's maximum timeout is about 37.5 seconds, which the ichwd(4) driver would set when we requested 128 seconds (although it should probably feed back this as an error and do not set the timeout). Since that's the shortest maximum value, 10 seconds seems to be a right choice for us too. Discussed with: alfred MFC after: 1 month
* wpa_cli does not use libedit anymore since version 1.0bapt2014-11-151-3/+3
|
* Add a test for locking and unlocking user accountsbrd2014-11-152-1/+23
| | | | | Submitted by: Robert O'Neil <oneil.rs@gmail.com> Reviewed by: will
* Fix wrong message when using pw -V with a non existent directorybapt2014-11-123-1/+27
| | | | | | | Add a regression test about it PR: 194971 Submitted by: Freddy DISSAUX <bugzilla@dsx.bsdsx.fr>
* Decode more fields when dumping USB descriptors.hselasky2014-11-121-4/+79
| | | | | | | - Some minor style changes while at it. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week
* Fix a few cases of use of uninitialized variables. Found with -Wall.loos2014-11-121-2/+8
| | | | MFC after: 1 week
* Fix whitespace.dteske2014-11-111-4/+4
| | | | Thanks to: nwhitehorn
* Default `bsdconfig timezone' and `tzsetup' to `-s' in a VM.dteske2014-11-112-1/+13
| | | | | | Recommended by: cperciva Reviewed by: cperciva Relnotes: tzsetup and bsdconfig now assume that the "hardware" clock inside a VM is set to UTC
* Renove faith(4) and faithd(8) from base. It looks like industrymelifaro2014-11-0913-3689/+7
| | | | | | | | | have chosen different (and more traditional) stateless/statuful NAT64 as translation mechanism. Last non-trivial commits to both faith(4) and faithd(8) happened more than 12 years ago, so I assume it is time to drop RFC3142 in FreeBSD. No objections from: net@
* To allow a request to be submitted from within the callback routine oftychon2014-11-091-2/+2
| | | | | | a completing one increase the total by 1 but don't advertise it. Reviewed by: grehan
* Make both iSCSI initiator and target support base64 encoded CHAP data.mav2014-11-092-2/+100
| | | | | | | | | While all tested initiators and targets use hex-encoded CHAP data, RFC also allows base64 encoding there, and Microsoft certificaition tool uses it. Reviewed by: trasz (earlier version) MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* Add HISTORY section to ctld(8).trasz2014-11-091-1/+6
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix several nits in redirection handling - don't use wrong CSG,trasz2014-11-091-27/+14
| | | | | | | and avoid use-after-free. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add support for sending redirections to iSCSI target.trasz2014-11-096-6/+195
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Improve wording in ctl.conf(5).trasz2014-11-081-4/+5
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1020 Reviewed by: bcr@ (earlier version), wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* ctld(8) doesn't require -lcam or -lssl; remove those from DPADD and LDADD.trasz2014-11-081-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Remove unused assignments, noticed by Clang analyzer.mav2014-11-071-7/+7
| | | | MFC after: 1 week
* Backout 274170 it breaks for mipsbapt2014-11-061-2/+2
|
* fifolog_writer does not depend on libutilbapt2014-11-061-2/+2
|
* fifolog_reader does not depend on libutilbapt2014-11-061-2/+2
|
* iscsid does not need to link to libsslbapt2014-11-061-2/+2
|
* sntp does not depend on libmbapt2014-11-061-2/+2
|
* rpcbind does not need to be linked to libutilbapt2014-11-061-2/+2
|
* Add to CTL support for logical block provisioning threshold notifications.mav2014-11-061-1/+9
| | | | | | | | For ZVOL-backed LUNs this allows to inform initiators if storage's used or available spaces get above/below the configured thresholds. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* Add EXAMPLES-section entry for new key+=append syntax of sysrc(8).dteske2014-11-051-1/+7
| | | | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9 X-MFC-with: 274068 Thanks to: @SeanChittenden
* Improve the ability to cancel an in-flight request by using antychon2014-11-041-24/+146
| | | | | | | interrupt, via SIGCONT, to force the read or write system call to return prematurely. Reviewed by: grehan
* Follow-up to r255036; remove beforeinstall directives from bsdconfig(8)dteske2014-11-0439-119/+0
| | | | | | | | | Makefile's, fixing concurrent installworld (`make -j17 installworld'). Thanks to: delphij, emaste Reviewed by: delphij MFC after: 3 days X-MFC-to: stable/10, stable/9
* Add key+=append syntax to sysrc(8).dteske2014-11-032-7/+27
| | | | | | Reviewed by: shurd MFC after: 3 days X-MFC-to: stable/10 stable/9
OpenPOWER on IntegriCloud