summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/opensolaris/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC r282121: dump_nvlist: handle DATA_TYPE_BOOLEAN_ARRAYavg2015-05-111-0/+11
|
* MFC r280882:markj2015-04-121-2/+2
| | | | Fix a misparenthesization that could cause a crash if TERM is not set.
* MFC r278114:markj2015-04-121-0/+3
| | | | | | libdtrace: Let the standard deviation of the empty set be 0. PR: 197260
* MFC r277433: MFV r277432:delphij2015-02-042-33/+47
| | | | | | | Plug various memory leaks in libzfs import implementation. Illumos issue: 5518 Memory leaks in libzfs import implementation
* MFC r277239:smh2015-01-301-0/+6
| | | | | | Eliminate illumos whole disk special case when searching for a ZFS vdev Sponsored by: Multiplay
* MFC r276446:smh2015-01-301-1/+2
| | | | | | Use the correct state name for unavailable pools in zpool list Sponsored by: Multiplay
* MFC r275552: MFV r260710 + 275532:delphij2015-01-232-0/+405
| | | | Add a new method, nvlist_print_json to allow libnvpair to emit JSON.
* MFC r275812: MFV r275784:delphij2015-01-231-4/+1
| | | | | | | | | Plug a memory leak in libzfs. In zfs_iter_bookmarks, an nvlist is allocated before calling lzc_get_bookmarks, which allocates the nvlist again (and overwrites the pointer to previously allocated list). Illumos issue: 5427 memory leak in libzfs when doing rollback
* MFC r275579: MFV r275537:delphij2015-01-231-13/+39
| | | | | | | | Illumos issue: 5316 allow smbadm join to use RPC (Due to our lack of smbsrv this is mostly no-op on FreeBSD)
* MFC r276250:markj2015-01-061-1/+4
| | | | | | | DOF tables are aligned according to the DOF section's alignment constraint, so take this into account when iterating over DOF tables. PR: 195555
* MFC r272671:markj2014-12-261-0/+23
| | | | | | | | Treat D keywords as identifiers in certain postfix expressions. This allows one to, for example, access the "provider" field of a struct g_consumer, even though "provider" is a D keyword. PR: 169657
* MFC r275011:markj2014-12-261-3/+3
| | | | | | | | The module load address always needs to be included when setting the dm_*_va fields of dt_module_t. Previously, this was only done on architectures where kernel modules have type ET_REL; this change fixes that. As a result, symbol name resolution in the stack() action now works properly for kernel modules on i386.
* MFC r274337,r274673,274681,r275515:delphij2014-12-225-19/+47
| | | | | | | | | | | | | | | | | | | | | ZFS large block support. The default recordsize remains at 128KB. A new tunable/sysctl variable, vfs.zfs.max_recordsize is added to allow adjusting the permitted maximum record size, or zfs_max_recordsize, with a default of 1MB. ZFS will not allow setting recordsize greater than zfs_max_recordsize as a safety belt, because larger recordsize means greater read and write latency and more memory usage. Please note that booting from datasets that have recordsize greater than 128KB is not supported (but it's Okay to enable the feature on the pool). Limited safety belt is provided for mounted root filesystem but use caution when using a larger value. Illumos issue: 5027 zfs large block support
* MFC r271695:markj2014-12-052-3/+3
| | | | Fix some incorrect endianness checks.
* MFC r274303:delphij2014-12-041-0/+2
| | | | | | | | | | | | Apply upstream 13597:3eac1e8e0f4c (git: illumos-gate@aa846ad9): Initialize tqent_flags in the userland taskq implementation. Without this the assertion of tq->tq_freelist != NULL may fail in taskq_destroy. The problem is that tqent_flags is never initialized in the userland implementation while the kernel one does initialize it. Without proper initialization, the flag may have its lowest bit set, making it treated as TQENT_FLAG_PREALLOC and never removing taskq_ent_t from tq_freelist.
* MFC r264852smh2014-11-131-0/+1
| | | | | | Silence compiler warning Sponsored by: Multiplay
* MFC r258902:markj2014-10-241-8/+0
| | | | | The uaddr, ufunc, umod and usym functions all seem to work as expected on FreeBSD, so stop hiding them behind a "#if defined(sun)".
* MFC r272502: MFV r272493:delphij2014-10-131-5/+11
| | | | | | | Show individual disk capacity when doing zpool list -v. Illumos issue: 5147 zpool list -v should show individual disk capacity
* MFC r271527: MFV r271511:delphij2014-10-021-12/+6
| | | | | | | | | Use fnvlist_* to make code more readable. Illumos issue: 5135 zpool_find_import_cached() can use fnvlist_* Approved by: re (gjb)
* MFC r269524:markj2014-08-203-11/+14
| | | | | | Preserve the errno value of an ioctl before calling free(3). Previously, errno was very occasionally being clobbered, resulting in a bogus error from dt_consume() and thus an error from dtrace(1).
* MFC r267875:pfg2014-08-161-2/+7
| | | | | | | | | | | | 4251 libdtrace leaks open file handles Illumos commit: 93ed8d0d4b068b95d0bb50d57bb854df462a8485 (partial) Reference: https://www.illumos.org/issues/4251 Discussed with: Robert Mustacchi Obtained from: Illumos
* MFC r257877:markj2014-08-141-3/+1
| | | | | | | | | | | | | Don't try to use the 32-bit drti.o unless the data model is explicitly set 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 r269776rpaulo2014-08-131-52/+0
| | | | Remove the BROKEN_LIBELF section.
* MFC r269118: MFV r269010:delphij2014-08-101-0/+8
| | | | | | | | | | | | | 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 r265631:markj2014-08-081-1/+1
| | | | | | | | | | Re-apply r248644. This fixes an annoying problem which caused dtrace -c to fail to attach to stripped binaries. With the _r_debug_postinit symbol, dtrace(1) can now set a breakpoint in the victim process after it has registered its DOF table(s) with the kernel. r_debug_state cannot be used for this purpose since it is called before DOF is made available, in which case dtrace(1) cannot create USDT probes before the program begins execution.
* MFC r256571:markj2014-08-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | Add a function, memstr, which can be used to convert a buffer of 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().
* MFC r264486:markj2014-07-291-0/+5
| | | | | Use the correct format specifiers for wide characters and strings of wide characters.
* MFC r262669:markj2014-07-291-30/+58
| | | | | | | | | | When our linker merges .SUNW_dof sections from multiple files, it simply concatenates the DOF tables into one section. Previously, the USDT init code in drti.o would only look at the first table in the DOF section; with this change, it iterates over all the tables, passing each DOF table to the kernel. PR: 186821
* MFC r268469: MFV r268453:delphij2014-07-232-19/+19
| | | | Diff reduction against Illumos.
* MFC r268116:delphij2014-07-171-10/+17
| | | | | | | | - Fix handling of "new" style of ioctl in compatiblity mode [1]; - Reorganize code and reduce diff from upstream; - Improve forward compatibility shims for previous kernel; Reported by: sbruno [1]
* MFC r268123: MFV r268119:delphij2014-07-151-9/+12
| | | | 4914 zfs on-disk bookmark structure should be named *_phys_t
* MFC r268084: MFV r267568:delphij2014-07-152-0/+26
| | | | 4891 want zdb option to dump all metadata
* MFC r268079: MFV r267566:delphij2014-07-151-0/+1
| | | | | 4390 i/o errors when deleting filesystem/zvol can lead to space map corruption
* MFC r268075: MFV r267565:delphij2014-07-154-9/+61
| | | | | 4757 ZFS embedded-data block pointers ("zero block compression") 4913 zfs release should not be subject to space checks
* MFC 267929, 267937, 267939, 267940, 267941, 267942, 267987, 268006:rpaulo2014-07-1225-152/+1456
| | | | | | | | | | | | | | | | 2915 DTrace in a zone should see "cpu", "curpsinfo", et al 2916 DTrace in a zone should be able to access fds[] 2917 DTrace in a zone should have limited provider access 4477 DTrace should speak JSON Add stubs for CTF functions which are not yet implemented. 4474 DTrace Userland CTF Support 4475 DTrace userland Keyword 4476 DTrace tests should be better citizens 4479 pid provider types 4480 dof emulation is missing checks 4471 DTrace count() with histogram 4472 DTrace full width distribution histograms 4473 DTrace frequency trails
* MFC r262329:markj2014-05-251-27/+0
| | | | | | | | | | Define the KM_NORMALPRI flag for kmem_alloc(), as it is used in some upstream DTrace code. MFC r262330: 1452 DTrace buffer autoscaling should be less violent illumos/illumos-gate@6fb4854bed54ce82bd8610896b64ddebcd4af706
* MFC r265821:mav2014-05-242-0/+8
| | | | | | | | Comment out some pointless device open/close around reading device IDs. FreeBSD ZFS port unlike OpenSolaris does not use device IDs, and does not implement respective devid_*() fuctions. It is pointless to open devices just to close them back immediately.
* MFC r264835 (MFV r264829):delphij2014-05-092-0/+40
| | | | 3897 zfs filesystem and snapshot limits
* MFC r264669: MFV r264666:delphij2014-05-092-8/+7
| | | | | | 4374 dn_free_ranges should use range_tree_t illumos/illumos-gate@bf16b11e8deb633dd6c4296d46e92399d1582df4
* MFC r264040:pfg2014-05-023-8/+23
| | | | | | | | | | | | | 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 r264467:delphij2014-04-281-4/+26
| | | | | | | | | Take into account when zpool history block grows exceeding 128KB in zpool(8) and zdb(8) by growing the buffer on demand with a cap of 1GB (specified in spa_history_create_obj()). PR: bin/186574 Submitted by: Andrew Childs <lorne cons org nz> (with changes)
* MFC r263889 (MFV r263887):delphij2014-04-113-12/+20
| | | | | 3993 zpool(1M) and zfs(1M) should support -p for "list" and "get" 4700 "zpool get" doesn't support -H or -o options
* MFC r262912asomers2014-03-281-0/+1
| | | | | | | cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c Fix a memory leak in uu_avl_pool_create: pthread_mutex_init without a corresponding pthread_mutex_destroy. It shows up, among other places, when doing "zfs list".
* MFC r260183: MFV r260154 + 260182:delphij2014-03-208-60/+364
| | | | | | | 4369 implement zfs bookmarks 4368 zfs send filesystems from readonly pools Illumos/illumos-gate@78f171005391b928aaf1642b3206c534ed644332
* MFC r259850: MFV r258384:delphij2014-03-202-8/+10
| | | | | | 2583 Add -p (parsable) option to zfs list illumos/illumos-gate@43d68d68c1ce08fb35026bebfb141af422e7082e
* MFC r260138: MFV r242733:delphij2014-03-192-1/+80
| | | | | | | | | | | | | 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-191-6/+5
| | | | | | | | | 4171 clean up spa_feature_*() interfaces 4172 implement extensible_dataset feature for use by other zpool features illumos/illumos-gate@2acef22db7808606888f8f92715629ff3ba555b9
* MFC r262577: MFV r262570:delphij2014-03-141-4/+11
| | | | 4626 libzfs memleak in zpool_in_use()
* MFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zallocavg2014-02-171-10/+0
|
* MFC r260051:markj2014-02-171-4/+11
| | | | | | When clearing relocations to __dtrace* symbols, handle both SHT_REL and SHT_RELA sections properly instead of assuming that the relocation section is of type SHT_REL.
OpenPOWER on IntegriCloud