aboutsummaryrefslogtreecommitdiff
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* MFV r270197:Xin LI2014-08-224-98/+8
| | | | | | | | | | | Illumos issue: 5066 remove support for non-ANSI compilation 5068 Remove SCCSID() macro from <macros.h> MFC after: 2 weeks Notes: svn path=/head/; revision=270382
* Make DTrace stuff compile with C99 standard.Xin LI2014-08-227-2/+13
| | | | Notes: svn path=/head/; revision=270358
* Fix powerpc build:Xin LI2014-08-221-0/+1
| | | | | | | | | Chase r270227 and compile lockstat with C99 standard. Suggested by: bde Notes: svn path=/head/; revision=270317
* Include two headers to provide prototype for modfind(2) and kldload(2).Xin LI2014-08-211-0/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=270315
* Remove the BROKEN_LIBELF section.Rui Paulo2014-08-101-52/+0
| | | | | | | | | This problem was fixed by Kai Wang in 2011. MFC after: 3 days Notes: svn path=/head/; revision=269776
* Quiesce a printf warning from clang, %ul -> %luSean Bruno2014-08-081-1/+1
| | | | | | | | Phabric: https://phabric.freebsd.org/D472 Reviewed by: mahrens delphij Notes: svn path=/head/; revision=269730
* Preserve the errno value of an ioctl before calling free(3). Previously,Mark Johnston2014-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 Notes: svn path=/head/; revision=269524
* MFV r269426:Xin LI2014-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 Notes: svn path=/head/; revision=269430
* Update shellsnoop to work on FreeBSD.George V. Neville-Neil2014-07-311-9/+5
| | | | | | | Contributed by: skreuzer Notes: svn path=/head/; revision=269360
* MFV r269223:Xin LI2014-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 Notes: svn path=/head/; revision=269229
* Update the header printing to match the rest of the output.George V. Neville-Neil2014-07-261-1/+1
| | | | | | | Pointed out by: mdf Notes: svn path=/head/; revision=269145
* Since we cannot yet display the name print the file descriptor so thatGeorge V. Neville-Neil2014-07-261-3/+3
| | | | | | | it can be looked up manually using procstat(1). Notes: svn path=/head/; revision=269144
* Remove debugging options from the rwsnoop script.George V. Neville-Neil2014-07-261-2/+0
| | | | Notes: svn path=/head/; revision=269141
* Port the rwsnoop DTrace Toolkit script to FreeBSD.George V. Neville-Neil2014-07-261-26/+27
| | | | | | | | | Remove dependency on the Korn Shell. Remove Zones in favor of Jails. Remove support (for now) for filename printing. Notes: svn path=/head/; revision=269140
* MFV r269010:Xin LI2014-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 Notes: svn path=/head/; revision=269118
* Diff reduction against Illumos.Xin LI2014-07-252-7/+16
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=269100
* MFV r268848:Xin LI2014-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 Notes: svn path=/head/; revision=268855
* MFV r268714:Xin LI2014-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 Notes: svn path=/head/; revision=268720
* Bump mdoc date after r268621.Xin LI2014-07-141-1/+1
| | | | | | | X-MFC-With: r268621 Notes: svn path=/head/; revision=268625
* Don't report non-native block-size pools under zpool status -xSteven Hartland2014-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 Notes: svn path=/head/; revision=268621
* MFV r268455:Xin LI2014-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 Notes: svn path=/head/; revision=268473
* MFV r268454:Xin LI2014-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 Notes: svn path=/head/; revision=268470
* MFV r268453:Xin LI2014-07-092-19/+19
| | | | | | | | | Diff reduction against Illumos. MFC after: 2 weeks Notes: svn path=/head/; revision=268469
* Remove ia64.Marcel Moolenaar2014-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 Notes: svn path=/head/; revision=268351
* MFV r268121:Xin LI2014-07-011-9/+12
| | | | | | | | | | | 4924 LZ4 Compression for metadata illumos/illumos-gate@b8289d24d866c1af02d7007348f7f057693c15d3 MFC after: 2 weeks Notes: svn path=/head/; revision=268126
* MFV r268119:Xin LI2014-07-013-20/+24
| | | | | | | | | | | 4914 zfs on-disk bookmark structure should be named *_phys_t illumos/illumos-gate@7802d7bf98dec568dadf72286893b1fe5abd8602 MFC after: 2 weeks Notes: svn path=/head/; revision=268123
* - Fix handling of "new" style of ioctl in compatiblity mode [1];Xin LI2014-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 Notes: svn path=/head/; revision=268116
* MFV r267570:Xin LI2014-07-011-1/+3
| | | | | | | | | | | 4756 metaslab_group_preload() could deadlock illumos/illumos-gate@30beaff42d8240ebf5386e8b7a14e3d137a1631f MFC after: 2 weeks Notes: svn path=/head/; revision=268086
* MFV r267568:Xin LI2014-07-014-7/+49
| | | | | | | | | | | 4891 want zdb option to dump all metadata illumos/illumos-gate@df15e419cb7359ba56ddddab9045e438d89e7cbc MFC after: 2 weeks Notes: svn path=/head/; revision=268084
* MFV r267566:Xin LI2014-07-012-2/+3
| | | | | | | | | 4390 i/o errors when deleting filesystem/zvol can lead to space map corruption MFC after: 2 weeks Notes: svn path=/head/; revision=268079
* MFV r267565:Xin LI2014-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 Notes: svn path=/head/; revision=268075
* MFV illumosRui Paulo2014-06-2618-38/+2278
| | | | | | | | | | | 4471 DTrace count() with histogram 4472 DTrace full width distribution histograms 4473 DTrace frequency trails MFC after: 2 weeks Notes: svn path=/head/; revision=267942
* MFV illumosRui Paulo2014-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 Notes: svn path=/head/; revision=267941
* Add stubs for CTF functions which are not yet implemented.Rui Paulo2014-06-261-0/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=267940
* MFV illumosRui Paulo2014-06-2616-4/+877
| | | | | | | | | 4477 DTrace should speak JSON MFC after: 2 weeks Notes: svn path=/head/; revision=267937
* MFV illumos r266986:Rui Paulo2014-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 Notes: svn path=/head/; revision=267929
* Revert r267898.Rui Paulo2014-06-2618-2289/+39
| | | | Notes: svn path=/head/; revision=267925
* Bring the following change from the illumos-joyent repository:Rui Paulo2014-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 Notes: svn path=/head/; revision=267898
* MFV r258381:Pedro F. Giffuni2014-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 Notes: svn path=/head/; revision=267875
* mdoc: remove superfluous paragraph macros.Joel Dahl2014-06-231-1/+0
| | | | Notes: svn path=/head/; revision=267803
* MFV r249332 (illumos-gate 14005:55fc53126003)Xin LI2014-06-171-1/+38
| | | | | | | | | | Illumos ZFS issues: 3654 zdb should print number of ganged blocks MFC after: 2 weeks Notes: svn path=/head/; revision=267572
* MFV r266988:Pedro F. Giffuni2014-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 Notes: svn path=/head/; revision=267513
* MFV r266766:Xin LI2014-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 Notes: svn path=/head/; revision=266771
* Explicitly link libzfs against libavl as it is done in OpenSolarisXin LI2014-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 Notes: svn path=/head/; revision=266520
* Fix tst.ZeroModuleProbes.d.ksh, which was incorrectly modified in r178534.Mark Johnston2014-05-191-1/+1
| | | | | | | | | Since "BEGIN" is not the name of a module, the test would just hang. MFC after: 3 days Notes: svn path=/head/; revision=266454
* Bind ip/tcp/udp provider translators and symbols to the same versions as inMark Johnston2014-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 Notes: svn path=/head/; revision=266082
* Comment out some pointless device open/close around reading device IDs.Alexander Motin2014-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. Notes: svn path=/head/; revision=265821
* Import adapted OpenSolaris' thread pool API implementation.Alexander Motin2014-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. Notes: svn path=/head/; revision=265689
* Re-apply r248644. This fixes an annoying problem which caused dtrace -c toMark Johnston2014-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 Notes: svn path=/head/; revision=265631
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-065-5/+5
| | | | | | | from the latter. Notes: svn path=/head/; revision=265420