summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Convert the offset into the bar that contains the MSI-X table to an offsetneel2013-03-111-0/+3
| | | | | | | | | | | | into the MSI-X table before using it to calculate the table index. In the common case where the MSI-X table is located at the begining of the BAR these two offsets are identical and thus the code was working by accident. This change will fix the case where the MSI-X table is located in the middle or at the end of the BAR that contains it. Obtained from: NetApp
* Fix a typo in DPADD.antoine2013-03-101-1/+1
|
* Garbage collect NWFS and NCP bits which are now completely disconnectedattilio2013-03-093-614/+0
| | | | | | from the tree since few months. This patch is not targeted for MFC.
* Fix bootstrapping pkgng by not appending "/latest/" to PACKAGESITE.bapt2013-03-081-1/+1
| | | | Reporter by : Alexander Yerenkow (via irc)
* Simplify virtio ring num-available calculation.grehan2013-03-062-11/+21
| | | | Submitted by: Chris Torek, torek at torek dot net
* Reorder code to avoid the stat buffer being used uninitialized.grehan2013-03-061-6/+10
| | | | Obtained from: NetApp
* Fix SIGSEGV when set_short_delay() is called when ifi->ifi_ra_timer is NULL.hrs2013-03-061-0/+2
| | | | | This can happen in a short period when a prefix is changed by a rtmsg and a new interface arrives.
* choose in priority the allocated ABI if any to do the ${ABI} substitution in ↵bapt2013-03-051-1/+1
| | | | | | PACKAGESITE Reviewed by: bdrewery
* Add the ability to correctly read pkg.conf is exists.bapt2013-03-054-171/+501
| | | | | | | | | | | | | | | Only look for boostrap useful options: - PACKAGESITE - ABI - MIRROR_TYPE - ASSUME_ALWAYS_YES While here makes PACKAGESITE expand the ${ABI} variable. Allow to deactivate any SRV record look up (MIRROR_TYPE=none) Use the same mechanism as for pkgng itself: first get configuration out of environment variable and fallback on pkg.conf if exists. Reviewed by: bdrewery
* Fix VERBOSE reporting on results when removing _PATH_LOCALTIME for UTC option.dteske2013-03-041-0/+5
| | | | | PR: bin/164976 Submitted by: dteske
* Use GNOP to force ZFS pools to 4k.jpaetzel2013-03-036-14/+66
| | | | Obtained from: PC-BSD
* Improves and enhances using the "installPackages=" variable.jpaetzel2013-03-032-83/+185
| | | | | | | | | | | | | | | | | Adds "pkgExt=" variable to set if pkgs are .tbz or .txz or other. Auto-detects if packages are PKGNG or old PKG format. Auto-bootstrap of PKGNG for the new installed environment. Fixes issues with installing packages from local media, such as DVD/USB. Switch to using a space-delimiter for installPackages, since a number of packages use a "," in their version string. Fix pc-sysinstall to ignore install scripts, and not hang on user interaction prompts when installing pkgs. Add pkg2ng command as apart of pkgng bootstrap process. Obtained from: PC-BSD
* Fix a bug extracting files from dist schemejpaetzel2013-03-034-26/+132
| | | | Obtained from: PC-BSD
* Garbage collect PORTALFS bits which are now completely disconnected fromattilio2013-03-0215-2011/+0
| | | | | | the tree since few months. This patch is not targeted for MFC.
* Specify the length of the mapping requested from 'paddr_guest2host()'.neel2013-03-017-37/+49
| | | | | | | | | This seems prudent to do in its own right but it also opens up the possibility of not having to mmap the entire guest address space in the 'bhyve' process context. Discussed with: grehan Obtained from: NetApp
* Remove EOL whitespace.joel2013-02-271-4/+4
|
* mdoc: begin sentence on new line.joel2013-02-271-6/+10
|
* watchdogd(8) and watchdog(4) enhancements.alfred2013-02-272-19/+418
| | | | | | | | | | | | | | | | | | | The following support was added to watchdog(4): - Support to query the outstanding timeout. - Support to set a software pre-timeout function watchdog with an 'action' - Support to set a software only watchdog with a configurable 'action' 'action' can be a mask specifying a single operation or a combination of: log(9), printf(9), panic(9) and/or kdb_enter(9). Support the following in watchdogged: - Support to utilize the new additions to watchdog(4). - Support to warn if a watchdog script runs for too long. - Support for "dry run" where we do not actually arm the watchdog, but only report on our timing. Sponsored by: iXsystems, Inc. MFC after: 1 month
* Ignore the BARRIER flag in the virtio block header.neel2013-02-261-4/+11
| | | | | | | | This capability is not advertised by the host so ignore it even if the guest insists on setting the flag. Reviewed by: grehan Obtained from: NetApp
* Get rid of unused struct member.neel2013-02-251-1/+0
| | | | | Pointed out by: Gopakumar T Obtained from: NetApp
* Import media selection/preparation framework (sysinstall inspired). Makesdteske2013-02-2537-553/+6766
| | | | | | | | | | | | | | | | | | | | | | | | | | | accessing files from various types of media nice and abstracted away from the wet-work involved in preparing, validating, and initializing those types of media. This will be used for the package management system module and other modules that need access to files and want to allow the user to decide where those files come from (either in a scripted fashion, prompted fashion, or any combination thereof). Heavily inspired by sysinstall and even uses the same reserved words so that scripts are portable. Coded over months, tested continuously through- out, and reviewed several times. Some notes about the changes: - Move network-setting acquisition/validation routines to media/tcpip.subr - The options screen from sysinstall has been converted to a dialog menu - The "UFS" media choice is renamed to "Directory" to reflect how sysinstall treats the choice and a new [true] "UFS" media choice has been added that acts on real UFS partitions (such as external disks with disklabels). - Many more help files have been resurrected from sysinstall (I noticed that some of the content seems a bit dated; I gave them a once-over but they could really use an update). - A total of 10 media choices are presented (via mediaGetType) including: CD/DVD, FTP, FTP Passive, HTTP Proxy, Directory, NFS, DOS, UFS, Floppy, USB - Novel struct/device management layer for managing the issue of passing more information than can comfortably fit in an argument list.
* Fix typo and update copyright.dteske2013-02-251-2/+2
|
* - Implement and use usage().des2013-02-252-10/+26
| | | | | | | | - Document the -C option. - Allow rtadvd to be invoked without any interfaces on the command line, and document that possibility. MFC after: 1 week
* Don't print an empty line for files with no attributes when -q is given forpjd2013-02-221-1/+2
| | | | lsextattr(8).
* Add the ability to have a 'fallback' search for memory ranges.grehan2013-02-223-17/+65
| | | | | | | | | | | | | | | These set of ranges will be looked at if a standard memory range isn't found, and won't be installed in the cache. Use this to implement the memory behaviour of the PCI hole on x86 systems, where writes are ignored and reads always return -1. This allows breakpoints to be set when issuing a 'boot -d', which has the side effect of accessing the PCI hole when changing the PTE protection on kernel code, since the pmap layer hasn't been initialized (a bug, but present in existing FreeBSD releases so has to be handled). Reviewed by: neel Obtained from: NetApp
* Do not use deprecated functions from libarchivebapt2013-02-201-2/+2
|
* Support hardlinks in manifest files by the same logic as the treewalkbrooks2013-02-203-2/+21
| | | | | | | code. Reviewed by: marcel Sponsored by: DARPA, AFRL
* Allow '.' components in manifest paths. They are always the firstbrooks2013-02-201-6/+6
| | | | | | | component of mtree -C and install -M output and are easily skipped. Reviewed by: marcel Sponsored by: DARPA, AFRL
* Fix the -N option in manifest mode by using pwcache(3). This alsobrooks2013-02-201-10/+8
| | | | | | | speeds up image creation appreciably. Reviewed by: marcel Sponsored by: DARPA, AFRL
* Add a -D flag that causes duplicate entries in an mtree manifest to bebrooks2013-02-204-4/+18
| | | | | | | treated as warnings rather than errors. Reviewed by: marcel Sponsored by: DARPA, AFRL
* Check if the -sec option is given without an argument.pluknet2013-02-201-1/+1
| | | | | | PR: bin/170413 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
* Since clang 3.2 now has an option to suppress warnings about implicitlydim2013-02-161-5/+0
| | | | | | | promoted K&R parameters, remove the workarounds added for sendmail components in r228558. MFC after: 1 week
* Merge ACPICA 20130214.jkim2013-02-152-14/+14
|
* Advertise PCI-E capability in the hostbridge device presented to the guest.neel2013-02-153-0/+72
| | | | | | | FreeBSD wants to see this capability in at least one device in the PCI hierarchy before it allows use of MSI or MSI-X. Obtained from: NetApp
* Handle (ignore) when a process disappears before it can be tracked.jamie2013-02-141-6/+9
|
* Add option "--unassign-pptdev=<bus/slot/func>" to allow 'bhyvectl' to detachneel2013-02-141-0/+12
| | | | | | passthru devices from the guest. Obtained from: NetApp
* remove old-style function definitioncharnier2013-02-141-35/+27
| | | | reduce WARNS=6 output
* In case of failure of the pkg boostrap advice the user to either change thebapt2013-02-141-0/+2
| | | | | | | PACKAGESITE they use or install from ports directly indicating where the port is localted in the port collection Submitted by: kientzle
* Add USB API to read power draw on USB devices.hselasky2013-02-141-2/+6
| | | | | | | Update usbconfig to print power draw on USB devices. MFC after: 2 weeks Submitted by: Matt Burke @ icritical.com
* Simplify r243637 and make sure that nfsdargs.{min,max}threads are always setdelphij2013-02-141-20/+7
| | | | | | | | | | | | | to meaningful value: - When nfsdcnt is set, it dictates all values; - Otherwise, nfsdargs.minthreads is set to user specified value, or the automatically detected value if there is no one specified; nfsdargs.maxthreads is set to the user specified value, or the value of nfsdargs.minthreads if there is no one specified; when it is smaller than nfsdargs.minthreads, the latter's value is always used. MFC after: 2 weeks
* Abstract out setting of nfsdcnt and consistently use MAXNFSDCNT when thedelphij2013-02-141-21/+21
| | | | | | proposed value is too high and DEFNFSDCNT when proposed value is too low. MFC after: 2 weeks
* Use static for all functions that do not need to be exported.delphij2013-02-141-27/+27
| | | | MFC after: 2 weeks
* Implement guest vcpu pinning using 'pthread_setaffinity_np(3)'.neel2013-02-112-24/+5
| | | | | | | | | | | | | | Prior to this change pinning was implemented via an ioctl (VM_SET_PINNING) that called 'sched_bind()' on behalf of the user thread. The ULE implementation of 'sched_bind()' bumps up 'td_pinned' which in turn runs afoul of the assertion '(td_pinned == 0)' in userret(). Using the cpuset affinity to implement pinning of the vcpu threads works with both 4BSD and ULE schedulers and has the happy side-effect of getting rid of a bunch of code in vmm.ko. Discussed with: grehan
* Use the entire 64 bits of 'bar.pbi_length' when printing the bar size.neel2013-02-101-1/+1
| | | | This allows bar sizes greater than or equal to 4GB to be displayed correctly.
* Don't try to suppress the inclusion of the build date in named's versioncperciva2013-02-101-1/+1
| | | | | | string by undefining __DATE__, since (unlike gcc) clang doesn't allow us to do that. Instead, define NO_VERSION_DATE, which was helpfully added to the named source code for exactly this purpose.
* Remove NO_OBJ from Makefiles that generate manuals because this causes thedteske2013-02-082-4/+0
| | | | | | | GZIP compressed manuals to appear in ./src instead of the appropriate obj dir. PR: conf/175844 Submitted by: Dominique Goncalves <dominique.goncalves@gmail.com>
* Install <dev/agp/agpreg.h> and <dev/pci/pcireg.h> as userland headersjhb2013-02-052-4/+0
| | | | | | in /usr/include. MFC after: 2 weeks
* crunchgen: Permit use of alternative linkers.pfg2013-02-051-1/+2
| | | | | Submitted by: Pete Chou MFC after: 1 week
* crunchide(1): Put e_shnum into a local variable.pfg2013-02-031-10/+13
| | | | | | | This simplifies the code a bit. Submitted by: Cristoph Mallon MFC after: 2 weeks
* crunchide(1): support non-custom elf object layoutpfg2013-02-031-60/+157
| | | | | | | | | | | | | | | The crunchide utility presumes the last 3 chunks of an ELF object layout are section headers, symbol table, and then string table. However, this is not specified in the ELF standards, and linkers may generate different layouts when doing partial linking (-r). This change is required to build FreeBSD with mclinker or the gold linker. PR: bin/174011 Submitted by: Pete Chou Reviewed by: Cristoph Mallon MFC after: 2 weeks
OpenPOWER on IntegriCloud