summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Add some tests for user modification. [1]brd2014-12-092-1/+59
| | | | | | | | Fix a missing test in the Makefile from my previous commit. PR: 195834 [1] Submitted by: Robert O'Neil <oneil.rs@gmail.com> Approved by: will
* Break out the tests into a file per command and clean up some long linesbrd2014-12-095-19/+33
| | | | Approved by: will
* Add more tests for pw(8) useradd.brd2014-12-092-1/+42
| | | | | | PR: 195832 Submitted by: Robert O'Neil <oneil.rs@gmail.com> Approved by: will
* -u and -U are supposed to affect existing files too.sjg2014-12-091-1/+1
| | | | Reviewed by: marcel
* Count consecutive read requests as blocking in CTL for files and ZVOLs.mav2014-12-061-1/+8
| | | | | | | | | | | | | | | | Technically read requests can be executed in any order or simultaneously since they are not changing any data. But ZFS prefetcher goes crasy when it receives consecutive requests from different threads. Since prefetcher works on level of separate blocks, instead of two consecutive 128K requests it may receive 32 8K requests in mixed order. This patch is more workaround then a real fix, and it does not fix all of prefetcher problems, but it improves sequential read speed by 3-4x times in some configurations. On the other side it may hurt performance if some backing store has no prefetch, that is why it is disabled by default for raw devices. MFC after: 2 weeks
* Document r275481 changes.mav2014-12-041-2/+3
| | | | MFC after: 2 weeks
* Do not corrupt the listen string when parsing it.mav2014-12-031-5/+7
| | | | | | | This fixes problem with ctld reload when it is configured to listen on two portals with same IP, but different ports. MFC after: 1 week
* Switch gpioctl(8) to LIBADD.rpaulo2014-12-031-2/+1
|
* gpioctl: don't print the command line arguments.rpaulo2014-12-021-3/+0
| | | | | | PR: 195330 Submitted by: Scott Ellis jumpnowtek at gmail.com MFC after: 3 days
* Fix null pointer dereference.trasz2014-12-021-1/+1
| | | | | | MFC after: 2 weeks Coverity CID: 1256497 Sponsored by: The FreeBSD Foundation
* Rewrite parts of gpioctl(8) to use the gpio(3) library.rpaulo2014-12-022-61/+50
|
* Readd Makefile.inc that were used to include upper level Makefile.inc andbapt2014-11-282-0/+6
| | | | set (among other things) the destination where the binary should be installed
* In preparation for using clang's -Wcast-qual:jamie2014-11-253-67/+65
| | | | | | | | Use __DECONST (instead of my own attempted re-invention) for the iov parameters to jail_get/set(2). Similarly remove the decost-ish hack from execvp's argv, except the __DECONST is only added at very end. While I'm at it, remove an unused variable and fix a comment typo.
* Convert usr.sbin to LIBADDbapt2014-11-25163-434/+178
| | | | Reduce overlinking
* 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
OpenPOWER on IntegriCloud