aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Replace all uses of libncurses and libtermcap with their wide characterBrooks Davis2014-07-1741-85/+81
| | | | | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=268804
* Remove the man page for a pmap function that no longer exists.Alan Cox2014-07-175-20/+8
| | | | Notes: svn path=/head/; revision=268803
* Add support for the fixed image type. The fixed image is effectivelyMarcel Moolenaar2014-07-171-93/+153
| | | | | | | | | | | | | a raw image with a VHD footer appended. There's little value that I can see to use the fixed image type, but in order to make VHD images for use by Microsoft's Azure platform, they must be fixed VHD images. Support has been added by refactoring the code to re-use common code and by adding a second output format structure. To created fixed VHD images, specify "vhdf" as the output format. Notes: svn path=/head/; revision=268802
* grep: fix some memory leaks.Pedro F. Giffuni2014-07-171-0/+1
| | | | | | | | | Add memory leak fix missing from r268799. Obtained from: NetBSD Notes: svn path=/head/; revision=268801
* Fix indentationBryan Drewery2014-07-171-2/+2
| | | | Notes: svn path=/head/; revision=268800
* grep: fix some memory leaks.Pedro F. Giffuni2014-07-172-7/+17
| | | | | | | | | | | | | | | | | Bring a couple of changes from NetBSD: queue.c (CVS Rev. 1.4. 1.5) Fix memory leaks. NULL does not need a cast. grep.c (CVS Rev. 1.6) Use the more portable getline. Obtained from: NetBSD MFC after: 3 days Notes: svn path=/head/; revision=268799
* grep: Fix type.Pedro F. Giffuni2014-07-171-1/+1
| | | | | | | | Obtained from: NetBSD (CVS rev. 1.17) MFC after: 3 days Notes: svn path=/head/; revision=268798
* Fix embarassing typos I made.Nathan Whitehorn2014-07-171-5/+5
| | | | | | | Submitted by: rayddteam Notes: svn path=/head/; revision=268796
* Fix ctld crash on startup if target alias is not set.Alexander Motin2014-07-171-2/+5
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=268795
* units(1): Add basic testsEitan Adler2014-07-174-0/+39
| | | | | | | Add some tests to help avoid breaking units Notes: svn path=/head/; revision=268794
* chown: Fix chown test numberEitan Adler2014-07-171-1/+1
| | | | Notes: svn path=/head/; revision=268793
* units(1): Add support for output-formatEitan Adler2014-07-172-14/+50
| | | | | | | | Add support for the output-format argument. This also exposes subtle rounding differences between GNU units and our units. Notes: svn path=/head/; revision=268792
* Fix a typo.Hiren Panchasara2014-07-171-1/+1
| | | | | | | | PR: 191898 Submitted by: vsjcfm@gmail.com Notes: svn path=/head/; revision=268790
* Oops - somehow I missed the IP option numbers clashing with the multicastAdrian Chadd2014-07-171-4/+5
| | | | | | | | | numbers below. Move them to a new set of non-clashing numbers. Notes: svn path=/head/; revision=268788
* Deprecate m_act. Use m_nextpkt always.Kevin Lo2014-07-173-3/+3
| | | | Notes: svn path=/head/; revision=268787
* Correct the name of the man page for pmap_ts_referenced().Alan Cox2014-07-163-3/+5
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=268781
* Nuke the never-used RF_TIMESHARE feature, reducing the complexity of theDon Lewis2014-07-163-113/+16
| | | | | | | | | | | | | | | | | | | | | | code. The consensus on arch@ is that this feature might have been useful in the distant past, but is now just unnecessary bloat. The int_rman_activate_resource() and int_rman_deactivate_resource() functions become trivial, so manually inline them. The special deferred handling of RF_ACTIVE is no longer needed in reserve_resource_bound(), so eliminate the associated code at the end of the function. These changes reduce the object file size by more than 500 bytes on i386. Update the rman.9 man page to reflect the removal of the RF_TIMESHARE feature. MFC after: 2 weeks Notes: svn path=/head/; revision=268780
* Regen after r268778 to replace WITH_TESTS with WITHOUT_TESTS.Julio Merino2014-07-161-4/+7
| | | | Notes: svn path=/head/; revision=268779
* Enable MK_TESTS by default, take 2.Julio Merino2014-07-163-9/+10
| | | | | | | | | This is a redo of r267424, which was reverted in r267432 because it broke "make buildworld" from FreeBSD 9.x. This issue has been resolved and this change is still "make tinderbox" clean. Notes: svn path=/head/; revision=268778
* Add emulation for legacy x86 task switching mechanism.Neel Natu2014-07-168-12/+1037
| | | | | | | | | | FreeBSD/i386 uses task switching to handle double fault exceptions and this change enables that to work. Reported by: glebius Notes: svn path=/head/; revision=268777
* Implement pmap_unwire(). See r268327 for the motivation behind this change.Alan Cox2014-07-162-0/+119
| | | | Notes: svn path=/head/; revision=268776
* After r261991, clang warnings about unused functions in the kernel wereDimitry Andric2014-07-161-1/+1
| | | | | | | | | | | | | completely silenced. Make sure these warnings appear again, so there is some incentive to fix them, but do not error out the whole kernel build for them. Noticed by: steven@pyro.eu.org PR: 191867 MFC after: 3 days Notes: svn path=/head/; revision=268774
* Revert previous revision (r268461) for reasons documented in PR.Devin Teske2014-07-161-1/+1
| | | | | | | | | | | | | | | To use tmux in an rc.d script, use the new-session flag "-d". To use screen in an rc.d script, use the "-dm" flag. If you really need to launch an attached session, manually export TERM=xterm (FreeBSD 9.0 or higher) or export TERM=cons25 for older releases. Reported by: bdrewery Discussed on: src-committers, svn-src-all, svn-src-head PR: bin/191869 Notes: svn path=/head/; revision=268773
* Allow efifb to be used with xf86-video-scfb. This is important for EFINathan Whitehorn2014-07-161-7/+3
| | | | | | | | | | | | | | systems without either a CSM or real graphics drivers, such as my Lenovo Haswell laptop. This provides working X with the small complication of a console cursor permanently overlaid on the upper-left corner of the screen that will be dealt with later. Also remove some redundant screen clearing. Notes: svn path=/head/; revision=268772
* Allow console drivers active from early boot to be used with xf86-video-scfb,Nathan Whitehorn2014-07-164-39/+64
| | | | | | | | | | | rather than only drivers attached later on. This involves a small amount of code duplication with dev/fb/fbd.c, which will fixed later on. Also improve performance of vt_blank() by making it not read from the framebuffer unnecessarily. Notes: svn path=/head/; revision=268771
* libpythagoras needs libm.Julio Merino2014-07-161-0/+3
| | | | | | | | This fixes "make tinderbox" failures on various architectures when WITH_TESTS=yes is enabled. Problem introduced in r267679. Notes: svn path=/head/; revision=268770
* Add support for VMWare dialect of EXTENDED COPY command, aka VAAI Clone.Alexander Motin2014-07-1615-47/+2385
| | | | | | | | | | | | | | | | | | This allows to clone VMs and move them between LUNs inside one storage host without generating extra network traffic to the initiator and back, and without being limited by network bandwidth. LUNs participating in copy operation should have UNIQUE NAA or EUI IDs set. For LUNs without these IDs VMWare will use traditional copy operations. Beware: the above LUN IDs explicitly set to values non-unique from the VM cluster point of view may cause data corruption if wrong LUN is addressed! MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=268767
* Do not ignore error from tmpfs_alloc_vp(). It results in access toKonstantin Belousov2014-07-161-1/+3
| | | | | | | | | | | the random memory. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=268766
* Remove unused header.Konstantin Belousov2014-07-161-1/+0
| | | | | | | | | Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=268765
* Check for the cross-device cross-link attempt in the VFS, instead ofKonstantin Belousov2014-07-167-41/+9
| | | | | | | | | | | | | | | | forcing filesystem VOP_LINK() methods to repeat the code. In tmpfs_link(), remove redundand check for the type of the source, already done by VFS. Note that NFS server already performs this check before calling VOP_LINK(). Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=268764
* Sort properly the headersBaptiste Daroussin2014-07-161-4/+5
| | | | | | | | | While here space/tabs cleanup Reviewed by: kib Notes: svn path=/head/; revision=268763
* White space fixesBaptiste Daroussin2014-07-161-2/+2
| | | | Notes: svn path=/head/; revision=268751
* Sort headersBaptiste Daroussin2014-07-161-12/+8
| | | | | | | | | Constify long options Remove useless call to sigemptyset properly check errno when waiting for a process status when a SIGCHLD is received Notes: svn path=/head/; revision=268750
* Fix typoBaptiste Daroussin2014-07-161-1/+1
| | | | Notes: svn path=/head/; revision=268749
* Style(9) fixBaptiste Daroussin2014-07-161-0/+1
| | | | Notes: svn path=/head/; revision=268748
* Fix build with gccBaptiste Daroussin2014-07-161-5/+4
| | | | Notes: svn path=/head/; revision=268747
* Fix indentationBaptiste Daroussin2014-07-161-1/+1
| | | | Notes: svn path=/head/; revision=268746
* New BSDL timeout(1) utility compatible with GNU timeoutBaptiste Daroussin2014-07-164-0/+412
| | | | | | | | | | it fully passes the GNU timeout regression tests, it is written in a mostly portable way (only signal parsing is relying on non portable structures) Phabric: D377 Notes: svn path=/head/; revision=268745
* Improve support for Intel Lynx Point USB 3.0 controllers by using theHans Petter Selasky2014-07-161-3/+6
| | | | | | | | | | | | USB 2.0 port mask in addition to the USB 3.0 port mask. The hardware does not always accept when writing -1U to the port switching registers. MFC after: 3 days Tested by: Huang Wen Hui <huanghwh@gmail.com> Notes: svn path=/head/; revision=268735
* When we fail to extract the pkg binaries (for example, / is read-only),Gavin Atkinson2014-07-161-1/+2
| | | | | | | | | give a more helpful error message. MFC after: 1 week Notes: svn path=/head/; revision=268728
* Add a bandaid to fix GCC build (on sparc64 et al).Xin LI2014-07-151-0/+1
| | | | Notes: svn path=/head/; revision=268727
* Move the "retry:" label so that the calls to m_pullup() areRick Macklem2014-07-151-1/+1
| | | | | | | | | | | | | not done after the call to m_defrag(). This fixes a problem where m_pullup() would prepend an mbuf to the list created by m_defrag() making the chain greater than 32 again. Tested by: rcarter@pinyon.org Reviewed by: yongari, jfv MFC after: 2 weeks Notes: svn path=/head/; revision=268726
* Since r202933, kthread_suspend_check() takes no arguments. Update theGavin Atkinson2014-07-151-2/+2
| | | | | | | | | example to match. MFC after: 3 days Notes: svn path=/head/; revision=268725
* Also link 'show bio' to g_bio(9.)Bryan Drewery2014-07-151-1/+3
| | | | | | | | | X-MFC-With: r268715 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=268722
* MFV r268714:Xin LI2014-07-152-15/+63
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve extreme rewind import. When doing an "extreme rewind" import ("zpool import -XF"), we attempt to verify all data in the pool, essentially scrubbing the entire pool. The problem is that spa_load_verify_cb() issues an unbounded number of concurrent scrub i/os. This can lead to all of memory being used for these zio's, wedging the system. Like normal scrub, we need to put a cap on the number of outstanding i/os, and have the traverse thread block when we reach this cap. For this purpose the cap can be very large (10,000) to optimize the elevator algorithm. Three kernel tunables have been added: vfs.zfs.spa_load_verify_maxinflight vfs.zfs.spa_load_verify_metadata vfs.zfs.spa_load_verify_data The latter two tunables controls whether metadata and/or user data when doing extreme rewind. Make 'zpool import -T' imply scrub. Make zpool import -T <txg> accept hexadecimal values for the txg when prefixed with 0x. Skip txg's for which there is no uberblock when doing extreme rewind. Skip reading all user data twice by skipping prefetches when doing extreme rewinds as we do not access via the ARC. Illumos issues: 4970 need controls on i/o issued by zpool import -XF 4971 zpool import -T should accept hex values 4972 zpool import -T implies extreme rewind, and thus a scrub 4973 spa_load_retry retries the same txg 4974 spa_load_verify() reads all data twice MFC after: 2 weeks Notes: svn path=/head/; revision=268720
| * 4970 need controls on i/o issued by zpool import -XFXin LI2014-07-152-15/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4971 zpool import -T should accept hex values 4972 zpool import -T implies extreme rewind, and thus a scrub 4973 spa_load_retry retries the same txg 4974 spa_load_verify() reads all data twice Reviewed by: Christopher Siden <christopher.siden@delphix.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> illumos/illumos-gate@e42d205944d245bf5d1c4fc45261cbe09e28a7b9 Notes: svn path=/vendor-sys/illumos/dist/; revision=268714
* | Document the 'show bio' command added in 2009.Bryan Drewery2014-07-151-10/+17
| | | | | | | | | | | | | | | | | | | | | | While here also reword 'show buffer' to have an 'addr' argument and to match other struct documentation. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=268715
* | MFV r268702:Xin LI2014-07-155-1/+19
|\| | | | | | | | | | | | | | | | | | | | | | | Add missing *_destroy() calls in various places with ZFS. Illumos issue: 4975 missing mutex_destroy() calls in zfs MFC after: 2 weeks Notes: svn path=/head/; revision=268713
| * 4975 missing mutex_destroy() calls in zfsXin LI2014-07-155-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: Matthew Ahrens <matthew.ahrens@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Rich Lowe <richlowe@richlowe.net> Reviewed by: Seth Nimbosa <darth.Serious@gmail.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Don Brady <dev.fs.zfs@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com> illumos/illumos-gate@d2b3cbbd7f3a37bc7c01b526d3eb312acd070423 Notes: svn path=/vendor-sys/illumos/dist/; revision=268702
| * 4951 ZFS administrative commands should use reserved space, not fail with ↵Xin LI2014-07-142-6/+2
| | | | | | | | | | | | | | | | | | | | | | ENOSPC (fix call) Approved by: Christopher Siden <christopher.siden@delphix.com> illumos/illumos-gate@c39f2c8cacf297ec37acd421f4c4fec127991995 Notes: svn path=/vendor-sys/illumos/dist/; revision=268626