summaryrefslogtreecommitdiffstats
path: root/sys/cddl/contrib
Commit message (Collapse)AuthorAgeFilesLines
* MFC r265458:delphij2014-05-091-1/+2
| | | | | | | | | | | Import George Wilson's change for Illumos #4730: 4730 metaslab group taskq should be destroyed in metaslab_group_destroy() Reviewed by: Alex Reece <alex.reece@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Sebastien Roy <sebastien.roy@delphix.com> Original author: George Wilson
* MFC r264836 (MFV r264830):delphij2014-05-092-7/+8
| | | | 4745 fix AVL code misspellings
* MFC r264835 (MFV r264829):delphij2014-05-0913-25/+871
| | | | 3897 zfs filesystem and snapshot limits
* MFC r264671 (MFV r264668):delphij2014-05-093-57/+7
| | | | | | | 4754 io issued to near-full luns even after setting noalloc threshold 4755 mg_alloc_failures is no longer needed illumos/illumos@b6240e830b871f59c22a3918aebb3b36c872edba
* MFC r264669: MFV r264666:delphij2014-05-0917-168/+156
| | | | | | 4374 dn_free_ranges should use range_tree_t illumos/illumos-gate@bf16b11e8deb633dd6c4296d46e92399d1582df4
* MFC r264145:mav2014-05-083-117/+370
| | | | | | | | | | | | | | | | | | | Add property and sysctl to control how ZVOLs are exposed to OS. New ZFS property volmode and sysctl vfs.zfs.vol.mode allow switching ZVOL between three modes: geom -- existing fully functional behavior (default); dev -- exposing volumes only as raw disk device file in devfs; none -- not exposing volumes outside ZFS. The "dev" mode is less functional (can't be partitioned, mounted, etc), but it is faster, and in some scenarios with untrusted consumers safer. It can be useful for NAS, VM block storages, etc. The "none" mode may be convenient for backup servers, etc. that don't need direct data access. Due to the way ZVOL is integrated with main ZFS code, those property and sysctl are checked only during pool import and volume creation.
* MFC r264086:mav2014-05-081-31/+52
| | | | | | | | 3580 Want zvols to return volblocksize when queried for physical block size illumos/illumos-gate@a0b60564dfc644f4bfaef1ce26d343b44cf68bc5 It is irrelevant for FreeBSD, just reducing diff.
* MFC r262661:markj2014-05-051-11/+4
| | | | | Fix emulation of call and jmp instructions on i386 and for 32-bit processes on amd64.
* MFC r262542:markj2014-05-031-1/+1
| | | | | Move some files that are identical on i386 and amd64 to an x86 subdirectory rather than keeping duplicate copies.
* MFC r264040:pfg2014-05-021-5/+5
| | | | | | | | | | | | | 4248 dtrace(1M) should never create DOF with empty probes section 4249 Only probes from the first DTrace object file will be included Illumos Revision: 4a20ab41aadcb81c53e72fc65886e964e9add59 Reference: https://www.illumos.org/issues/4248 https://www.illumos.org/issues/4249 Obtained from: Illumos
* MFC r265046smh2014-04-302-23/+47
| | | | | | Fix ZIO reordering issue which could cause data loss / corruption. Sponsored by: Multiplay
* MFC r262596:markj2014-04-231-1/+1
| | | | | | 4478 dtrace_dof_maxsize is far too small illumos/illumos-gate@d339a29bb4765c4b6883a935cf69b669cd05bca0
* MFC r264193:mav2014-04-211-0/+3
| | | | In addition to r264077, tell GEOM that we do support BIO_DELETE now.
* MFC r264077:mav2014-04-211-4/+70
| | | | | | | | Add BIO_DELETE support to ZVOL. It is an adapted merge from the vendor branch of: 701 UNMAP support for COMSTAR (in part related to ZFS) 2130 zvol DKIOCFREE uses nested DMU transactions
* MFC r264341:mav2014-04-211-0/+4
| | | | | | | | Create zvol devices on zfs clone. While big and shiny patch is not ready, it is better to have something. PR: kern/178999
* MFC r263118:mav2014-04-011-5/+9
| | | | Report ZVOL block size as GEOM stripesize.
* MFC r260183: MFV r260154 + 260182:delphij2014-03-2021-121/+908
| | | | | | | 4369 implement zfs bookmarks 4368 zfs send filesystems from readonly pools Illumos/illumos-gate@78f171005391b928aaf1642b3206c534ed644332
* MFC r260181:delphij2014-03-201-0/+4
| | | | Fix build on platforms where atomic_swap_64 is not available.
* MFC r260157: MFV r260153:delphij2014-03-201-1/+1
| | | | | | | 4121 vdev_label_init should treat request as succeeded when pool is read only illumos/illumos-gate@973c78e94bf9634782164382c9e291bf81161fa5
* MFC r260150: MFV r259170:delphij2014-03-1930-336/+550
| | | | | | | | | | | 4370 avoid transmitting holes during zfs send 4371 DMU code clean up illumos/illumos-gate@43466aae47bfcd2ad9bf501faec8e75c08095e4f NOTE: Make sure the boot code is updated if a zpool upgrade is done on boot zpool.
* MFC r260141: MFV r258385:delphij2014-03-192-18/+230
| | | | | | | | | (Note: this change is not applicable to FreeBSD and the file is not included in build. It's integrated for completeness). 4128 disks in zpools never go away when pulled illumos/illumos-gate@39cddb10a31c1c2e66aed69e6871d09caa4c8147
* MFC r260138: MFV r242733:delphij2014-03-192-12/+17
| | | | | | | | | | | | | 3306 zdb should be able to issue reads in parallel 3321 'zpool reopen' command should be documented in the man page and help message illumos/illumos-gate@31d7e8fa33fae995f558673adb22641b5aa8b6e1 FreeBSD porting notes: the kernel part of this changeset depends on Solaris buf(9S) interfaces and are not really applicable for our use. vdev_disk.c is patched as-is to reduce diverge from upstream, but vdev_file.c is left intact.
* MFC r259813 + r259813: MFV r258374:delphij2014-03-1923-252/+305
| | | | | | | | | 4171 clean up spa_feature_*() interfaces 4172 implement extensible_dataset feature for use by other zpool features illumos/illumos-gate@2acef22db7808606888f8f92715629ff3ba555b9
* MFC r259535:markj2014-03-181-8/+23
| | | | | | | | | | | | | | | | | The fasttrap fork handler is responsible for removing tracepoints in the child process that were inherited from its parent. However, this should not be done in the case of a vfork, since the fork handler ends up removing the tracepoints from the shared vm space, and userland DTrace probes in the parent will no longer fire as a result. Now the child of a vfork may trigger userland DTrace probes enabled in its parent, so modify the fasttrap probe handler to handle this case and handle the child process in the same way that it would handle the traced process. In particular, if once traces function foo() in a process that vforks, and the child calls foo(), fasttrap will treat this call as having come from the parent. This is the behaviour of the upstream code. While here, add #ifdef guards to some code that isn't present upstream.
* MFC r262676:delphij2014-03-171-1/+3
| | | | | | | | | | All callers of static method load_nvlist() in spa.c handles error case, so there is no reason to assert that we won't hit an error. Instead, just return that error to caller and have the upper layer handle it. Obtained from: FreeNAS Reported by: rodrigc Reviewed by: Matthew Ahrens
* MFC r261620: MFV r261619:delphij2014-02-221-2/+3
| | | | | | | | | 4574 get_clones_stat does not call zap_count in non-debug kernel zap_count(...) is never called in non-DEBUG kernel. As result "count" variable is always 0, and "goto fail" is always reached. This means get_clones_stat function never makes up list of clones for "clones" properties.
* MFC r259052: Expose spa_asize_inflationavg2014-02-181-0/+3
|
* MFC r260236:mav2014-02-181-1/+3
| | | | | In dmu_zfetch_stream_reclaim() replace division with multiplication and move it out of the loop and lock.
* MFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if ↵avg2014-02-175-9/+26
| | | | we hit bug 4390
* MFC r260835: MFV r260834: Fix memory leak of compressed buffers in ↵avg2014-02-171-9/+8
| | | | l2arc_write_done
* MFC r260704,260717: zfs: getnewvnode_reserve must be called outside of aavg2014-02-173-2/+30
| | | | zfs transaction
* MFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before ↵avg2014-02-171-6/+6
| | | | DMU_USERUSED_OBJECT
* MFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_removeavg2014-02-171-1/+3
|
* MFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow foravg2014-02-1720-1349/+2314
| | | | fine-grained control
* MFC r258291: change the ioctl definition so that the fasttrap ioctlavg2014-02-172-15/+2
| | | | handler is responsible for copying in userland data
* MFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrapavg2014-02-172-8/+8
|
* MFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push %rbp"avg2014-02-171-7/+6
|
* MFC r258744-258746: zfs: add zfs_freebsd_putpagesavg2014-01-163-39/+232
|
* MFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)avg2014-01-163-51/+20
|
* MFC r258739: zfs mappedread_sf: assert that a page is never partially validavg2014-01-161-1/+3
|
* MFC r258634: MFV r258376: 3964 L2ARC should always compress metadata buffersavg2014-01-163-2/+6
|
* MFC r258633: MFV r255256: 3954 metaslabs continue to load even afteravg2014-01-163-5/+113
| | | | hitting zfs_mg_alloc_failure limit
* MFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduleravg2014-01-1634-720/+1472
| | | | | | performance work Sponsored by: HybridCluster [merge]
* MFC r258631: MFV r247578avg2014-01-163-81/+172
| | | | 3581 spa_zio_taskq[ZIO_TYPE_FREE][ZIO_TASKQ_ISSUE]->tq_lock is piping hot
* MFC r258743: drop ZUT_OBJavg2014-01-161-3/+0
|
* MFC r258630: 734 taskq_dispatch_prealloc() desiredavg2014-01-164-19/+33
|
* MFC r258628: opensolaris taskq: some cosmetic changesavg2014-01-161-15/+14
|
* MFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctlavg2014-01-161-0/+4
| | | | Sponsored by: HybridCluster
* MFC r256543,r259245,r259421,r259668,r259674jhibbits2014-01-152-9/+583
| | | | | | | | | | | | | | | | | | | r256543: Add fasttrap for PowerPC. This is the last piece of the DTrace/ppc puzzle. It's incomplete, it doesn't contain full instruction emulation, but it should be sufficient for most cases. r259245,r259421: (FBT) FBT now does work fully on PowerPC. Save r3 before using it for the trap check, else we end up saving the new r3, containing the trap instruction encoding (0x7c810808), and restoring it back with the frame on return. This caused it to panic on my ppc32 machine. r259668,r259674: Fix a typo in the FBT code.
* MFC r259811:delphij2014-01-142-10/+0
| | | | | | | | | | | MFV r258373: 4168 ztest assertion failure in dbuf_undirty 4169 verbatim import causes zdb to segfa 4170 zhack leaves pool in ACTIVE state illumos/illumos-gate@7fdd916c474ea52896c671bbe7b56ba34a1ca132
OpenPOWER on IntegriCloud