summaryrefslogtreecommitdiffstats
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* Remove assertion that prevents zfs rename of datasets with mountpoint=nonemm2011-09-281-1/+0
| | | | | | | | | | | or mountpoint=legacy that have children datasets. This also fixes dataset rename when receiving incremental snapshots as reported on freebsd-fs@ This assertion was made triggerable by opensolaris change #10196. PR: bin/160400 Reviewed by: pjd MFC after: 1 week
* Fix serious bug in ZIL that can lead to pool corruptionmm2011-07-301-0/+35
| | | | | | | | | | | | | | in the case of a held dataset during remount. Detailed description is available at: https://www.illumos.org/issues/883 illumos-gate revision: 13380:161b964a0e10 Reviewed by: pjd Approved by: re (kib) Obtained from: Illumos (Bug #883) MFC after: 3 days
* Fix wrong initialization of "cmd" for calling the jail/unjail ioctl.mm2011-07-301-1/+2
| | | | | | Reviewed by: pjd@, delphij@ Approved by: re (kib) MFC after: 3 days
* ZFS tries to allocate blocks evenly across all devices. This means whenmm2011-07-181-0/+2
| | | | | | | | | | | | | devices are imbalanced zfs will lots of CPU searching for space on devices which tend to be pretty full. It should instead fail quickly on the full devices and move onto devices which have more availability. New loader tunable: vfs.zfs.mg_alloc_failures (min = 8) Illumos-gate changeset: 13379:4df42cc92254 Obtained from: Illumos (Bug #1051) MFC after: 2 weeks
* Resurrect the ZFS "aclmode" propertymm2011-07-181-2/+3
| | | | | | | | | Change default of "aclmode" to "discard". Illumos-gate changeset: 13370:8c04143bd318 Obtained from: Illumos (Feature #742) MFC after: 2 weeks
* cddl/contrib/opensolaris/cmd/zpool/zpool_main.c:gibbs2011-07-183-2/+154
| | | | | | | | | | cddl/contrib/opensolaris/cmd/zpool/zpool.8: cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c: Add the "zpool labelclear" command. This command can be used to wipe the label data from a drive that is not active in a pool. The optional "-f" argument can be used to treat an exported or foreign vdev as "inactive" thus allowing its label information to be cleared.
* Correct reporting of missing leaf vdevs so that the GUID required togibbs2011-07-182-8/+18
| | | | | | | | | | | | | | | | | perform pool actions is always displayed. cddl/contrib/opensolaris/cmd/zpool/zpool_main.c: The "zpool status" command reports the "last seen at" device node path when the vdev name is being reported by GUID. Augment this code to assume a GUID is reported when a device goes missing after initial boot in addition to the previous behavior of doing this for devices that aren't seen at boot. cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c: In zpool_vdev_name(), report recently missing devices by GUID. There is no guarantee they will return at their previous location.
* cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h:gibbs2011-07-183-5/+34
| | | | | | | | | | cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c: o Add zpool_pool_state_to_name() API to libzfs which converts a pool_state_t into a user consumable string. o While here, correct constness of make zpool_state_to_name() and zpool_label_disk(). MFD after: 1 week
* Add a new "REFCOMPRESSRATIO" property.mm2011-06-282-2/+16
| | | | | | | | | | | | | | For snapshots, this is the same as COMPRESSRATIO, but for filesystems/volumes, the COMPRESSRATIO is based on the data "USED" (ie, includes blocks in children, but not blocks shared with the origin). This is needed to figure out how much space a filesystem would use if it were not compressed (ignoring snapshots). Illumos-gate revision: 13387 Obtained from: Illumos (Feature #1092) MFC after: 2 weeks
* Allow mountpoints as arguments for the 'zfs get' command.mm2011-06-281-2/+2
| | | | | | | Illumos-gate revision: 13295 Obtained from: Illumos (Feature #510) MFC after: 1 week
* 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
OpenPOWER on IntegriCloud