summaryrefslogtreecommitdiffstats
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* Have dtrace(1) handle SIGPIPE by cleaning up and exiting. Additionally,markj2014-10-021-15/+30
| | | | | | | | | | | | | | | | install signal handlers when running in list mode (-l), and acknowledge interrupts by cleaning up and exiting. This ensures that a command like $ dtrace -l -P 'pid$target' -p <target PID> | less won't cause the ptrace(2)d target process to be killed if less(1) exits before all dtrace output is consumed. Reported by: Anton Yuzhaninov <citrin+bsd@citrin.ru> Differential Revision: https://reviews.freebsd.org/D880 Reviewed by: rpaulo MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
* Revert r272189, the committed version was an old version and breaks build.delphij2014-09-271-2/+2
| | | | Pointy hat to: delphij
* Add libuutil to dependency list.delphij2014-09-261-2/+2
| | | | | Noticed by: sef MFC after: 3 days
* Fix the description of the -h option.markj2014-09-261-14/+13
| | | | | Reported by: swills MFC after: 3 days
* Build plockstat if WITH_PLOCKSTAT is defined.rpaulo2014-09-231-0/+4
|
* Remove an incorrect close(2) call that was added in r271413.markj2014-09-221-1/+0
| | | | | | Reported by: Coverity CID: 1238923 X-MFC-With: r271413
* Remove some variables that are no longer used as of r271413.markj2014-09-221-10/+4
| | | | | | Reported by: Coverity CID: 1238924 X-MFC-With: r271413
* Output boot code warning when zpool upgrade -a is used to add features.smh2014-09-211-3/+8
| | | | | | | | In the case where new features where enabled by a zpool upgrade -a the boot code warning wasn't output. Submitted by: Jan Kokemueller MFC after: 3 days
* zfs_setprop_error(): Handle errno value E2BIG.will2014-09-181-0/+6
| | | | | | | | | | | | | | | | | | | | This errno value is emitted by dsl_props_set_check() in sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c, and is used to mean that the property value is too long. For the record, the maximum length is ZAP_MAXVALUELEN, which is 8*1024 bytes. Instead of claiming an unknown error (and abort()ing), provide something more specific to the scenario involved. As far as I can tell, E2BIG is not emitted for any other scenario. MFC after: 1 week Sponsored by: Spectra Logic Affects: All ZFS versions starting 27 Feb 2009 (illumos ccba0801) This change modified the value returned by dsl_props_set_check(), so that it can distinguish between a name that's too long and a value that's too long, but libzfs was not updated accordingly. MFSpectraBSD: r1051499 on 2014/03/28 11:07:59
* Fix an assert to tolerate spare parents with more than 2 children.will2014-09-181-4/+8
| | | | | | | | | | | This can occur if a spare is being spared, which would yield three children: the original pool drive, the previous spare, and the spare that is replacing it. MFC after: 1 week Sponsored by: Spectra Logic Affects: All ZFS versions starting 7 Jun 2006 (illumos 94de1d4c) MFSpectraBSD: r668345 on 2013/06/04 17:10:43
* Implement a workaround to allow this test program to be compiled with clang.markj2014-09-171-2/+2
| | | | | | | | | It seems that if a pragma is used to define a weak alias for a local function, the pragma must appear after the function is defined. PR: 193056 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix a number of typos and programming errors in the userland CTF tests. Itmarkj2014-09-174-5/+9
| | | | | | | | seems that they would only pass by chance on illumos; on FreeBSD, they still fail since userland CTF is not yet supported. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix some incorrect endianness checks.markj2014-09-172-3/+3
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix elfdump(1) usage in the userland CTF tests.markj2014-09-1610-10/+10
| | | | | | PR: 193110 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* MFV r271516:delphij2014-09-131-0/+3
| | | | | | | | | | Enable debug printf's when ZFS_DEBUG or debug= is set. Illumos issue: 5134 if ZFS_DEBUG or debug= is set, libzpool should enable debug prints MFC after: 2 weeks
* MFV r271511:delphij2014-09-131-12/+6
| | | | | | | | | Use fnvlist_* to make code more readable. Illumos issue: 5135 zpool_find_import_cached() can use fnvlist_* MFC after: 2 weeks
* Use the linker to perform relocations in the SUNW_dof section rather thanmarkj2014-09-112-212/+23
| | | | | | | | | | | doing them in drti during startup. This fixes a number of problems with using USDT probes in stripped executables and shared libraries, and with USDT probes in static functions. Reviewed by: rpaulo MFC after: 1 month Sponsored by: EMC / Isilon Storage Division Phabric: D751
* MFV r271225:delphij2014-09-071-17/+18
| | | | | | | | | | | | Iterate through all the children instead of returning error when we hit the first error. This makes the error message give more information rather than just the first device that causes problem. Illumos issue: 5118 When verifying or creating a storage pool, error messages only show one device MFC after: 2 weeks
* Fix typo.delphij2014-09-071-1/+1
| | | | | Submitted by: Dmitry Morozovsky <marck rinet ru> MFC after: 3 days
* MFV r270197:delphij2014-08-224-98/+8
| | | | | | | | Illumos issue: 5066 remove support for non-ANSI compilation 5068 Remove SCCSID() macro from <macros.h> MFC after: 2 weeks
* Make DTrace stuff compile with C99 standard.delphij2014-08-227-2/+13
|
* Fix powerpc build:delphij2014-08-221-0/+1
| | | | | | Chase r270227 and compile lockstat with C99 standard. Suggested by: bde
* Include two headers to provide prototype for modfind(2) and kldload(2).delphij2014-08-211-0/+3
| | | | MFC after: 2 weeks
* Remove the BROKEN_LIBELF section.rpaulo2014-08-101-52/+0
| | | | | | This problem was fixed by Kai Wang in 2011. MFC after: 3 days
* Quiesce a printf warning from clang, %ul -> %lusbruno2014-08-081-1/+1
| | | | | Phabric: https://phabric.freebsd.org/D472 Reviewed by: mahrens delphij
* Preserve the errno value of an ioctl before calling free(3). Previously,markj2014-08-043-11/+14
| | | | | | | errno was very occasionally being clobbered, resulting in a bogus error from dt_consume() and thus an error from dtrace(1). MFC after: 2 weeks
* MFV r269426:delphij2014-08-021-1/+1
| | | | | | | | | | Double test device size for ztest(1). Illumos issue: 5039 ztest should default to larger device sizes Author: Matthew Ahrens <mahrens@delphix.com> MFC after: 2 weeks
* Update shellsnoop to work on FreeBSD.gnn2014-07-311-9/+5
| | | | Contributed by: skreuzer
* MFV r269223:delphij2014-07-291-5/+34
| | | | | | | | | Change dn->dn_dbufs from linked list to AVL tree. Illumos issues: 4873 zvol unmap calls can take a very long time for larger datasets MFC after: 2 weeks
* Update the header printing to match the rest of the output.gnn2014-07-261-1/+1
| | | | Pointed out by: mdf
* Since we cannot yet display the name print the file descriptor so thatgnn2014-07-261-3/+3
| | | | it can be looked up manually using procstat(1).
* Remove debugging options from the rwsnoop script.gnn2014-07-261-2/+0
|
* Port the rwsnoop DTrace Toolkit script to FreeBSD.gnn2014-07-261-26/+27
| | | | | | Remove dependency on the Korn Shell. Remove Zones in favor of Jails. Remove support (for now) for filename printing.
* MFV r269010:delphij2014-07-265-41/+144
| | | | | | | | | | | | | | | Import Illumos changes to address the following Illumos issues: 4976 zfs should only avoid writing to a failing non-redundant top-level vdev 4978 ztest fails in get_metaslab_refcount() 4979 extend free space histogram to device and pool 4980 metaslabs should have a fragmentation metric 4981 remove fragmented ops vector from block allocator 4982 space_map object should proactively upgrade when feature is enabled 4984 device selection should use fragmentation metric MFC after: 2 weeks
* Diff reduction against Illumos.delphij2014-07-252-7/+16
| | | | MFC after: 2 weeks
* MFV r268848:delphij2014-07-181-6/+37
| | | | | | | | | | | | | | | | | | | | Instead of asserting all zio's be properly aligned, only assert on the logical ones. Cap uberblocks at 8k, otherwise with ashift=17, there would be only one uberblock. This fixes a problem that zdb would trip assert on pools with ashift >= 0xe (8k). While there, also change the code so it only attempt to condense space map unless the uncondensed size consumes greater than zfs_metaslab_condense_block_threshold blocks. Illumos issue: 4958 zdb trips assert on pools with ashift >= 0xe MFC after: 2 weeks
* MFV r268714:delphij2014-07-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bump mdoc date after r268621.delphij2014-07-141-1/+1
| | | | X-MFC-With: r268621
* Don't report non-native block-size pools under zpool status -xsmh2014-07-142-1/+3
| | | | | | | | | | | zpool status -x is used to identify pools that are exhibiting errors or are otherwise unavailable, therefore non-native block-size pools shouldn't be reported. Also update man page to clarify other additional conditions which won't cause a pool to be displayed under zpool status -x. Sponsored by: Multiplay
* MFV r268455:delphij2014-07-092-5/+9
| | | | | | | | | | | | | | | | | | Use reserved space for ZFS administrative commands. We reserve 1/2^spa_slop_shift = 1/32 or 3.125% of pool space (or 32MB at least) for system use. Most ZPL operations, e.g. write(2), creat(2), will fail with ENOSPC if we fall below this. Certain operations, e.g. file removal and most administrative actions, still permitted until half of the slop space is used. This would allow users to use these operations to free up space in the pool when pool is close to full but half of slop space is still free. A very restricted set of operations that frees up space or change quota are always permitted, regardless of the amount of free space. MFC after: 2 weeks
* MFV r268454:delphij2014-07-091-10/+10
| | | | | | | | | Refresh zpool list for each interval in order to produce fresh output. Illumos issue: 4966 zpool list iterator does not update output MFC after: 2 weeks
* MFV r268453:delphij2014-07-092-19/+19
| | | | | | Diff reduction against Illumos. MFC after: 2 weeks
* Remove ia64.marcel2014-07-072-23/+3
| | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan
* MFV r268121:delphij2014-07-011-9/+12
| | | | | | | | 4924 LZ4 Compression for metadata illumos/illumos-gate@b8289d24d866c1af02d7007348f7f057693c15d3 MFC after: 2 weeks
* MFV r268119:delphij2014-07-013-20/+24
| | | | | | | | 4914 zfs on-disk bookmark structure should be named *_phys_t illumos/illumos-gate@7802d7bf98dec568dadf72286893b1fe5abd8602 MFC after: 2 weeks
* - Fix handling of "new" style of ioctl in compatiblity mode [1];delphij2014-07-011-10/+17
| | | | | | | | - Reorganize code and reduce diff from upstream; - Improve forward compatibility shims for previous kernel; Reported by: sbruno [1] X-MFC-With: r268075
* MFV r267570:delphij2014-07-011-1/+3
| | | | | | | | 4756 metaslab_group_preload() could deadlock illumos/illumos-gate@30beaff42d8240ebf5386e8b7a14e3d137a1631f MFC after: 2 weeks
* MFV r267568:delphij2014-07-014-7/+49
| | | | | | | | 4891 want zdb option to dump all metadata illumos/illumos-gate@df15e419cb7359ba56ddddab9045e438d89e7cbc MFC after: 2 weeks
* MFV r267566:delphij2014-07-012-2/+3
| | | | | | 4390 i/o errors when deleting filesystem/zvol can lead to space map corruption MFC after: 2 weeks
* MFV r267565:delphij2014-07-0114-56/+287
| | | | | | | 4757 ZFS embedded-data block pointers ("zero block compression") 4913 zfs release should not be subject to space checks MFC after: 2 weeks
OpenPOWER on IntegriCloud