summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add a manual page for phttpget(8).delphij2015-01-022-1/+89
| | | | MFC after: 1 month
* Remove GNU texinfo from base along with all info pages.bapt2015-01-022-15/+1
| | | | | | | | | To be able to info pages consider installing texinfo from ports print/texinfo or via pkg: pkg install texinfo Differential Revision: https://reviews.freebsd.org/D1409 Reviewed by: emaste, imp (previous version) Relnotes: yes
* Fix markup for minthreads and maxthreads.delphij2015-01-011-7/+7
| | | | | PR: 196403 MFC after: 2 weeks
* Free the buffer returned by gpio_pin_list() after the use.loos2014-12-311-0/+1
| | | | | Reported by: Coverity Scan CID: 1257468
* Replace bhyve's minimal RTC emulation with a fully featured one in vmm.ko.neel2014-12-302-279/+110
| | | | | | | | | | | | | | | | | | | | | The new RTC emulation supports all interrupt modes: periodic, update ended and alarm. It is also capable of maintaining the date/time and NVRAM contents across virtual machine reset. Also, the date/time fields can now be modified by the guest. Since bhyve now emulates both the PIT and the RTC there is no need for "Legacy Replacement Routing" in the HPET so get rid of it. The RTC device state can be inspected via bhyvectl as follows: bhyvectl --vm=vm --get-rtc-time bhyvectl --vm=vm --set-rtc-time=<unix_time_secs> bhyvectl --vm=vm --rtc-nvram-offset=<offset> --get-rtc-nvram bhyvectl --vm=vm --rtc-nvram-offset=<offset> --set-rtc-nvram=<value> Reviewed by: tychon Discussed with: grehan Differential Revision: https://reviews.freebsd.org/D1385 MFC after: 2 weeks
* Move the explanation for examples before the example itself. Addwblock2014-12-301-16/+118
| | | | | | | | | | | numerous QEMU examples and explanations supplied by sbruno, with thanks to Ingo Schwarze for help with the mdoc markup. Code, text, testing, proofreading, cinematography, stunts, and the haunting theme song supplied by sbruno. Submitted by: sbruno Reviewed by: sbruno MFC after: 1 week
* mdoc: remove EOL whitespace.joel2014-12-292-3/+3
|
* 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
OpenPOWER on IntegriCloud