summaryrefslogtreecommitdiffstats
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* Do not use #warning to warn about missing implementation of dt_popc(),simon2011-06-191-1/+1
| | | | | | | | | | | but just have a comment that this is broken. This is just a bandaid until somebody can fix this correctly. The code is just a broken as it was before r223262 - now buildworld just doesn't fail. Tested by: i386 + amd64 buildworld With hat: benl co-mentor
* Fix clang warnings.benl2011-06-181-7/+9
| | | | Approved by: philip (mentor)
* Remove C constructs that are incompatible with C++ from variousgibbs2011-06-101-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenSolaris and ZFS header files. These changes are sufficient to allow a C++ program to use the libzfs library. Note: The majority of these files already included 'extern "C"' declarations, so the intention of providing C++ compatibility already existed even if it wasn't provided. cddl/compat/opensolaris/include/assert.h: Wrap our compatibility assert implementation in 'extern "C"'. Since this is a compatibility header I matched the Solaris style of doing this explicitly rather than rely on FreeBSD's __BEGIN/END_DECLS macro. sys/cddl/compat/opensolaris/sys/kstat.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/arc.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_pool.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ddt.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/spa.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h: Rename parameters in function declarations that conflict with C++ keywords. This was the solution preferred by members of the Illumos community. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_ioctl.h: In C, nested structures are visible in the global namespace, but in C++, they take on the namespace of the structure in which they are contained. Flatten nested structure definitions within struct zfs_cmd so these structures are visible in the global namespace when compiled in both languages. Sponsored by: Spectra Logic Corporation
* Close a race between libzfs and mountd when updating NFS exports.will2011-05-261-0/+1
| | | | | | | | | - Flush the file descriptor for the new ZFS exports file before sending a SIGHUP to mountd. Reviewed by: pjd Approved by: ken MFC after: 3 days
* Don't pass empty mount options to nmount(2).jh2011-05-031-2/+4
| | | | | Reviewed by: pjd MFC after: 2 weeks
* Fix 'zfs list <path>' handling. If the path was found, the 'ret' variable waspjd2011-04-121-3/+4
| | | | | | | | uninitialized. PR: kern/155940 Submitted by: KOIE Hidetaka <koie@suri.co.jp> MFC after: 1 week
* Properly print characters larger than 127.pjd2011-03-241-2/+4
| | | | | | Submitted by: noordsij <noordsij@cs.helsinki.fi> Reviewed by: Eric Schrock <eric.schrock@delphix.com> MFC after: 1 month
* Finally... Import the latest open-source ZFS version - (SPA) 28.pjd2011-02-2772-6282/+18054
| | | | | | | | | | | | | | | Few new things available from now on: - Data deduplication. - Triple parity RAIDZ (RAIDZ3). - zfs diff. - zpool split. - Snapshot holds. - zpool import -F. Allows to rewind corrupted pool to earlier transaction group. - Possibility to import pool in read-only mode. MFC after: 1 month
* When building libzpool on ia64 or sparc64, don't add the .note.GNU-stackdim2011-02-151-0/+2
| | | | | | section. Submitted by: kib
* Fix some leftover binaries and shared libraries in the system that stilldim2011-02-151-0/+1
| | | | | | | | | | | | | | | have an executable stack, due to linking in hand-assembled .S or .s files, that have no .GNU-stack sections: RWX --- --- /lib/libcrypto.so.6 RWX --- --- /lib/libmd.so.5 RWX --- --- /lib/libz.so.6 RWX --- --- /lib/libzpool.so.2 RWX --- --- /usr/lib/liblzma.so.5 These were found using scanelf, from the sysutils/pax-utils port. Reviewed by: kib
* Re-commit the zfs sysctl(9) type-safety changes.mdf2011-01-131-0/+1
| | | | | Thanks to dim and pjd for the pointer to zfs_context.h for building userland.
* Print message with information about updating the boot code if a newmm2010-12-081-10/+9
| | | | | | | | vdev is attached to a root pool (e.g. when creating a mirrored boot pool). Reviewed by: pav Approved by: delphij (mentor) MFC after: 3 days
* Do not print OpenSolaris hint to use (non-existing) installgrub(1) commandmm2010-12-081-0/+4
| | | | | | | | if creating a mirror by attaching a new vdev to a root pool. Reported by: James R. Van Artsdalen (on freebsd-fs@freebsd.org) Approved by: delphij (mentor) MFC after: 3 days
* Do not lint code beyond necessity (with apologies to Wiliam of Ockham).markm2010-11-181-0/+5
| | | | | Don't lint externally maintained CDDL code, or relint the 32-bit libraries in amd64 mode.
* Fix ztest when it is executed by just 'ztest' and not by full pathpjd2010-11-011-2/+1
| | | | '/usr/bin/ztest'.
* 1. Remove invalid assertion.pjd2010-11-011-3/+3
| | | | | | | 2. Properly recalculate delta in case pthread_cond_timedwait() is interrupted. 3. Style fix. Reported by: [1] App Deb <appdebgr@gmail.com>
* Use ${PICFLAG} instead of -fpic.rpaulo2010-10-271-1/+1
|
* Properly handle IO with B_FAILFASTmm2010-09-271-5/+6
| | | | | | | | | | | | | Retry IO once with ZIO_FLAG_TRYHARD before declaring a pool faulted OpenSolaris revision and Bug IDs: 9725:0bf7402e8022 6843014 ZFS B_FAILFAST handling is broken Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6843014) MFC after: 3 weeks
* Enable offlining of log devices.mm2010-09-274-220/+230
| | | | | | | | | | | | | OpenSolaris revision and Bug IDs: 9701:cc5b64682e64 6803605 should be able to offline log devices 6726045 vdev_deflate_ratio is not set when offlining a log device 6599442 zpool import has faults in the display Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6803605, 6726045, 6599442) MFC after: 3 weeks
* Minor grammar fixes.brueffer2010-09-211-2/+2
|
* Remove duplicate include of <strings.h>mm2010-09-171-1/+0
| | | | | Approved by: delphij (mentor) MFC after: 3 days
* Add a man page for plockstat.rpaulo2010-09-152-1/+95
| | | | Sponsored by: The FreeBSD Foundation
* Give a chance to the target binary to run the ctors by waiting until itrpaulo2010-09-121-1/+1
| | | | | | has reached main(). This allows plockstat to work. Sponsored by: The FreeBSD Foundation
* Disable debug by default.rpaulo2010-09-111-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Don't try to map the USDT probes. This is necessary because there is norpaulo2010-09-101-1/+3
| | | | | | __SUNW_dof symbol present in FreeBSD binaries. Sponsored by: The FreeBSD Foundation
* Don't clobber an existing target object file when doing the DTracerpaulo2010-09-091-0/+12
| | | | | | | | | linking process. This is needed because we change the source object files and the second this dtrace -G is run, no probes will be found. This hack allows us to build postgres with DTrace probes enabled. I'll try to find a way to fix this without needing this hack. Sponsored by: The FreeBSD Foundation
* Include <sys/sdt.h> on a generated header.rpaulo2010-09-011-0/+4
| | | | Sponsored by: The FreeBSD Foundation
* Eliminate confusing while () loop. In the first version of the code it waspjd2010-08-311-4/+3
| | | | | | there to avoid gotos, but in the current version it serves no purpose. MFC after: 2 weeks
* When upgrading a pool which contain root file system, give user a hint thatpjd2010-08-311-0/+47
| | | | | | he should update boot code. MFC after: 2 weeks
* Give user a hint what to do when /usr/lib/zfs/pyzfs.py is missing.pjd2010-08-291-0/+2
| | | | MFC after: 2 weeks
* Print errors on stderr.pjd2010-08-291-2/+2
| | | | MFC after: 2 weeks
* Fix 'zfs allow' (maybe not only) returning:pjd2010-08-291-0/+1
| | | | | | | | | | | | | | | cannot access dataset system/usr/home: Operation not supported by including libzfs_impl.h. What libzfs_impl.h does is to redefine ioctl() to be compatible with OpenSolaris. More specifically OpenSolaris returns ENOMEM when buffer is too small and sets field zc_nvlist_dst_size to the size that will be big enough for the data. In FreeBSD case ioctl() doesn't copy data structure back in case of a failure. We work-around it in kernel and libzfs by returning 0 from ioctl() and always checking if zc_nvlist_dst_size hasn't changed. For this work-around to work in pyzfs we need this compatible ioctl() which is implemented in libzfs_impl.h. MFC after: 2 weeks
* Update ZFS metaslab code from OpenSolaris.mm2010-08-281-11/+13
| | | | | | | | | | | | | | | | | | | | | This provides a noticeable write speedup, especially on pools with less than 30% of free space. Detailed information (OpenSolaris onnv changesets and Bug IDs): 11146:7e58f40bcb1c 6826241 Sync write IOPS drops dramatically during TXG sync 6869229 zfs should switch to shiny new metaslabs more frequently 11728:59fdb3b856f6 6918420 zdb -m has issues printing metaslab statistics 12047:7c1fcc8419ca 6917066 zfs block picking can be improved Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6826241, 6869229, 6918420, 6917066) MFC after: 2 weeks
* Install dtruss.rpaulo2010-08-261-0/+2
| | | | Sponsored by: The FreeBSD Foundation
* Add a man page for dtruss.rpaulo2010-08-262-1/+90
| | | | Sponsored by: The FreeBSD Foundation
* Port dtruss to FreeBSD.rpaulo2010-08-241-9/+6
| | | | Sponsored by: The FreeBSD Foundation
* Merge dtracetoolkit/dtruss from the vendor.rpaulo2010-08-241-0/+467
| | | | Sponsored by: The FreeBSD Foundation
* MFtbemd:imp2010-08-232-3/+3
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* Use real atomic operations for sparc64.marius2010-08-231-1/+1
| | | | MFC after: 1 week
* Add powerpc64 to the list of architectures with real atomic operations.nwhitehorn2010-08-231-1/+1
| | | | Submitted by: imp
* Don't link drti.o with libelf_pic.a. This means that all software withrpaulo2010-08-211-7/+1
| | | | | | | userland SDT probes must be linked with libelf explicitly. Requested by: kib Sponsored by: The FreeBSD Foundation
* Use double quotes when checking the value of MACHINE_ARCH.rpaulo2010-08-211-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Add a Makefile for dtruss.rpaulo2010-08-211-0/+8
| | | | Sponsored by: The FreeBSD Foundation
* Port plockstat to FreeBSD. This will be connected to the build later.rpaulo2010-08-212-11/+63
| | | | Sponsored by: The FreeBSD Foundation
* Link drti.o with a PIC version of libelf. This is needed becauserpaulo2010-08-211-2/+9
| | | | | | | drti.o depends on libelf and this avoids linking every other drti.o program (namely programs with USDT probes) with libelf. Sponsored by: The FreeBSD Foundation
* Add libdtrace support for tracing userland programs.rpaulo2010-08-2115-218/+712
| | | | | | | | | | | | | | | | | | Summary of changes: * Implement a compatibility shim between Solaris libproc and our libproc and remove several ifdefs because of this. * Port the drti to FreeBSD. * Implement the missing DOODAD sections * Link with libproc and librtld_db * Support for ustack, jstack and uregs (by sson@) * Misc bugfixing When writing the SUWN_dof section, we had to resort to building the ELF file layout by "hand". This is the job of libelf, but our libelf doesn't support this yet. When libelf is fixed, we can remove the code under #ifdef BROKEN_LIBELF. Sponsored by: The FreeBSD Foundation
* Use double quotes when checking the value of MACHINE_ARCH.rpaulo2010-08-211-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* The DTrace instrumentation object is going to be i386/amd64 only.rpaulo2010-08-211-1/+2
| | | | Sponsored by: The FreeBSD Foundation
* Port most of the DTrace tests to FreeBSD.rpaulo2010-08-2183-93/+171
| | | | Sponsored by: The FreeBSD Foundation
* Add man pages for the CTF tools.rpaulo2010-08-116-3/+288
| | | | Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud