aboutsummaryrefslogtreecommitdiff
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
...
| * Don't even try to read vdev labels from devices smaller then SPA_MINDEVSIZEAlexander Motin2013-12-101-2/+9
| | | | | | | | | | | | | | | | | | (64MB). Even if we would find one somehow, ZFS kernel code rejects such devices. It is funny to look on attempts to read 4 256K vdev labels from 1.44MB floppy, though it is not very practical and quite slow. Notes: svn path=/head/; revision=259168
| * Don't panic when we get ZPOOL_STATUS_NON_NATIVE_ASHIFTXin LI2013-12-091-0/+6
| | | | | | | | | | | | | | | | | | while listing importable pools. MFC after: 3 days Notes: svn path=/head/; revision=259131
| * mdoc: remove EOL whitespace.Joel Dahl2013-12-061-1/+1
| | | | | | | | Notes: svn path=/head/; revision=259041
| * Enable some previously-disabled DTrace tests for umod, ufunc and usym. TheyMark Johnston2013-12-043-3/+3
| | | | | | | | | | | | | | | | | | expect the installed ksh binary to be named "ksh", which is not the case when it's installed on FreeBSD via the shells/ksh93 port. Allow for it to be "ksh93" as well so that the tests can actually pass. Notes: svn path=/head/; revision=258903
| * The uaddr, ufunc, umod and usym functions all seem to work as expected onMark Johnston2013-12-041-8/+0
| | | | | | | | | | | | | | | | | | FreeBSD, so stop hiding them behind a "#if defined(sun)". Reported by: Prashanth Kumar <pra_udupi@yahoo.co.in> Notes: svn path=/head/; revision=258902
| * Use mkstemp(3) to create the temporary file used in the FreeBSD-specificMark Johnston2013-12-031-8/+10
| | | | | | | | | | | | | | portions of dtrace_program_link(). Notes: svn path=/head/; revision=258861
| * MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained controlAndriy Gapon2013-11-283-80/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4101 metaslab_debug should allow for fine-grained control 4102 space_maps should store more information about themselves 4103 space map object blocksize should be increased 4104 ::spa_space no longer works 4105 removing a mirrored log device results in a leaked object 4106 asynchronously load metaslab illumos/illumos-gate@0713e232b7712cd27d99e1e935ebb8d5de61c57d Note that some tunables have been removed and some new tunables have been added. Of particular note, FreeBSD-only knob vfs.zfs.space_map_last_hope is removed as it was a nop for some time now (after one of the previous merges from upstream). MFC after: 11 days Sponsored by: HybridCluster [merge] Notes: svn path=/head/; revision=258717
| * MFV r255255: 4045 zfs write throttle & i/o scheduler performance workAndriy Gapon2013-11-262-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | illumos/illumos-gate@69962b5647e4a8b9b14998733b765925381b727e Please note the following changes: - zio_ioctl has lost its priority parameter and now TRIM is executed with 'now' priority - some knobs are gone and some new knobs are added; not all of them are exposed as tunables / sysctls yet MFC after: 10 days Sponsored by: HybridCluster [merge] Notes: svn path=/head/; revision=258632
| * 734 taskq_dispatch_prealloc() desiredAndriy Gapon2013-11-262-34/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 943 zio_interrupt ends up calling taskq_dispatch with TQ_SLEEP illumos/illumos-gate@5aeb94743e3be0c51e86f73096334611ae3a058e Essentially FreeBSD taskqueues already operate in a mode that was added to Illumos with taskq_dispatch_ent change. We even exposed the superior FreeBSD interface as taskq_dispatch_safe. Now we just rename taskq_dispatch_safe to taskq_dispatch_ent and struct struct ostask to taskq_ent_t, so that code differences will be minimal. After this change sys/cddl/compat/opensolaris/sys/taskq.h header is no longer needed. Note that this commit is not an MFV because the upstream change was not individually committed to the vendor area. MFC after: 8 days Notes: svn path=/head/; revision=258630
| * Use 'int' to store the return value of getopt(), rather than char.Justin Hibbits2013-11-202-3/+4
| | | | | | | | | | | | | | | | | | | | | | On some architectures (powerpc), char is unsigned by default, which means comparisons against -1 always fail, so the programs get stuck in an infinite loop. MFC after: 1 week Notes: svn path=/head/; revision=258362
| * Don't try to use the 32-bit drti.o unless the data model is explicitly setMark Johnston2013-11-091-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to ILP32. Otherwise dtrace -G will attempt to use it on amd64 if it can't determine which data model to use, which happens when -64 is omitted and no object files are provided, e.g. with # dtrace -G -n BEGIN This would result in a linker error, but now works properly. Also remove an unnecessary #ifdef. MFC after: 2 weeks Notes: svn path=/head/; revision=257877
| * Quiesce warning assigning to void * from const ctf_header_t * by explicity ↵Sean Bruno2013-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | casting to void * before assignment. Submitted as Illumos issue 4287 Notes: svn path=/head/; revision=257657
| * spelling in comments fixupSean Bruno2013-11-041-2/+2
| | | | | | | | | | | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> Notes: svn path=/head/; revision=257647
| * Quiesce warning regarding %llf which has no effect.Sean Bruno2013-11-041-1/+1
| | | | | | | | | | | | | | | | | | Submitted as illumos issue #4284 Reviewed by: delphij Notes: svn path=/head/; revision=257638
| * This library uses macros to define fprintf behvavior for several object typesSean Bruno2013-11-031-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | The compiler will see the non-string literal arguments to the fprintf calls and omit warnings for them. Quiese these warnings in contrib code: cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ARENDER(pctl, nvlist_array, nvl, name, val, nelem); Notes: svn path=/head/; revision=257592
| * If the initial attempt to open /dev/ksyms fails, kldload the ksyms moduleMark Johnston2013-10-271-0/+11
| | | | | | | | | | | | | | and retry. Notes: svn path=/head/; revision=257213
| * Convert the lockstat(1) man page to mdoc and make sure that it getsMark Johnston2013-10-272-828/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | installed. Additionally, remove Solaris-specific sections and references, and replace example outputs with output from lockstat on FreeBSD, since lockstat's output contains stack traces. This change also removes some examples that don't seem to work properly on FreeBSD. The examples should be re-added when lockstat is fixed. Reported by: avg MFC after: 1 week Notes: svn path=/head/; revision=257212
| * Added support for the 'zfs list -t snap' and 'zfs snap' aliases which areSteven Hartland2013-10-232-16/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | available under Oracle Solaris 11. This includes an update to the ZFS(8) man page to reflect all the available alias (snap, umount, and recv). Initial changes obtained from ZFS On Linux + fixes for man page and cmd help: https://github.com/zfsonlinux/zfs/commit/10b75496bb0cb7a7b8146c263164adc37f1d176a https://github.com/zfsonlinux/zfs/commit/cf81b00a73fe47fdb21586ac1cc179b734540973 Obtained from: https://github.com/zfsonlinux/zfs MFC after: 2 weeks Sponsored by: Multiplay Notes: svn path=/head/; revision=256999
| * Add a function, memstr, which can be used to convert a buffer ofMark Johnston2013-10-162-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | null-separated strings to a single string. This can be used to print the full arguments of a process using execsnoop (from the DTrace toolkit) or with the following one-liner: dtrace -n 'syscall::execve:return {trace(curpsinfo->pr_psargs);}' Note that this relies on the process arguments being cached via the struct proc, which means that it will not work for argvs longer than kern.ps_arg_cache_limit. However, the following rather non-portable script can be used to extract any argv at exec time: fbt::kern_execve:entry { printf("%s", memstr(args[1]->begin_argv, ' ', args[1]->begin_envv - args[1]->begin_argv)); } The debug.dtrace.memstr_max sysctl limits the maximum argument size to memstr(). Thanks to Brendan Gregg for helpful comments on freebsd-dtrace. Tested by: Fabian Keil (earlier version) MFC after: 2 weeks Notes: svn path=/head/; revision=256571
| * Add fasttrap for PowerPC. This is the last piece of the dtrace/ppc puzzle.Justin Hibbits2013-10-152-12/+215
| | | | | | | | | | | | | | | | | | | | It's incomplete, it doesn't contain full instruction emulation, but it should be sufficient for most cases. MFC after: 1 month Notes: svn path=/head/; revision=256543
* | Merge head@256284Simon J. Gerraty2013-10-136-663/+735
|\| | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * Convert the dtrace(1) man page to mdoc and fix up some aspects of it thatMark Johnston2013-10-101-645/+652
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | don't make sense on FreeBSD. In particular, - remove the ATTRIBUTES section, - remove references to the Solaris Dynamic Tracing Guide, except in the SEE ALSO section, - update the description of the -A option for FreeBSD's implementation, - remove references to Solaris-specific programs and configuration files, and replace them with FreeBSD equivalents where possible. The content has not changed aside from this. Approved by: re (joel) MFC after: 1 week Notes: svn path=/head/; revision=256251
| * Fix implicit declaration of jail_getid()Robert Millan2013-10-071-0/+1
| | | | | | | | | | | | | | Approved by: re Notes: svn path=/head/; revision=256110
| * Add a separate translator for headers passed to the TCP probes in theMark Johnston2013-10-021-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | input path. These probes get some of the fields in host order, whereas the output probes get them in network order, so a single translator isn't enough. This workaround ensures that the problem is essentially invisble to users: none of the probe arguments or their fields have changed. Approved by: re (hrs) Notes: svn path=/head/; revision=255993
| * MFV r254750:Xin LI2013-09-213-16/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support of Illumos dumps on zvol over RAID-Z. Note that this only adds the features. FreeBSD would still need more work to support dumping on zvols. Illumos ZFS issues: 2932 support crash dumps to raidz, etc. pools MFC after: 1 month Approved by: re (ZFS blanket) Notes: svn path=/head/; revision=255750
| * Use the address of the inpcb rather than the tcpcb to identify TCPMark Johnston2013-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | connections. This keeps the tcp provider consistent with the other network providers. Approved by: re (delphij) Notes: svn path=/head/; revision=255604
* | Updated dependenciesSimon J. Gerraty2013-10-137-0/+30
| | | | | | | | Notes: svn path=/projects/bmake/; revision=256419
* | Merge headSimon J. Gerraty2013-09-112-0/+37
|\| | | | | | | Notes: svn path=/projects/bmake/; revision=255477
| * MFV r247844 (illumos-gate 13975:ef6409bc370f)Xin LI2013-09-102-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Illumos ZFS issues: 3582 zfs_delay() should support a variable resolution 3584 DTrace sdt probes for ZFS txg states Provide a compatibility shim for Solaris's cv_timedwait_hires to help aid future porting. Approved by: re (ZFS blanket) Notes: svn path=/head/; revision=255437
* | Merge from headSimon J. Gerraty2013-09-0577-506/+2001
|\| | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * Build all ZFS testing & debugging tools with -g.Will Andrews2013-08-273-6/+10
| | | | | | | | | | | | | | | | | | These programs and everything using libzpool rely on the embedded asserts to verify the correctness of operations. Given that, the core dumps would be useless without debug symbols. Notes: svn path=/head/; revision=254949
| * Merge various CTF fixes from illumosPedro F. Giffuni2013-08-261-5/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2942 CTF tools need to handle files which legitimately lack data 2978 ctfconvert still needs to ignore legitimately dataless files on SPARC Illumos Revisions: 13745:6b3106b4250f 13754:7231b684c18b Reference: https://www.illumos.org/issues/2942 https://www.illumos.org/issues/2978 MFC after: 3 weeks Notes: svn path=/head/; revision=254941
| * Implement the ip, tcp, and udp DTrace providers. The probe definitions useMark Johnston2013-08-254-0/+566
| | | | | | | | | | | | | | | | | | | | | | | | dynamic translation so that their arguments match the definitions for these providers in Solaris and illumos. Thus, existing scripts for these providers should work unmodified on FreeBSD. Tested by: gnn, hiren MFC after: 1 month Notes: svn path=/head/; revision=254889
| * MFV r254751:Xin LI2013-08-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Don't treat the parameter as a number (pool GUID) when there is error converting it from string, instead, treat it as the pool name. Illumos ZFS issues: 1765 assert triggered in libzfs_import.c trying to import pool name beginning with a number Notes: svn path=/head/; revision=254758
| * MFV r254748:Xin LI2013-08-241-1/+5
| | | | | | | | | | | | | | | | | | | | Fix memory leak in libzfs's iter_dependents_cb(). Illumos ZFS issues: 4061 libzfs: memory leak in iter_dependents_cb() Notes: svn path=/head/; revision=254755
| * MFV r254746:Xin LI2013-08-231-15/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | To quote original Illumos ticket: libctf thinks that any ELF file containing more than 65536 sections is corrupt, because it doesn't understand the SHN_XINDEX magic. Illumos DTrace issues: 4005 libctf can't deal with extended sections Notes: svn path=/head/; revision=254752
| * MFV r254422:Xin LI2013-08-234-16/+204
| | | | | | | | | | | | | | | | | | | | | | Illumos DTrace issues: 3089 want ::typedef 3094 libctf should support removing a dynamic type 3095 libctf does not validate arrays correctly 3096 libctf does not validate function types correctly Notes: svn path=/head/; revision=254744
| * Enhance the ZFS vdev layer to maintain both a logical and a physicalJustin T. Gibbs2013-08-215-37/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | minimum allocation size for devices. Use this information to automatically increase ZFS's minimum allocation size for new top-level vdevs to a value that more closely matches the optimum device allocation size. Use GEOM's stripesize attribute, if set, as the physical sector size of the GEOM. Calculate the minimum blocksize of each metaslab class. Use the calculated value instead of SPA_MINBLOCKSIZE (512b) when determining the likelyhood of compression yeilding a reduction in physical space usage. Report devices with sub-optimal block size configuration in "zpool status". Also properly fail attempts to attach devices with a logical block size greater than 8kB, since this will cause corruption to ZFS's label area. Sponsored by: Spectra Logic Corporaion MFC after: 2 weeks Background ========== Many modern devices use physical allocation units that are much larger than the minimum logical allocation size accessible by external commands. Two prevalent examples of this are 512e disk drives (512b logical sector, 4K physical sector) and flash devices (512b logical sector, 4K or larger allocation block size, and 128k or larger erase block size). Operations that modify less than the physical sector size result in a costly read-modify-write or garbage collection sequence on these devices. Simply exporting the true physical sector of the device to ZFS would yield optimal performance, but has two serious drawbacks: 1) Existing pools created with devices that have different logical and physical block sizes, but were configured to use the logical block size (e.g. because the OS version used for pool construction reported the logical block size instead of the physical block size) will suddenly find that the vdev allocation size has increased. This can be easily tolerated for active members of the array, but ZFS would prevent replacement of a vdev with another identical device because it now appears that the smaller allocation size required by the pool is not supported by the new device. 2) The device's physical block size may be too large to be supported by ZFS. The optimal allocation size for the vdev may be quite large. For example, a RAID controller may export a vdev that requires read-modify-write cycles unless accessed using 64k aligned/sized requests. ZFS currently has an 8k minimum block size limit. Reporting both the logical and physical allocation sizes for vdevs solves these problems. A device may be used so long as the logical block size is compatible with the configuration. By comparing the logical and physical block sizes, new configurations can be optimized and administrators can be notified of any existing pools that are sub-optimal. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/spa.h: Add the SPA_ASHIFT constant. ZFS currently has a hard upper limit of 13 (8k) for ashift and this constant is used to both document and enforce this limit. sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h: Add the VDEV_AUX_ASHIFT_TOO_BIG error code. Add fields for exporting the configured, logical, and physical ashift to the vdev_stat_t structure. Add VDEV_STAT_VALID() macro which can be used to verify the presence of required vdev_stat_t fields in nvlist data. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c: Provide a SYSCTL_PROC handler for "max_auto_ashift". Since the limit is only referenced long after boot when a create operation occurs, there's no compelling need for it to be a boot time configurable tunable. This also allows the validation code for the max_auto_ashift value to be contained within the sysctl handler. Populate the new fields in the vdev_stat_t structure. Fail vdev opens if the vdev reports an ashift larger than SPA_MAXASHIFT. Propogate vdev_logical_ashift and vdev_physical_ashift between child and parent vdevs as is done for vdev_ashift. In vdev_open(), restore code that fails opens for devices where vdev_ashift grows. This can only happen now if the device's logical ashift grows, which means it really isn't safe to use the device. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/vdev_impl.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_mirror.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_missing.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_root.c: Update the vdev_open() API so that both logical (what was just ashift before) and physical ashift are reported. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/vdev_impl.h: Add two new fields, vdev_physical_ashift and vdev_logical_ashift, to vdev_t. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c: Add vdev_ashift_optimize(). Call it anytime a new top-level vdev is allocated. cddl/contrib/opensolaris/cmd/zpool/zpool_main.c: Add text for the VDEV_AUX_ASHIFT_TOO_BIG error. For each sub-optimally configured leaf vdev, report configured and native block sizes. cddl/contrib/opensolaris/cmd/zpool/zpool_main.c: cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h: cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c: Introduce a new zpool status: ZPOOL_STATUS_NON_NATIVE_ASHIFT. This status is reported on healthy pools containing vdevs configured to use a block size smaller than their reported physical block size. cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c: Update find_vdev_problem() and supporting functions to provide the full vdev_stat_t structure to problem checking routines, and to allow decent into replacing vdevs. Add a vdev_non_native_ashift() validator which is used on the full vdev tree to check for ZPOOL_STATUS_NON_NATIVE_ASHIFT. cddl/contrib/opensolaris/lib/libzpool/common/kernel.c: cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h: Enhance sysctl userland stubs now that a SYSCTL_PROC handler is used in vdev.c. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/metaslab_impl.h: When the group membership of a metaslab class changes (i.e. when a vdev is added or removed from a pool), walk the group list to determine the smallest block size currently available and record this in the metaslab class. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/metaslab.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c: Add the metaslab_class_get_minblocksize() accessor. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio_compress.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio_compress.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c: In zio_compress_data(), take the minimum blocksize as an input parameter instead of assuming SPA_MINBLOCKSIZE. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c: In l2arc_compress_buf(), pass SPA_MINBLOCKSIZE as the minimum blocksize of the device. The l2arc code performs has it's own code for deciding if compression is worth while, so this effectively disables zio_compress_data() from second guessing the original decision. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c: In zio_write_bp_init(), use the minimum blocksize of the normal metaslab class when compressing data. Notes: svn path=/head/; revision=254591
| * MFV r254421:Xin LI2013-08-213-12/+29
| | | | | | | | | | | | | | | | Illumos ZFS issues: 3996 want a libzfs_core API to rollback to latest snapshot Notes: svn path=/head/; revision=254587
| * Load the dtraceall module if /dev/dtrace/dtrace doesn't exist.Rui Paulo2013-08-101-1/+11
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=254197
| * MFV r254079:Xin LI2013-08-081-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Illumos ZFS issues: 3957 ztest should update the cachefile before killing itself 3958 multiple scans can lead to partial resilvering 3959 ddt entries are not always resilvered 3960 dsl_scan can skip over dedup-ed blocks if physical birth != logical birth 3961 freed gang blocks are not resilvered and can cause pool to suspend 3962 ztest should print out zfs debug buffer before exiting Notes: svn path=/head/; revision=254112
| * MFV r254071:Xin LI2013-08-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a regression introduced by fix for Illumos bug #3834. Quote from Matthew Ahrens on the Illumos issue: ztest fails this assertion because ztest_dmu_read_write() does dmu_tx_hold_free(tx, bigobj, bigoff, bigsize); and then dmu_object_set_checksum(os, bigobj, (enum zio_checksum)ztest_random_dsl_prop(ZFS_PROP_CHECKSUM), tx); If the region to free is past the end of the file, the DMU assumes that there will be nothing to do for this object. However, ztest does set_checksum(), which must modify the dnode. The fix is for ztest to also call dmu_tx_hold_bonus(tx, bigobj); so we can account for the dirty data associated with setting the checksum Illumos ZFS issues: 3955 ztest failure: assertion refcount_count(&tx->tx_space_written) + delta <= tx->tx_space_towrite Notes: svn path=/head/; revision=254077
| * MFV r254070:Xin LI2013-08-071-8/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | Merge vendor bugfix for ZFS test suite that triggers false positives. Illumos ZFS issues: 3949 ztest fault injection should avoid resilvering devices 3950 ztest: deadman fires when we're doing a scan 3951 ztest hang when running dedup test 3952 ztest: ztest_reguid test and ztest_fault_inject don't place nice together Notes: svn path=/head/; revision=254074
| * Fix implicit declaration of warnx().Robert Millan2013-08-041-0/+1
| | | | | | | | Notes: svn path=/head/; revision=253930
| * MFV r253781 + r253871:Xin LI2013-07-302-4/+17
| | | | | | | | | | | | | | | | | | | | Illumos ZFS issues: 3894 zfs should not allow snapshot of inconsistent dataset MFC after: 2 weeks Notes: svn path=/head/; revision=253819
| * MFV r253784:Steven Hartland2013-07-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix zfs send -D hang after processing requiring a CTRL+C to interrupt due to pthread_join prior to fd close. This was introduced by r251646 (MFV r251644) Illumos ZFS issue: 3909 "zfs send -D" does not work MFC after: 1 day Notes: svn path=/head/; revision=253818
| * DTrace: re-apply r249426 now that the underlying issues have been solved.Pedro F. Giffuni2013-07-2817-23/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge change from illumos: 3519 DTrace fails to resolve const types from fbt 3520 dtrace internal error -- token type 316 is not a valid D compilation token 3521 clean up dtrace unit tests Illumos Revision: e98f46c Reference: https://www.illumos.org/issues/3519 https://www.illumos.org/issues/3520 https://www.illumos.org/issues/3521 Tested by: Fabian Keil Obtained from: Illumos MFC after: 1 month Notes: svn path=/head/; revision=253726
| * DTrace: re-merge remainder of r249367 (original from Illumos).Pedro F. Giffuni2013-07-2834-274/+813
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring back some important fixes from Illumos: 3022 DTrace: keys should not affect the sort order when sorting by value 3023 it should be possible to dereference dynamic variables 3024 D integer narrowing needs some work We particularly avoid the LD_NOLAZYLOAD changes that Illumos made as those don't apply to FreeBSD and were causing problems in interactive mode. Illumos Revision: 13758:23432da34147 Reference: https://www.illumos.org/issues/3022 https://www.illumos.org/issues/3023 https://www.illumos.org/issues/3024 MFC after: 1 month Tested by: markj Notes: svn path=/head/; revision=253725
| * Use kern_ioctl() rather than ioctl() for testing the FBT provider, since theMark Johnston2013-07-277-12/+12
| | | | | | | | | | | | | | latter doesn't exist in FreeBSD. All the tests under fbtprovider pass now. Notes: svn path=/head/; revision=253720
| * Style issue in r253661.Pedro F. Giffuni2013-07-261-1/+1
| | | | | | | | | | | | | | | | Pointed out by: avg MFC after: 1 month Notes: svn path=/head/; revision=253678