summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Mask error from newaliases(1) when the hostname is not fully qualified.dteske2013-12-161-1/+1
| | | | MFC after: 3 days
* Add a fix for Long-standing problem with VMware. Described in below links:dteske2013-12-161-0/+4
| | | | | | | | | | | | | | | https://communities.vmware.com/thread/107230 https://communities.vmware.com/docs/DOC-11677 Basically, ignore the ``function 62'' and ``function 63'' interpretations of the left/right command key when we're in the lengthiest portion of the installation (initiated by the `auto' module). The net effect is that you can now (once you've started the installer from the media) escape the VM without prematurely terminating the current action due to spurious escape sequence. MFC after: 3 days
* Add Casper support.pjd2013-12-151-0/+5
| | | | Sponsored by: The FreeBSD Foundation
* Export 'REPOS_DIR' when the selected source medium for packagegjb2013-12-151-0/+3
| | | | | | | | | | | installation is cdrom. This enables bsdconfig(8) to make use of the on-disc pkg(8) repository configuration, which fixes package selection and installation from the dvd installer. MFC after: 3 days M-MFC-With: r259426 X-MFC-Before: -RC3 Sponsored by: The FreeBSD Foundation
* Replace Sun RPC license for TI-RPC library with a 3-clause BSD license,hrs2013-12-151-27/+25
| | | | | with the explicit permission of Sun Microsystems in 2009. The code in question in this file was copied from lib/libc/rpc/pmap_getport.c.
* mdoc: sort SEE ALSO.joel2013-12-151-2/+2
|
* bhyve(8) man page.grehan2013-12-132-2/+300
| | | | | | | mdoc formatting and much input and review from Warren Block (wblock@). Reviewed by: many MFC after: 3 days
* I caught the following snippet at the end of my /var/log/bsdinstall_log:dteske2013-12-121-4/+3
| | | | | | | | | | | | | | | | | | | | | | === DEBUG: Running installation step: services local: Not in a function /usr/libexec/bsdinstall/services: cannot create : Read-only file system /usr/libexec/bsdinstall/services: /tmp/bsdinstall/etc/rc.conf.services: \ Permission denied === The `local: Not in a function' is obvious, and was introduced by myself in SVN revision 256348. The latter two are caused by the attempt to use "\" to continue the line after using the ">>" redirect. This appears to attempt to write a file with the name " " in the current directory and subsequently attempts to execute the file that was originally intended for writing (which is not executable; hence the `Permission denied'). That was introduced in SVN r228192 about 2 years ago, apparently unnoticed until I started going over the debug outputs very carefully. MFC after: 3 days
* Add a command to inject an NMI on a specific vcpu. It is a simplejhb2013-12-121-1/+8
| | | | | | wrapper around the existing vm_inject_nmi(). Reviewed by: grehan, neel
* Fix multi-repository support by properly respecting 'enabled' flag.bdrewery2013-12-123-15/+186
| | | | | | | | | | | | This will read the REPOS_DIR env/config setting (default is /etc/pkg and /usr/local/etc/pkg/repos) and use the last enabled repository. This can be changed in the environment using a comma-separated list, or in /usr/local/etc/pkg.conf with JSON array syntax of: REPOS_DIR: ["/etc/pkg", "/usr/local/etc/pkg/repos"] Approved by: bapt MFC after: 1 week
* - Use <x86/mptable.h> instead of duplicating its definitions.jhb2013-12-111-315/+145
| | | | | - Switch to mmaping the table from RAM instead of reading it out of /dev/mem via read(2).
* Fix handling for empty auth-groups. Without it, ctld child processtrasz2013-12-101-0/+8
| | | | | | | | would either exit on assertion, or, if assertions are not enabled, fail to authenticate the target. MFC after: 2 days Sponsored by: The FreeBSD Foundation
* Change the type of addr argument in dump() function to be ableae2013-12-101-4/+8
| | | | disambiguate link-local addresses from different zones.
* Remove unused macro ADVANCE() and replace ROUNDUP() macro with ALIGN().ae2013-12-101-8/+3
| | | | They aren't the same, but in our use cases ALIGN gives the same results.
* Ansify function definitions.ae2013-12-101-34/+13
|
* mtest(8): use correct macro in mdoceadler2013-12-101-2/+2
| | | | | | | | | The An macros is used for authors while the Ar macro is used for arguments. AFAIK mcast-addr and ifname are not authors. PR: docs/184649 Submitted by: cnst++ MFC After: 3 days
* Fix a regression introduced by SVN r257842; resulting in mountroot promptdteske2013-12-091-1/+1
| | | | | | | after attempting to install to encrypted ZFS root (caused by a typo in a variable name -- ZFSBOOT_BOOT_FSNAME -> ZFSBOOT_BOOTFS_NAME). MFC after: 3 days
* Fix a regression introduced by SVN r257842. Result was that afterdteske2013-12-091-1/+1
| | | | | | | successfully installing to encrypted ZFS root, the passphrase is not accepted and a message about "incorrect key" is displayed. MFC after: 3 days
* sed(1): Use /i instead of /Ieadler2013-12-091-1/+1
| | | | | the i modifier was added in r259132 since POSIX recently agreed to add it. Switch uses of /I to /i.
* - Refresh /etc/localtime after each update using tzsetup -r.jhb2013-12-092-3/+66
| | | | | | - Regenerate /var/db/services.db when /etc/services changes. MFC after: 1 week
* Forgot to utilize feature added in SVN r257782 to prevent truncatingdteske2013-12-091-0/+1
| | | | | | /tmp/bsdinstall_log each time we exec a module. MFC after: 3 days
* Fix failed attempt to send pkg(8) stderr to /dev/nulldteske2013-12-091-2/+2
| | | | MFC after: 3 days
* If a vcpu disables its local apic and then executes a 'HLT' then spin down theneel2013-12-071-4/+28
| | | | | | | | | | | | vcpu and destroy its thread context. Also modify the 'HLT' processing to ignore pending interrupts in the IRR if interrupts have been disabled by the guest. The interrupt cannot be injected into the guest in any case so resuming it is futile. With this change "halt" from a Linux guest works correctly. Reviewed by: grehan@ Tested by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)
* Performance and debugging enhancements:dteske2013-12-0777-746/+839
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Remove UNAME_P=$(...) from startup/misc -- already supplied by common.subr + Use f_getvar instead of $(eval echo \$$var) -- f_getvar is sub-shell free + Add `-e' and `-k var' options to f_eval_catch -- increasing use-cases + Use f_eval_catch to display errors on failure -- reducing duplicated code + Use f_eval_catch when we need output from a command -- improving debugging + Optimize f_isinter of strings.subr for performance -- now sub-shell free + Improve error checking on pidfiles -- using f_eval_catch and f_isinteger + Use $var_to_set arg of f_ifconfig_{inet,netmask} -- eliminate sub-shells + Use f_sprintf instead of $(printf ...) -- consolidate sub-shells + Use $var_to_set arg of f_route_get_default -- eliminate sub-shells + Add f_count to replace $(set -- ...;echo $#) -- eliminate sub-shells + Add f_count_ifs to replace $(IFS=x;set -- ...;echo $#) -- no sub-shells + Replace var="$var${var:+ }..." in loops with var="$var ..." with a follow- up var="${var# }" to trim leading whitespace -- optimize loops + Use $var_to_set arg of f_resolv_conf_nameservers -- eliminate sub-shells + Comments for the f_eval_catch function + Remove a duplicate `local ... desc ...' in f_device_get_all of device.subr + Use $var_to_set arg of f_device_capacity -- eliminate sub-shells + Whitespace fixes in f_dialog_init of dialog.subr + Optimize f_inet_atoi of media/tcpip.subr for performance -- sub-shell free + In several cases, send stderr to /dev/null -- clean up runtime execution + Change f_err of common.subr to go to program stderr not terminal stderr, allowing redirection of output from functions that use f_err + Disable debugging when using f_getvar to get variable argument to f_startup_rcconf_map_expand of startup/rcconf.subr + Use f_replace_all instead of $(echo ... | tr | sed) -- performance + Add a $var_to_set option to f_index_{file,menusel_{command,keyword}} of common.subr -- centralize sub-shells
* Fix the processor table entry structure to use a fixed-width type forjhb2013-12-051-16/+3
| | | | | | | 32-bit fields so it is the correct size on amd64. Remove a workaround for the broken structure from bhyve(8). MFC after: 1 week
* Fix a regression introduced by SVN r257842 that prevents Encryption fromdteske2013-12-041-4/+6
| | | | | | being enabled. MFC after: 3 days
* svn r251516 resized the buf argument a bit too much. Pass a hardcodedsbruno2013-12-041-1/+1
| | | | | | | | size of 6 to humanize_number() to resolve this. PR: 184405 Submitted by: jhb MFC after: 2 weeks
* mdoc: quote string properly.joel2013-12-021-1/+1
|
* Fix PKG_ABI detection in bsdconfig(8) after pkg-1.2 is released, sincegjb2013-12-021-1/+1
| | | | | | | the format of 'pkg -vv' output has changed. MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Grammar fix.trasz2013-12-021-2/+2
| | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Fix typos.trasz2013-12-021-3/+3
| | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Sort function output on name of the function.dteske2013-11-301-5/+30
|
* Fix undefined behavior: (1 << 31) is not defined as 1 is an int and thiseadler2013-11-301-1/+1
| | | | | | | | | | | | | shifts into the sign bit. Instead use (1U << 31) which gets the expected result. This fix is not ideal as it assumes a 32 bit int, but does fix the issue for most cases. A similar change was made in OpenBSD. Discussed with: -arch, rdivacky Reviewed by: cperciva
* Make process descriptors standard part of the kernel. rwhod(8) alreadypjd2013-11-301-1/+1
| | | | | | | | requires process descriptors to work and having PROCDESC in GENERIC seems not enough, especially that we hope to have more and more consumers in the base. MFC after: 3 days
* Fix an issue where additional lines of a function definition didn't linedteske2013-11-291-2/+2
| | | | up with the primary (leading) line of syntax.
* Fix an issue where the leading `+' sign before a function name was notdteske2013-11-291-1/+1
| | | | displayed unless color was requested.
* Add support for level triggered interrupt pins on the vioapic. Prior to thisneel2013-11-272-2/+2
| | | | | | | | | | | | | | | commit level triggered interrupts would work as long as the pin was not shared among multiple interrupt sources. The vlapic now keeps track of level triggered interrupts in the trigger mode register and will forward the EOI for a level triggered interrupt to the vioapic. The vioapic in turn uses the EOI to sample the level on the pin and re-inject the vector if the pin is still asserted. The vhpet is the first consumer of level triggered interrupts and advertises that it can generate interrupts on pins 20 through 23 of the vioapic. Discussed with: grehan@
* Provide a helpful diagnostic when the minimum size rounded to the block sizejmallett2013-11-271-0/+7
| | | | | | | | | would exceed the maximum size. This can be a difficult problem to diagnose if one is, for instance, using -s with a fixed size in a script and the bsize calculated for a filesystem image changes, necessitating a re-rounding of the image size or a hand-setting of the bsize. Previously one would get a cryptic message about how the size exceeded the maximum size, which normally only happens if the contents of the image are larger than specified.
* Don't create an initial value for the host filesystem of "/".grehan2013-11-271-1/+1
| | | | | | | This has the unintended effect of booting the host kernel if a disk image open fails. Discussed with: neel
* Allow bhyve and bhyveload to attach to tty devices.grehan2013-11-273-58/+149
| | | | | | | | | | | | | | | | | bhyveload: introduce the -c <device> parameter to select a tty for output (or "stdio") bhyve: allow the puc and lpc-com backends to accept a tty in addition to "stdio" When used in conjunction with the null-modem device, nmdm(4), this allows attach/detach to the guest console and multiple concurrent serial ports. kgdb on a serial port is now functional. Reviewed by: neel Requested by: Almost everyone that has used bhyve MFC after: 10.0
* The Data Byte Count (DBC) field of a Physical Region Descriptorgrehan2013-11-261-11/+21
| | | | | | | | | | | | | Table is 22 bits, with the bit 31 being the interrupt-on-completion bit. OpenBSD and UEFI set this bit, resulting in large block i/o lengths being sent to bhyve and coredumping the process. Fix by masking off the relevant 22 bits when using the DBC field as a length. Reviewed by: Zhixiang Yu Discussed with: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com) MFC after: 10.0
* Fix discrepancy between the IOAPIC ID advertised by firmware tables and theneel2013-11-252-3/+3
| | | | | | | actual value read by the guest from the device. The IOAPIC ID is now set to zero in both MPtable/ACPI tables as well as in the ioapic device emulation. Pointed out by: grehan@
* iostat: fix extracting TTY statistics from core.pluknet2013-11-251-6/+6
| | | | MFC after: 1 week
* Sort messages.dteske2013-11-256-29/+29
|
* Add missing newline to printf format string.dteske2013-11-251-2/+2
|
* Add missing `$' before variable name `pgm'. Unnoticed unless runningdteske2013-11-251-1/+1
| | | | parallel concurrent copies of `bsdconfig syscons_ttys'.
* Add HPET device emulation to bhyve.neel2013-11-251-3/+84
| | | | | | | | | | | bhyve supports a single timer block with 8 timers. The timers are all 32-bit and capable of being operated in periodic mode. All timers support interrupt delivery using MSI. Timers 0 and 1 also support legacy interrupt routing. At the moment the timers are not connected to any ioapic pins but that will be addressed in a subsequent commit. This change is based on a patch from Tycho Nightingale (tycho.nightingale@pluribusnetworks.com).
* Replace Sun RPC license with a 3-clause BSD license, with the explicithrs2013-11-259-243/+234
| | | | permission of Sun Microsystems in 2009.
* Do not create pkg.conf, as it is not necessary anymore and packagesite is ↵bapt2013-11-251-24/+0
| | | | | | | deprecated Reported by: glebius MFC after: 3 days
* Add an ioctl to assert and deassert an ioapic pin atomically. This will be usedneel2013-11-234-10/+17
| | | | | | | | | to inject edge triggered legacy interrupts into the guest. Start using the new API in device models that use edge triggered interrupts: viz. the 8254 timer and the LPC/uart device emulation. Submitted by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)
OpenPOWER on IntegriCloud