aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* MFC 281887:John Baldwin2015-06-029-9/+9
| | | | | | | | Reassign copyright statements on several files from Advanced Computing Technologies LLC to Hudson River Trading LLC. Notes: svn path=/stable/8/; revision=283927
* MFC r270190: Don't stop other parallel build legs on failure of make_check.Ian Lepore2015-02-201-0/+3
| | | | Notes: svn path=/stable/8/; revision=279034
* MFC r273360:Navdeep Parhar2014-11-171-1/+1
| | | | | | | One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified. Notes: svn path=/stable/8/; revision=274617
* cxgbetool from 9-STABLE (this one works with T5 cards).Navdeep Parhar2014-09-133-13/+65585
| | | | Notes: svn path=/stable/8/; revision=271558
* Backport the separation of the knob that controls the legacy pkg_installPeter Wemm2014-08-312-0/+9
| | | | | | | tools (ie: WITH/WITHOUT_PKGTOOLS) and the pkg bootstrap tool. Notes: svn path=/stable/8/; revision=270887
* MFC 238423,238426,238428,258063,258064,258066,258097,258185,259134:John Baldwin2014-08-197-0/+2992
| | | | | | | | | | | | | | The etcupdate utility is a tool for managing updates to files that are not updated as part of `make installworld' such as files in /etc. It manages updates by doing a three-way merge of changes made to these files against the local versions. It is also designed to minimize the amount of user intervention with the goal of simplifying upgrades for clusters of machines. Requested by: peter Notes: svn path=/stable/8/; revision=270177
* MFC r258647: zfsboottest: properly specify a library dependencyAndriy Gapon2014-01-161-1/+1
| | | | Notes: svn path=/stable/8/; revision=260736
* MFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)Andriy Gapon2014-01-161-13/+81
| | | | Notes: svn path=/stable/8/; revision=260730
* MFC r258351: fsx: new option to disable msync(MS_SYNC) after each writeAndriy Gapon2014-01-161-4/+11
| | | | Notes: svn path=/stable/8/; revision=260727
* MFC 197775,197777-197779,197781,197794,243152,243313,255478:John Baldwin2014-01-134-0/+593
| | | | | | | | | | | | First cut at implementing SOCK_SEQPACKET support for UNIX (local) domain sockets. This allows for reliable bi-directional datagram communication over UNIX domain sockets, in contrast to SOCK_DGRAM (M:N, unreliable) or SOCK_STERAM (bi-directional bytestream). Largely, this reuses existing UNIX domain socket code. This allows applications requiring record- oriented semantics to do so reliably via local IPC. Notes: svn path=/stable/8/; revision=260606
* MFC r253605: zfsboottest: remove explicit -WerrorAndriy Gapon2013-08-071-2/+1
| | | | Notes: svn path=/stable/8/; revision=254040
* MFC r253068: zfsboottest.sh: remove checks for things that are notAndriy Gapon2013-08-071-18/+0
| | | | | | | strictly required Notes: svn path=/stable/8/; revision=254038
* MFC r253067: zfsboottest: sync with changes in zfs boot codeAndriy Gapon2013-08-071-2/+5
| | | | Notes: svn path=/stable/8/; revision=254036
* MFH (r253138,r253258): install authpf-noipDag-Erling Smørgrav2013-07-151-3/+6
| | | | Notes: svn path=/stable/8/; revision=253358
* MF9: r237968, r251504:David E. O'Brien2013-06-073-13/+58
| | | | | | | | MFC: r251368, r251382: Match the options of the kernel. MFC: r237279: install filemon.h into /usr/include for userland consumption. Notes: svn path=/stable/8/; revision=251511
* MFC r243314:Sergey Kandaurov2013-04-293-1249/+1652
| | | | | | | | | | | | | Zero the whole struct not just the size of a pointer. MFC r246670: Major update for unix_cmsg. PR: bin/131567 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> Notes: svn path=/stable/8/; revision=250077
* Fix build.Sergey Kandaurov2013-04-291-2/+2
| | | | | | | | - pass a format string to printf - catch up with constifying uz_name Notes: svn path=/stable/8/; revision=250046
* MFC r213713 by obrien: Correct regression test to not show a false positiveJilles Tjoelker2013-03-061-6/+9
| | | | | | | when run as root. Notes: svn path=/stable/8/; revision=247901
* MFC r247854:Navdeep Parhar2013-03-061-0/+1
| | | | | | | Fix compile warning by including ctype.h for isdigit(). Notes: svn path=/stable/8/; revision=247897
* MFC r234831, r234833, r237263**, r237436*, r237439, r237463, r237512,Navdeep Parhar2013-03-021-3/+93
| | | | | | | | | | | | | | | | | | | | | | r237587, r237799, r237819, r237831, r238028, r238054, r238313, r239102, r239258, r239259, r239264*, r239266, r239336, r239338*, r239339, r239341, r239344, r240443, r240451, r240452*, r240453, r241397, r241398, r241399, r241401, r241409, r241416, r241493, r244551, r244580, r245243, r245274*, r245276*, r245434*, r245517, r245518, r245520, r245567, r245933, r245935, r245936, r246093, r246385, r246575, r247062, r247122, r247289, r247291, r247347, r247355. This brings stable/8's cxgbe(4) up to date with what's in head right now. One major difference is the missing t4_tom (TCP Offload Module); there are no plans to backport it to 8. Build tested with make universe (with -DMAKE_JUST_KERNELS) * partial ** partial manual backport, not really an MFC Notes: svn path=/stable/8/; revision=247670
* Pull in OpenSSH 6.1 from head.Dag-Erling Smørgrav2013-03-011-0/+9
| | | | | | | | Although ECC-based algorithms are now supported, the order of preference has been changed so that RSA and DSA are still the preferred algorithms. Notes: svn path=/stable/8/; revision=247521
* MFC r222292,r230095: Show errno messages in cd.Jilles Tjoelker2013-02-201-0/+26
| | | | Notes: svn path=/stable/8/; revision=247063
* MF9: MFC: r242137: Iterate rather than use recursion.David E. O'Brien2012-11-132-3/+198
| | | | | | | We can blow out the kernel stack if there is a long chain of fork(2)s. Notes: svn path=/stable/8/; revision=242950
* MFC r241844:Eitan Adler2012-11-042-2/+2
| | | | | | | | | remove duplicate semicolons where possible. Approved by: cperciva (implicit) Notes: svn path=/stable/8/; revision=242543
* MFC r241828,r241891:Eitan Adler2012-10-261-2/+0
| | | | | | | | | Finish migration of MAINTAINER entries Approved by: cperciva (implicit) Notes: svn path=/stable/8/; revision=242113
* MFC r241832:Eitan Adler2012-10-251-7/+7
| | | | | | | | | Covert regression test to python 3 Approved by: cperciva (implicit) Notes: svn path=/stable/8/; revision=242042
* MF9: r237100: MFC r236338, r236339, r236346, r236347, r236365, & r236977David E. O'Brien2012-10-0922-0/+79
| | | | | | | | | | | | | | | * Deprecate the FreeBSD 10's make's ":U" (to-upper case) and ":L" (to-lower case) modifiers for ":tu" and ":tl". * make it easier to test newly-built make. * Add "-V '${VAR}'" variable expansion from Portable Berkeley Make. * regression test for '-V' command line option and the :t[lu] modifiers. MF9: r241364: Update MAKE_VERSION for r237100. MFC: r201225: add missing `void' keyword. Notes: svn path=/stable/8/; revision=241368
* MFC r240470:Eitan Adler2012-09-2511-1080/+0
| | | | | | | | | Remove scripts and tools which only functioned when src was using CVS Approved by: cperciva (implicit) Notes: svn path=/stable/8/; revision=240906
* MF9: r237795David E. O'Brien2012-09-193-0/+151
| | | | | | | | MFC: r236592 r236593 r236594 r236620 r236621 r236622 r236637 r237794: filemon(4) Notes: svn path=/stable/8/; revision=240707
* MFC r235392,235394,235395: fixes and cleanups for zfs boot MFCAndriy Gapon2012-06-291-3/+21
| | | | Notes: svn path=/stable/8/; revision=237769
* MFC r235130: zfsboottest.sh: correctly check and suggest value ofAndriy Gapon2012-06-021-2/+2
| | | | | | | vfs.root.mountfrom Notes: svn path=/stable/8/; revision=236463
* MFC r235129: zfsboottest.sh: gracefully handle default value of bootfsAndriy Gapon2012-06-021-2/+1
| | | | | | | property Notes: svn path=/stable/8/; revision=236461
* MFC r236274, r236278, r236279:Glen Barber2012-06-021-1/+1
| | | | | | | | | | | | | | r236274: - Fix an mdoc(7) formatting nit. r236278: - Fix mdoc(7) style nits. r236279: - Add '-width Pa' to src.conf.5 for mdoc(7) style consistency. Notes: svn path=/stable/8/; revision=236431
* MFC: r222090: add WITH{,OUT}_{GCC,BINUTILS} providing fine-grained controlDavid E. O'Brien2012-05-302-0/+13
| | | | Notes: svn path=/stable/8/; revision=236342
* MFC r235342:Glen Barber2012-05-181-1/+1
| | | | | | | | | General mdoc(7) and typo fixes. PR: 167804 Notes: svn path=/stable/8/; revision=235588
* MFC r232839: sh: Add a test for variables with underscores in arithmetic.Jilles Tjoelker2012-04-071-0/+4
| | | | Notes: svn path=/stable/8/; revision=234002
* MFC r228274:Eitan Adler2012-03-163-3/+5
| | | | | | | | | | - Fix some uninitialized variables in pipe regression tests that result in failure. PR: misc/161175 Approved by: cperciva Notes: svn path=/stable/8/; revision=233020
* MFC r232609:Bjoern A. Zeeb2012-03-121-1/+1
| | | | | | | | | | | | | Use = rather than == for expressions to test(1) builtin(1) in sh(1) to comply with standards. On modern branches there is an undocumented alias (see r219084) but on stable/7 this is still an error. Sponsored by: Cisco Systems, Inc. Notes: svn path=/stable/8/; revision=232905
* MFC r231858:Bjoern A. Zeeb2012-03-057-0/+4708
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add regression tests scripts for multi-IP FIBs exercising the send, receive and forward path tagging packets with both the ifconfig fib option or using ipfw, running ICMP6, TCP/v6 and UDP/v6 tests and testing both setfib(2) as well as the SO_SETFIB socket option. At 16 FIBs a total of over 64k return codes/replies/stati are checked, sometimes multiple times (in different ways, e.g. the reflected request as well as ipfw counter values). The scripts need two or three machines to run and are thus not added to the tools/regression framework but only to tools/test. MFC r232114: Update scripts to work around two sh(1) bugs found in stable/8: 1) _x=$((_x + 1)) does not work while x=$((x + 1)) does. 2) Parameter Expansion, esp. "${x%%bar}" does not work if quoted. Correct typos and improve some details forwarding.sh already had in initiator, esp. related to ipfw accepting if the default is deny. Add an extra stat call to the "delay" function in addition to the touch which together is still a lot faster than sleep 1 but seems to help a lot more to mitigate the unrelated kernel race seen. Sponsored by: Cisco Systems, Inc. Notes: svn path=/stable/8/; revision=232567
* MFC r231855:Bjoern A. Zeeb2012-03-053-0/+262
| | | | | | | | | | | | | Add regression tests for the setsockopt(2) SO_SETFIB socket option. Check that the expected domain(9) families all handle the socket option correctly and do proper bounds checks. This would catch bugs as fixed in (r230938,)r230981. Sponsored by: Cisco Systems, Inc. Notes: svn path=/stable/8/; revision=232565
* MFC: bring in the core netmap code (disconnectedLuigi Rizzo2012-02-146-0/+2294
| | | | | | | | from the build). As usual, device driver patches will come separately. Notes: svn path=/stable/8/; revision=231717
* MFC r222974:Navdeep Parhar2012-02-071-0/+235
| | | | | | | Add "context" subcommand to fetch and display SGE context. Notes: svn path=/stable/8/; revision=231117
* MFC r228491, r228561, r228594.Navdeep Parhar2012-02-071-29/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r228491: Do not clobber the ingress queue's congestion setting. r228561: Many updates to cxgbe(4) - Device configuration via plain text config file. Also able to operate when not attached to the chip as the master driver. - Generic "work request" queue that serves as the base for both ctrl and ofld tx queues. - Generic interrupt handler routine that can process any event on any kind of ingress queue (via a dispatch table). - A couple of new driver ioctls. cxgbetool can now install a firmware to the card ("loadfw" command) and can read the card's memory ("memdump" and "tcb" commands). - Lots of assorted information within dev.t4nex.X.misc.* This is primarily for debugging and won't show up in sysctl -a. - Code to manage the L2 tables on the chip. - Updates to cxgbe(4) man page to go with the tunables that have changed. - Updates to the shared code in common/ - Updates to the driver-firmware interface (now at fw 1.4.16.0) r228594: Catch up with new driver ioctls in cxgbe. Notes: svn path=/stable/8/; revision=231103
* MFC r222900 and r224768Navdeep Parhar2012-02-0612-0/+53022
| | | | | | | | | | | r222900: cxgbetool: a tool for the cxgbe(4) driver. r224768: Move cxgbtool from usr.sbin to tools/tools. Notes: svn path=/stable/8/; revision=231100
* MFC r230212:Jean-Sébastien Pédron2012-02-062-0/+14
| | | | | | | | | | | | | | | | sh: Fix execution of multiple statements in a trap when evalskip is set Before this fix, only the first statement of the trap was executed if evalskip was set. This is for example the case when: o "-e" is set for this shell o a trap is set on EXIT o a function returns 1 and causes the script to abort Reviewed by: jilles Sponsored by: Yakaz (http://www.yakaz.com) Notes: svn path=/stable/8/; revision=231086
* MFC r230211:Jean-Sébastien Pédron2012-02-061-0/+3
| | | | | | | | | sh: Test EXIT trap with multiple statements in it Reviewed by: jilles Notes: svn path=/stable/8/; revision=231083
* MFC r228259:Jean-Sébastien Pédron2012-01-264-1/+409
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support domain-search in dhclient(8) The "domain-search" option (option 119) allows a DHCP server to publish a list of implicit domain suffixes used during name lookup. This option is described in RFC 3397. For instance, if the domain-search option says: ".example.org .example.com" and one wants to resolve "foobar", the resolver will try: 1. "foobar.example.org" 2. "foobar.example.com" The file /etc/resolv.conf is updated with a "search" directive if the DHCP server provides "domain-search". A regression test suite is included in this patch under tools/regression/sbin/dhclient. PR: bin/151940 Sponsored by: Yakaz (http://www.yakaz.com) MFC r229000: Invalid Domain Search option isn't considered as a fatal error In the original Domain Search option patch, an invalid option value would cause the whole lease to be rejected. However, DHCP servers who emit such an invalid value are more common than I thought. With this new patch, just the option is rejected, not the entire lease. PR: bin/163431 Submitted by: Fabian Keil <fk@fabiankeil.de> (earlier version) Reviewed by: Fabian Keil <fk@fabiankeil.de> Sponsored by: Yakaz (http://www.yakaz.com) MFC r229001: Adapt testsuite following change in Domain Search error handling In this testsuite, warning() and error() have the same behaviour. PR: bin/163431 Sponsored by: Yakaz (http://www.yakaz.com) Notes: svn path=/stable/8/; revision=230603
* MFC r222286 (originally committed by ru):Lawrence Stewart2012-01-211-1/+1
| | | | | | | [mdoc] Fixed .Dt call. Notes: svn path=/stable/8/; revision=230413
* MFC r227124: fifo_misc test: Fix swapped lseek arguments.Jilles Tjoelker2012-01-201-1/+1
| | | | | | | | | It worked regardless because SEEK_CUR happens to be 1. PR: misc/160866 Notes: svn path=/stable/8/; revision=230385
* MFC zfsboottest:Martin Matuska2012-01-073-0/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r225608 (partial), r225609, r226611, r226612 MFC r225608 (avg, tools/ part): zfstest: rename to zfsboottest and move to tools MFC r225609 (avg): zfsboottest: some additional enhancements - redirect diagnostics printfs in the boot code to stderr - do not read trailing garbage from a trailing block of a file Also add my copyright to the file after making so many changes. MFC r226611 (pjd): - Allow to specify multiple files to check, eg. zfsboottest gpt/system0 gpt/system1 - /boot/kernel/kernel /boot/zfsloader - Instead of printing file's content calculate MD5 hash of the file, so it can be easly compared to the hash calculated via file system. - Some other minor improvements. MFC r226612 (pjd): Because ZFS boot code was very fragile in the past and real PITA to debug, introduce zfsboottest.sh script that will verify if it will be possible to boot from the given pool. # zfsboottest.sh system Where "system" is pool name of the pool we want to boot from. What is being verified by the script: - Does the pool exist? - Does it have bootfs property configured? - Is mountpoint property of the boot dataset set to 'legacy'? Dataset configured in bootfs property has to be mounted to perform more checks: - Does the /boot directory in boot dataset exist? - Is this dataset configured as root file system in /etc/fstab or set in vfs.root.mountfrom variable in /boot/loader.conf? By using zfsboottest tool the script will read all the files in /boot directory using ZFS boot code and calculate their checksums. Then, it will walk /boot directory using find(1) though regular file sytem and also read all the files in /boot directory and calculate their checksums. If any of the files cannot be looked up, read or checksum is invalid it will be reported and booting off of this pool is probably not possible. Some additional checks may be interesting as well. For example if the disks contain proper pmbr and gptzfsboot code or if all expected files in /boot/ are present. When upgrading FreeBSD, one should snapshot datasets that contain operating system, upgrade (install new world and kernel) and use zfsboottest.sh to verify if it will be possible to boot from new configuration. If all is good one should upgrade boot blocks, by eg.: # gpart -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 If something is wrong, one should rollback datasets and report the problems. Notes: svn path=/stable/8/; revision=229761