aboutsummaryrefslogtreecommitdiff
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* DWARF emitted by clang 3.7 encodes array sizes using the DW_AT_countMark Johnston2015-10-241-0/+4
| | | | | | | | | | | attribute rather than DW_AT_upper_bound. Teach ctfconvert about this so that array type sizes are encoded correctly. PR: 203772 MFC after: 1 week Notes: svn path=/head/; revision=289866
* MFV r289561: 6328 Fix cstyle errors in zfs codebaseAlexander Motin2015-10-195-8/+11
| | | | | | | | | | | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Alex Reece <alex@delphix.com> Reviewed by: Richard Elling <Richard.Elling@RichardElling.com> Reviewed by: Jorgen Lundman <lundman@lundman.net> Approved by: Robert Mustacchi <rm@joyent.com> Author: Paul Dagnelie <pcd@delphix.com> illumos/illumos-gate@9a686fbc186e8e2a64e9a5094d44c7d6fa0ea167 Notes: svn path=/head/; revision=289562
* MFV r289535: 5767 fix several problems with zfs test suiteAlexander Motin2015-10-181-10/+36
| | | | | | | | | | | | | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Christopher Siden <christopher.siden@delphix.com> Approved by: Gordon Ross <gwr@nexenta.com> Author: John Wren Kennedy <john.kennedy@delphix.com> illumos/illumos-gate@52244c0958bdf281ca42932b449f644b4decfdc2 In fact, only unrelated part of that commit is applicable: 8. zpool list -v doesn't print spares It also doesn't correctly identify log devices. Notes: svn path=/head/; revision=289536
* MFV r289530: 5847 libzfs_diff should check zfs_prop_get() returnAlexander Motin2015-10-181-3/+7
| | | | | | | | | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Albert Lee <trisk@omniti.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Alexander Eremin <a.eremin@nexenta.com> illumos/illumos-gate@8430278980a48338e04c7dd52b495b7f1551367a Notes: svn path=/head/; revision=289531
* Reduce diff from upstream.Alexander Motin2015-10-181-13/+13
| | | | | | | Should be no functional change. Notes: svn path=/head/; revision=289528
* MFV r289526:Alexander Motin2015-10-181-81/+2
| | | | | | | | | | | | | | | | | 5561 support root pools on EFI/GPT partitioned disks 5125 update zpool/libzfs to manage bootable whole disk pools (EFI/GPT labeled disks) Reviewed by: Jean McCormack <jean.mccormack@nexenta.com> Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Hans Rosenfeld <hans.rosenfeld@nexenta.com> illumos/illumos-gate@1a902ef8628b0dffd6df5442354ab59bb8530962 This is NOP changes for FreeBSD. Notes: svn path=/head/; revision=289527
* MFC r289498: 6298 zfs_create_008_neg and zpool_create_023_neg need to beAlexander Motin2015-10-184-22/+60
| | | | | | | | | | | | | | updated for large block support. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: John Kennedy <john.kennedy@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Joe Stein <joe.stein@delphix.com> illumos/illumos-gate@e9316f7696401f3e5e263a5939031cb8d5641a88 Notes: svn path=/head/; revision=289500
* MFV r247180: Update vendor/illumos/dist and vendor-sys/illumos/distAlexander Motin2015-10-182-7/+27
| | | | | | | | | | | | | to illumos-gate 13967:92bec6d87f59 Illumos ZFS issues: 3557 dumpvp_size is not updated correctly when a dump zvol's size is changed 3558 setting the volsize on a dump device does not return back ENOSPC 3559 setting a volsize larger than the space available sometimes succeeds Notes: svn path=/head/; revision=289499
* MFV r289493: 5745 zfs set allows only one dataset property to be set at a timeAlexander Motin2015-10-185-99/+194
| | | | | | | | | | | | | | | | Reviewed by: Christopher Siden <christopher.siden@delphix.com> Reviewed by: George Wilson <george@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com> Reviewed by: Richard PALO <richard@NetBSD.org> Reviewed by: Steven Hartland <killing@multiplay.co.uk> Approved by: Rich Lowe <richlowe@richlowe.net> Author: Chris Williamson <chris.williamson@delphix.com> illumos/illumos-gate@30925561c223021e91d15899cbe75f80e54d8889 Notes: svn path=/head/; revision=289497
* MFV r289310:Alexander Motin2015-10-162-1/+7
| | | | | | | | | | | | | | | | | | | | | 4185 add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Garrett D'Amore <garrett@damore.org> Author: Matthew Ahrens <mahrens@delphix.com> illumos/illumos-gate@45818ee124adeaaf947698996b4f4c722afc6d1f This is only a partial merge of respective ZFS infrastructure changes. At this moment FreeBSD kernel has no those crypto algorithms, so the parts of the code to enable them are commented out. When they are implemented, it will be trivial to plug them in. Notes: svn path=/head/; revision=289422
* Add more SUBDIR_PARALLEL.Bryan Drewery2015-10-151-1/+4
| | | | | | | | MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289393
* MFV r289312: 2605 want to resume interrupted zfs sendAlexander Motin2015-10-1511-131/+638
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Paul Dagnelie <pcd@delphix.com> Reviewed by: Richard Elling <Richard.Elling@RichardElling.com> Reviewed by: Xin Li <delphij@freebsd.org> Reviewed by: Arne Jansen <sensille@gmx.net> Approved by: Dan McDonald <danmcd@omniti.com> Author: Matthew Ahrens <mahrens@delphix.com> illumos/illumos-gate@9c3fd1216fa7fb02cfbc78a2518a686d54b48ab8 For more info, see: - slides http://www.slideshare.net/MatthewAhrens/openzfs-send-and-receive - video https://www.youtube.com/watch?v=iY44jPMvxog - manpage changes (for zfs resume -s and zfs send -t) - upcoming talk at the OpenZFS Developer Summit The TL;DR is: Use "zfs receive -s" to save the partially received state on failure. On failure, get the receive token with "zfs get receive_resume_token <fs>" Resume the send with "zfs send -t <token_value>" Relnotes: yes Notes: svn path=/head/; revision=289362
* MFV r289311: 5764 "zfs send -nv" directs output to stderrAlexander Motin2015-10-142-9/+18
| | | | | | | | | | | | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com> Reviewed by: Basil Crow <basil.crow@delphix.com> Reviewed by: Steven Hartland <killing@multiplay.co.uk> Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Manoj Joseph <manoj.joseph@delphix.com> illumos/illumos-gate@dc5f28a3c341db7c241bba77ddc109c141072f27 Notes: svn path=/head/; revision=289313
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andEnji Cooper2015-10-126-17/+6
| | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison Notes: svn path=/head/; revision=289172
* Have lockstat(1) trace locks by name rather than by address.Mark Johnston2015-09-302-4/+66
| | | | | | | | | | | | | | | | | | | | | | Previously, lockstat(1) would use a lock's address as its identifier when consuming data describing lock contention and hold events. After collecting the requested data, it would use ksyms(4) to resolve lock addresses to names. Of course, this doesn't work too well for locks contained in dynamically-allocated memory. This change modifies lockstat(1) to trace the lock names obtained from the base struct lock_object instead, leading to output that is generally much more useful. This change also removes the -c option, which is used to coalesce data for locks in an array. It's not possible to support this option without also tracing lock addresses, and since lock arrays in which the lock names are distinct are not very common in FreeBSD, it's simpler to just remove the option. Reviewed by: avg (earlier revision) Differential Revision: https://reviews.freebsd.org/D3661 Notes: svn path=/head/; revision=288417
* Update DTrace test makefiles after r288415.Mark Johnston2015-09-302-0/+3
| | | | Notes: svn path=/head/; revision=288416
* MFV r288408:Mark Johnston2015-09-303-0/+164
| | | | | | | | | | | | | | | | 6266 harden dtrace_difo_chunksize() with respect to malicious DIF illumos/illumos-gate@395c7a3dcfc66b8b671dc4b3c4a2f0ca26449922 Reviewed by: Alex Wilson <alex.wilson@joyent.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Approved by: Garrett D'Amore <garrett@damore.org> Author: Bryan Cantrill <bryan@joyent.com> MFC after: 1 week Notes: svn path=/head/; revision=288415
* Stop hard-coding a 32-bit data model for USDT tests, and just use the nativeMark Johnston2015-09-3020-21/+21
| | | | | | | | | | model. This was causing many of the tests to fail on amd64 since USDT support for 32-bit programs is currently non-functional. MFC after: 1 week Notes: svn path=/head/; revision=288413
* define aok in libnvpair which is linked to all zfs libraries that need aokAndriy Gapon2015-09-282-1/+2
| | | | | | | | | | | This removes the circular dependency of libnvpair on libzfs / libzpool. PR: 199811 Obtained from: bapt MFC after: 23 days Notes: svn path=/head/; revision=288340
* remove unused sgsmsg utility (originally imported from opensolaris)Andriy Gapon2015-09-2812-3834/+0
| | | | | | | MFC after: 25 days Notes: svn path=/head/; revision=288339
* remove an extra copy of avl.c from illumos contrib codeAndriy Gapon2015-09-281-1059/+0
| | | | | | | MFC after: 20 days Notes: svn path=/head/; revision=288337
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.Bryan Drewery2015-09-255-10/+0
| | | | | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288226
* Use FILES for installing the dtrace scripts.Bryan Drewery2015-09-181-7/+4
| | | | | | | | | | | | The BSD.usr.dist mtree always creates /usr/lib/dtrace so there is no need to check if it exists. The FILES mechanism already supports LIBRARIES_ONLY. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=287971
* Remove an unneeded typedef of ip6_t from the DTrace ip provider library.Mark Johnston2015-09-151-3/+2
| | | | | | | | | | | It causes an error when ipfilter is enabled, since ipl.ko contains an identical typedef. PR: 203092 MFC after: 1 week Notes: svn path=/head/; revision=287807
* MFV r286224: 5695 dmu_sync'ed holes do not retain birth timeXin LI2015-09-141-1/+3
| | | | | | | | | | | (userland portion that was not merged in r286677) Update zdb to also print ltime, type, and level information for these new style holes. Previously, only the logical birth time would be printed. Notes: svn path=/head/; revision=287771
* MFV r277429:Xin LI2015-09-142-7/+17
| | | | | | | | | | | | | | | | | | | | Document -S option when zfs inherit fails on quota and in manual pages. Illumos ZFS issues: 5410 Document -S option to zfs inherit https://illumos.org/issues/5410 5412 Mention -S option when zfs inherit fails on quota https://illumos.org/issues/5412 illumos/illumos-gate@5ff8cfa92ec8ea0f8593ad21aa2a04829b0ef5ea MFC after: 2 weeks Notes: svn path=/head/; revision=287770
* dd DTrace probe points, translators and a corresponding scriptGeorge V. Neville-Neil2015-09-131-1/+132
| | | | | | | | | | | | to provide the TCPDEBUG functionality with pure DTrace. Reviewed by: rwatson MFC after: 2 weeks Sponsored by: Limelight Networks Differential Revision: D3530 Notes: svn path=/head/; revision=287759
* Fix build (r287703). Lesson learned: no matter how a change looks like anXin LI2015-09-121-0/+2
| | | | | | | | | innocent one, always do a build test first. Pointy hat to: delphij Notes: svn path=/head/; revision=287705
* Remove duplicate defines introduced in initial ZFS import (r168404)Allan Jude2015-08-311-7/+0
| | | | | | | | | | | | | | | | | | This change reduces compiler warnings by removing duplicate defines Line numbers are from r168404 (and r284648) #define lbolt: lines 384 and 459 (531 and 648) (original was renamed later) #define lbolt64: lines 385 and 460 (532 and 649) (original was renamed later) #define gethrestime_sec: lines 390 and 465 (540 and 653) uint64_t physmem: lines 402 and 463 (561 and 651) Reviewed by: smh, delphij Approved by: bapt (mentor) Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D2878 Notes: svn path=/head/; revision=287335
* Re-apply r274569. It was reverted in r276848 since that appeared to fixMark Johnston2015-08-281-1/+1
| | | | | | | | | | | | | | | | | | some ctfmerge crashes that started to occur on i386 weeks after r274569 was committed. Some later investigation indicated that the crashes were caused by malformed CTF info that led to a stack overflow. The issue with CTF info in i386 kernels seems to have been resolved by r261246, which updated libdwarf and libelf. r274569 fixes a bug which caused duplicate types to appear in the kernel's CTF info. This duplication generally does not cause problems when using DTrace, but makes it easier to hit the limit of 2^15 - 1 distinct type definitions in a CTF container. MFC after: 2 weeks Notes: svn path=/head/; revision=287234
* Sparc64 is the odd-man out, so form the if that way rather thanWarner Losh2015-08-231-3/+1
| | | | | | | listing everybody else. Notes: svn path=/head/; revision=287085
* Plug a memory leak.Xin LI2015-08-131-0/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=286737
* MFV 286707: 5959 clean up per-dataset feature count codeAlexander Motin2015-08-123-29/+46
| | | | | | | | | | | | | | | | | | Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: George Wilson <george@delphix.com> Reviewed by: Alex Reece <alex@delphix.com> Approved by: Richard Lowe <richlowe@richlowe.net> Author: Matthew Ahrens <mahrens@delphix.com> illumos/illumos-gate@ca0cc3918a1789fa839194af2a9245f801a06b1a A ZFS feature flags (large blocks) tracks its refcounts as the number of datasets that have ever used the feature. Several features of this type are planned to be added (new checksum functions). This code should be made common infrastructure rather than duplicating the code for each feature. Notes: svn path=/head/; revision=286708
* MFV r286704: 5960 zfs recv should prefetch indirect blocksAlexander Motin2015-08-128-33/+93
| | | | | | | | | | | | | | | | | | | 5925 zfs receive -o origin= Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Author: Paul Dagnelie <pcd@delphix.com> While running 'zfs recv' we noticed that every 128th 8K block required a read. We were seeing that restore_write() was calling dmu_tx_hold_write() and the indirect block was not cached. We should prefetch upcoming indirect blocks to avoid having to go to disk and blocking the restore_write(). Allow an incremental send stream to be received as a clone, even if the stream does not mark it as a clone. Notes: svn path=/head/; revision=286705
* MFV r286682: 5765 add support for estimating send stream size withAlexander Motin2015-08-121-5/+17
| | | | | | | | | | | | | | | | lzc_send_space when source is a bookmark Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Christopher Siden <christopher.siden@delphix.com> Reviewed by: Steven Hartland <killing@multiplay.co.uk> Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com> Approved by: Albert Lee <trisk@nexenta.com> Author: Max Grossman <max.grossman@delphix.com> illumos/illumos-gate@643da460c8ca583e39ce053081754e24087f84c8 Notes: svn path=/head/; revision=286683
* MFV 286602: 5810 zdb should print details of bpobjAlexander Motin2015-08-101-10/+87
| | | | | | | | | | | | | | | Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Alex Reece <alex@delphix.com> Reviewed by: George Wilson <george@delphix.com> Reviewed by: Will Andrews <will@freebsd.org> Reviewed by: Simon Klinkert <simon.klinkert@gmail.com> Approved by: Gordon Ross <gwr@nexenta.com> Author: Matthew Ahrens <mahrens@delphix.com> illumos/illumos-gate@732885fca09e11183dd0ea69aaaab5588fb7dbff Notes: svn path=/head/; revision=286603
* MFV 286586: 5746 more checksumming in zfs sendAlexander Motin2015-08-102-81/+118
| | | | | | | | | | | | | Reviewed by: Christopher Siden <christopher.siden@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com> Approved by: Albert Lee <trisk@omniti.com> Author: Matthew Ahrens <mahrens@delphix.com> illumos/illumos-gate@98110f08fa182032082d98be2ddb9391fcd62bf1 Notes: svn path=/head/; revision=286587
* MFV 286546:Alexander Motin2015-08-091-1/+17
| | | | | | | | | | | | | | | 5661 ZFS: "compression = on" should use lz4 if feature is enabled Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Reviewed by: Xin LI <delphij@freebsd.org> Approved by: Robert Mustacchi <rm@joyent.com> Author: Justin T. Gibbs <justing@spectralogic.com> illumos/illumos-gate@db1741f555ec79def5e9846e6bfd132248514ffe Notes: svn path=/head/; revision=286547
* - Use an explicit "depends_on module kernel" guard in DTrace libraries thatMark Johnston2015-08-0710-8/+11
| | | | | | | | | | | | | | | | | | reference types defined in the kernel. Otherwise dtrace(1) expects to find CTF definitions for all referenced types, which is not very reasonable when it is being used in a build environment. This was previously worked around by adding "-x nolibs" to dtrace -h or -G invocations, but as of r283025, dtrace(1) actually handles dependencies properly, so this is no longer necessary. - Remove "pragma ident" directives from DTrace libraries, as they're being phased out upstream as well. Submitted by: Krister Johansen <Krister.Johansen@isilon.com> [1] MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=286420
* Add a src.conf option to build and install the DTrace test suite.Mark Johnston2015-08-021-0/+6
| | | | | | | | Reviewed by: gnn, ngie Differential Revision: https://reviews.freebsd.org/D3195 Notes: svn path=/head/; revision=286174
* Don't hardcode the module or function component of lockstat probes.Mark Johnston2015-08-026-6/+6
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=286172
* - Remove hardcoded paths for the perl executable.Mark Johnston2015-08-026-7/+20
| | | | | | | | | | | | - Rather than assuming that a process is listening on 127.0.0.1:22, use nc(1) to find an available port and bind to it for the duration of the test. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=286171
* Perform bounds checking when constructing a format string.Mark Johnston2015-08-021-5/+17
| | | | | | | | | | | This was detected by the FORTIFY_SOURCE build. PR: 201657 Reported by: pfg MFC after: 2 weeks Notes: svn path=/head/; revision=286169
* Fix a rendering issue in the zfs(8) manual.Glen Barber2015-07-301-3/+3
| | | | | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=286092
* Consistently use a reader/writer flag for lockstat probes in rwlock(9) andMark Johnston2015-07-191-8/+8
| | | | | | | | sx(9), rather than using the probe function name to determine whether a given lock is a read lock or a write lock. Update lockstat(1) accordingly. Notes: svn path=/head/; revision=285704
* Rename zfs nvpair files to not colidate with our nvlist.Mariusz Zaborski2015-07-091-3/+3
| | | | | | | | PR: 201356 Approved by: pjd (mentor) Notes: svn path=/head/; revision=285339
* First cut of DTrace for AArch64.Ruslan Bukin2015-07-015-15/+172
| | | | | | | | | Reviewed by: andrew, emaste Sponsored by: ARM Limited Differential Revision: https://reviews.freebsd.org/D2738 Notes: svn path=/head/; revision=285009
* Revert r284417 it is not necessary anymoreBaptiste Daroussin2015-06-151-1/+1
| | | | Notes: svn path=/head/; revision=284421
* Enforce overwritting SHLIBDIRBaptiste Daroussin2015-06-151-1/+1
| | | | | | | | | | | | Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere. This makes /lib being populated again. Reported by: many Notes: svn path=/head/; revision=284417
* Fix circular dependency between libzfs and libzfs_coreBaptiste Daroussin2015-06-152-2/+2
| | | | | | | | libzfs_core is the wrapper around kernel ioctls, the ioctl compat code belongs to it Notes: svn path=/head/; revision=284409