summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* mdoc: sort SEE ALSO.joel2014-12-2611-18/+18
|
* Use "RCS tag" instead of "$FreeBSD$ tag", since svn will obedientlydes2014-12-221-4/+4
| | | | | | expand the latter. MFC after: 3 days
* Strip trailing / characters from paths in "not present" index entries, notcperciva2014-12-221-0/+1
| | | | | | | | | | | | | | | | | | | just "directory" entries. Prior to this commit, if / was added as part of a security update (how? In the most recent case, because lib32 was accidentally omitted and was then re-added, and every installer distribution set gets its own paths) then the code which was supposed to filter out updates to deleted parts of the base system (if someone decides to delete / then we shouldn't re-create it for them) would instead get confused and decided that while / should exist, // should not exist and needs to be removed. This fixes the bug which caused freebsd-update to want to delete / (which is harmless, since `rm /` fails, but scary nonetheless). A workaround is being applied to the update bits in order to avoid triggering the bug on unpatched systems. PR: 196055, 196091, 196147
* Switch zfsboot installer force 4K option to use vfs.zfs.min_auto_ashift=12smh2014-12-211-46/+19
| | | | | | | | | | Previously we used gnop(8) to fake 4K sector size disks but ZFS now has a sysctl to control this when creating new top level vdev's so use that instead. Differential Revision: D566 MFC after: 1 month Sponsored by: Multiplay
* Report initiator id in portlist XML in more formalized way.mav2014-12-201-11/+16
| | | | MFC after: 3 days
* Report XML parsing errors.mav2014-12-201-3/+12
| | | | MFC after: 3 days
* Bump the largest record we can cope with from 1k to 8k. Other users ofimp2014-12-191-1/+1
| | | | | the hints file don't have any real limits, and longer records will need to be written shortly.
* Slightly polish iSCSI parameters negotiation.mav2014-12-192-3/+8
| | | | MFC after: 1 week
* Setgid before running a command as a specified user. Previously onlyjamie2014-12-181-0/+5
| | | | | | | | initgroups(3) was called, what isn't quite enough. This brings jail(8) in line with jexec(8), which was already doing the right thing. PR: 195984 MFC after: 1 week
* Remove -fno-strict-alias, as it is no longer needed.imp2014-12-181-1/+0
|
* In bsdinstall's distextract, replace mixed_gauge() of dialog(3) withdteske2014-12-182-93/+84
| | | | | | | | | | | | | | | | | | | | | new dpv(3) wrapper to dialog(3) dialog_gauge(). The dpv(3) library provides a more flexible and refined interface similar to dialog_mixedgauge() however is implemented atop the more generalized dialog_gauge() for portability. Noticeable improvements in bsdinstall's distextract will be a status line showing data rate information (with support for localeconv(3) to format numbers according to $LANG or $LC_ALL conversion information), i18n support, improved auto-sizing of gauge widget, a ``wheel barrow'' to keep the user informed that things are moving (even if status/progress has not changed), improved color support (mini-progress bars use the same color, if enabled, as the main gauge bar), and several other improvements (some not visible). dpv stands for "dialog progress view" (dpv was introduced in SVN r274116). Differential Revision: https://reviews.freebsd.org/D714 Discussed on: -current Reviewed by: julian MFC after: 3 days X-MFC-to: stable/10 Relnotes: Improved installer feedback from bsdinstall distextract
* Add configuration options to override physical and UNMAP blocks geometry.mav2014-12-171-1/+8
| | | | | | | | | While in most cases CTL should correctly fetch those values from backing storages, there are some initiators (like MS SQL), that may not like large physical block sizes, even if they are true. For such cases allow override fetched values with supported ones (like 4K). MFC after: 1 week
* Make sequence numbers checks more strict.mav2014-12-174-12/+12
| | | | | | | | | | While we don't support MCS, hole in received sequence numbers may mean only PDU loss. While we don't support lost PDU recovery, terminate the connection to avoid stuck commands. While there, improve handling of sequence numbers wrap after 2^32 PDUs. MFC after: 2 weeks
* Adjust printf format specifiers for dev_t and ino_t in user space.gleb2014-12-171-2/+2
| | | | | | ino_t and dev_t are about to become uint64_t. Reviewed by: kib, mckusick
* Add tests for pw -Nbrd2014-12-162-0/+89
| | | | | | PR: 150449 Submitted by: Robert O'Neil <oneil.rs@gmail.com> Approved by: will
* Add a vigr(8) utility which does for /etc/group what vipw(8) does fordes2014-12-144-0/+173
| | | | /etc/master.passwd.
* Clean up, reindent, add a special case for NIS / LDAP linedes2014-12-141-129/+127
| | | | MFC after: 1 week
* Fix bug that made automount(8) never unmount stale autofs(5) mounts,trasz2014-12-141-3/+14
| | | | | | | | ie mounts for entries that were there in auto_master(5), and then got removed. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix spurious "child process X terminated with exit status 1" messagestrasz2014-12-141-7/+1
| | | | | | | from automountd(8). MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix markup.trasz2014-12-131-3/+3
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Increase the buffer size to keep the list of programm names whenae2014-12-121-2/+2
| | | | | | | | | | parsing programm specification. It is safe to not check out of bounds access, because !isprint(p[i]) check will stop reading, when '\0' character will be read from the input string. Obtained from: Yandex LLC MFC after: 1 week Sponsored by: Yandex LLC
* handle "Kana" and "Eisu" keys on Apple Wireless Keyboard (JIS)emax2014-12-111-2/+2
| | | | | | PR: 187470 Submitted by: naito.yuichiro MFC after: 1 week
* Add "-media" autofs map, to access data on removable media, such as CDtrasz2014-12-101-6/+9
| | | | | | | | | | | | | | drives or flash keys. It can be enabled by uncommenting a single entry in default /etc/auto_master. It can also be easily modified to use fuse-based filesystems instead of in-kernel ones. There is still one deficiency - the mountpoints are permanent, they don't disappear when user removes the media. Fixing it needs some autofs changes. Differential Revision: https://reviews.freebsd.org/D1210 MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add fstyp(8). This utility, named after its SVR4 counterpart, detectstrasz2014-12-1011-0/+1122
| | | | | | | | | | filesystems. It differs from file(1) in that it gives machine-parseable output, it outputs filesystem labels, doesn't get confused by other formats metadata, and runs in Capsicum sandbox. Differential Revision: https://reviews.freebsd.org/D1255 Relnotes: yes Sponsored by: The FreeBSD Foundation
* Restructure to make it easier to extend in the futurebrd2014-12-091-6/+10
| | | | | Reviewed by: will Suggested by: ngie
* 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
OpenPOWER on IntegriCloud