summaryrefslogtreecommitdiffstats
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* 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
* MFV illumosrpaulo2014-06-2618-38/+2278
| | | | | | | | 4471 DTrace count() with histogram 4472 DTrace full width distribution histograms 4473 DTrace frequency trails MFC after: 2 weeks
* MFV illumosrpaulo2014-06-2649-126/+1969
| | | | | | | | | | 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 MFC after: 2 weeks
* Add stubs for CTF functions which are not yet implemented.rpaulo2014-06-261-0/+2
| | | | MFC after: 2 weeks
* MFV illumosrpaulo2014-06-2616-4/+877
| | | | | | 4477 DTrace should speak JSON MFC after: 2 weeks
* MFV illumos r266986:rpaulo2014-06-266-3/+461
| | | | | | | | 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 MFC after: 2 weeks
* Revert r267898.rpaulo2014-06-2618-2289/+39
|
* Bring the following change from the illumos-joyent repository:rpaulo2014-06-2618-39/+2289
| | | | | | | | | | | | commit 78e24ab6803bbe11ba37642624e1498ede5b239d Author: Bryan Cantrill <bryan@joyent.com> Date: Thu Oct 31 01:20:54 2013 OS-1688 DTrace count() with histogram OS-2360 DTrace full width distribution histograms OS-2361 DTrace frequency trails MFC after: 2 weeks
* MFV r258381:pfg2014-06-251-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 after: 1 week
* mdoc: remove superfluous paragraph macros.joel2014-06-231-1/+0
|
* MFV r249332 (illumos-gate 14005:55fc53126003)delphij2014-06-171-1/+38
| | | | | | | Illumos ZFS issues: 3654 zdb should print number of ganged blocks MFC after: 2 weeks
* MFV r266988:pfg2014-06-153-0/+168
| | | | | | | | | | | Merge from r258379 missed the tests. 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: 54a20ab41aadcb81c53e72fc65886e964e9add59 MFC after: 5 days
* MFV r266766:delphij2014-05-271-2/+49
| | | | | | | | | | | | | | | | | | | | | Add a new zfs property, "redundant_metadata" which can have values "all" or "most". The default will be "all", which is the current behavior. When set to all, ZFS stores an extra copy of all metadata. If a single on-disk block is corrupt, at worst a single block of user data (which is recordsize bytes long) can be lost. Setting to "most" will cause us to only store 1 copy of level-1 indirect blocks of user data files. This can improve performance of random writes, because less metadata has to be written. In practice, at worst about 100 blocks (of recordsize bytes each) of user data can be lost if a single on-disk block is corrupt. The exact behavior of which metadata blocks are stored redundantly may change in future releases. Illumos issue: 3835 zfs need not store 2 copies of all metadata MFC after: 2 weeks
* Explicitly link libzfs against libavl as it is done in OpenSolarisdelphij2014-05-221-2/+2
| | | | | | | | | | | | | (4543:12bb2876a62e). Without this, some third party applications may break because the lack of AVL related symbols. FreeBSD base system are not affected because the FreeBSD ZFS command line tools were all linked against libavl and thus hide the underlying issue. PR: java/183081 Tested by: jkim MFC after: 3 days
* Fix tst.ZeroModuleProbes.d.ksh, which was incorrectly modified in r178534.markj2014-05-191-1/+1
| | | | | | Since "BEGIN" is not the name of a module, the test would just hang. MFC after: 3 days
* Bind ip/tcp/udp provider translators and symbols to the same versions as inmarkj2014-05-143-57/+57
| | | | | | | | | | | illumos, rather than using "1.0" everywhere. Some of the translators use D functions that are not present in version 1.0 (e.g. inet_ntoa()) which can result in libdtrace crashing when running scripts that restrict themselves to version 1.0 (e.g. with "-x version=1.0"). MFC after: 1 week
* Comment out some pointless device open/close around reading device IDs.mav2014-05-103-0/+10
| | | | | | | | | 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 after: 2 weeks Sponsored by: iXsystems, Inc.
* Import adapted OpenSolaris' thread pool API implementation.mav2014-05-084-30/+599
| | | | | | | | | | The thread pool is used by libzfs to implement parallel disk scanning. Without this change our dummy wrapper made `zpool import ZZZ` command to scan all disks sequentially from the single thread when searching for pools. This change makes it use two threads per CPU, same as in OpenSolaris. On system with 200 HDDs this change reduces ZFS pool import time from 35 to 22 seconds.
* Re-apply r248644. This fixes an annoying problem which caused dtrace -c tomarkj2014-05-081-1/+1
| | | | | | | | | | | 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 after: 2 weeks
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-065-5/+5
| | | | from the latter.
* Remove a duplicate definition.markj2014-05-041-1/+0
| | | | MFC after: 3 days
* Spell NO_PROFILE= as MK_PROFILE=no.imp2014-04-251-1/+1
|
* Silence compiler warning due to missing return in idmap_id_to_numeric_domain_ridsmh2014-04-241-0/+1
|
* Eliminated optarg global being used outside of the function which called getoptsmh2014-04-241-6/+5
| | | | MFC after: 2 weeks
* MFV r264829:delphij2014-04-234-3/+115
| | | | | | 3897 zfs filesystem and snapshot limits MFC after: 2 weeks
* Add placeholder Kyuafiles for various top-level hierarchies.jmmv2014-04-2110-2/+77
| | | | | | | | | | | | This change adds tests/ directories in the source tree to create various subdirectories in /usr/tests/ and to install placeholder Kyuafiles for them. the relevant hierarchies are: cddl, etc, games, gnu and secure. The reason for this is to simplify the addition of new test programs for utilities or libraries under any of these directories. Doing so on a case by case basis is unnecessary and is quite an obscure process.
* MFV r264666:delphij2014-04-183-10/+10
| | | | | | | | 4374 dn_free_ranges should use range_tree_t illumos/illumos-gate@bf16b11e8deb633dd6c4296d46e92399d1582df4 MFC after: 2 weeks
* Replace a few Solarisisms with their corresponding FreeBSDisms to make a fewmarkj2014-04-156-6/+6
| | | | printf tests pass.
* Use the correct format specifiers for wide characters and strings of widemarkj2014-04-151-0/+5
| | | | | | characters. MFC after: 1 week
* Take into account when zpool history block grows exceeding 128KB in zpool(8)delphij2014-04-142-7/+54
| | | | | | | | | 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 after: 2 weeks
OpenPOWER on IntegriCloud