aboutsummaryrefslogtreecommitdiff
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* Fix error in r247960: actually assign the basename to match.iim_file.Dimitry Andric2013-03-071-2/+1
| | | | | | | | | | Pointed out by: avg Pointy hat to: dim MFC after: 1 week X-MFC-With: r247960 Notes: svn path=/head/; revision=247962
* Make ctfconvert work correctly on clang-compiled object files. ClangDimitry Andric2013-03-071-0/+3
| | | | | | | | | | | | | | | | puts the full original source filename in the STT_FILE entry of the ELF symbol table, while gcc saves only the basename. Since the DWARF DW_AT_name attribute contains the full source filename, both for clang and gcc, ctfconvert takes just the basename of it, for matching with the STT_FILE entry. So when attempting to match with such an entry, use its basename, if necessary. Reported by: avg MFC after: 1 week Notes: svn path=/head/; revision=247960
* MFV r247845:Martin Matuska2013-03-051-17/+53
| | | | | | | | | | | | | | | | | Import ZFS bpobj bugfix from vendor. Illumos ZFS issues: 3603 panic from bpobj_enqueue_subobj() 3604 zdb should print bpobjs more verbosely References: https://www.illumos.org/issues/3603 https://www.illumos.org/issues/3604 MFC after: 1 week Notes: svn path=/head/; revision=247852
* MFV r247316:Martin Matuska2013-03-011-0/+33
| | | | | | | | | | | | | | | | Merge new read-only zfs properties from vendor (illumos) Illumos ZFS issues: 3588 provide zfs properties for logical (uncompressed) space used and referenced References: https://www.illumos.org/issues/3588 MFC after: 2 weeks Notes: svn path=/head/; revision=247585
* Fix the zfs_ioctl compat layer to support zfs_cmd size change introducedMartin Matuska2013-03-011-9/+26
| | | | | | | | | | | | | | | | | | in r247265 (ZFS deadman thread). Both new utilities now support the old kernel and new kernel properly detects old utilities. For future backwards compatibility, the vfs.zfs.version.ioctl read-only sysctl has been introduced. With this sysctl zfs utilities will be able to detect the ioctl interface version of the currently loaded zfs module. As a side effect, the zfs utilities between r247265 and this revision don't support the old kernel module. If you are using HEAD newer or equal than r247265, install the new kernel module (or whole kernel) first. MFC after: 10 days Notes: svn path=/head/; revision=247540
* MFV 247176, 247178, 247315:Martin Matuska2013-02-271-6/+6
| | | | | | | | | | | | | | | | | | | | | | Import metaslab_sync() speedup from vendor (illumos). Illumos ZFS issues: 3552 condensing one space map burns 3 seconds of CPU in spa_sync() thread 3564 spa_sync() spends 5-10% of its time in metaslab_sync() (when not condensing) 3578 transferring the freed map to the defer map should be constant time 3579 ztest trips assertion in metaslab_weight() References: https://www.illumos.org/issues/3552 https://www.illumos.org/issues/3564 https://www.illumos.org/issues/3578 https://www.illumos.org/issues/3579 MFC after: 2 weeks Notes: svn path=/head/; revision=247398
* MFV v242732:Martin Matuska2013-02-254-9/+100
| | | | | | | | | | | | | | | | | | | | | | | | Merge the ZFS I/O deadman thread from vendor (illumos). This feature panics the system on hanging ZFS I/O, helps debugging and resumes failed service. The panic behavior can be controlled with the loader-only tunables: vfs.zfs.deadman_enabled (enable or disable panic on stalled ZFS I/O) vfs.zfs.deadman_synctime (expiration time for stalled ZFS I/O) By default, ZFS I/O deadman is enabled by default on amd64 and i386 excluding virtual guest machines. Illumos ZFS issues: 3246 ZFS I/O deadman thread References: https://www.illumos.org/issues/3246 MFC after: 2 weeks Notes: svn path=/head/; revision=247265
* Orphaned processes that are being traced are killed by theJustin T. Gibbs2013-02-201-0/+7
| | | | | | | | | | | | | | | | | | | | kernel. Properly restore, continue, and detach from processes being DTraced when DTrace exits with an error so the program being inspected is not terminated. cddl/contrib/opensolaris/cmd/dtrace/dtrace.c: In fatal(), the generic error handler, close the DTrace handle as is done in the "probe/script" error handler dfatal(). fatal() can be invoked after DTrace attaches to processes (e.g. a script specified by command line argument can't be found) and closing the handle will release them. Submitted by: Spectra Logic Corporation Reviewed by: rpaulo, gnn Notes: svn path=/head/; revision=247048
* Use the right year.Xin LI2013-02-112-2/+2
| | | | | | | Noticed by: Denis Ahrens <denis h3q com> Notes: svn path=/head/; revision=246684
* MFV r246392:Martin Matuska2013-02-111-4/+3
| | | | | | | | | | | | | | | Import vendor ZFS bugfix fixing a possible deadlock in arc_read(). Illumos ZFS issues: 3498 panic in arc_read(): !refcount_is_zero(&pbuf->b_hdr->b_refcnt) References: https://www.illumos.org/issues/3498 MFC after: 2 weeks Notes: svn path=/head/; revision=246666
* MFV r246388:Martin Matuska2013-02-101-7/+1
| | | | | | | | | | | | | | | | | Import vendor bugfixes Illumos ZFS issues: 3422 zpool create/syseventd race yield non-importable pool 3425 first write to a new zvol can fail with EFBIG References: https://www.illumos.org/issues/3422 https://www.illumos.org/issues/3425 MFC after: 2 weeks Notes: svn path=/head/; revision=246631
* Backport vendor changes in zfs(8) manual page (MFV r246389)Martin Matuska2013-02-101-122/+129
| | | | | | | | | | | | | Illumos ZFS issues: 3380 zfs man page: documentation for zfs allow is confusing References: https://www.illumos.org/issues/3380 MFC after: 2 weeks Notes: svn path=/head/; revision=246624
* Correct spelling of "daemon". No .Dd bump.Gavin Atkinson2013-02-101-1/+1
| | | | | | | | Noticed by: Nathan Rich <Nathan.Rich dynastysystems com> MFC after: 3 days Notes: svn path=/head/; revision=246619
* mdoc: Remove EOL whitespace.Joel Dahl2013-02-091-3/+3
| | | | Notes: svn path=/head/; revision=246587
* MFV r245512:Xin LI2013-02-092-3/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Illumos zfs issue #3035 [1] LZ4 compression support in ZFS. LZ4 is a new high-speed BSD-licensed compression algorithm created by Yann Collet that delivers very high compression and decompression performance compared to lzjb (>50% faster on compression, >80% faster on decompression and around 3x faster on compression of incompressible data), while giving better compression ratio [1]. This version of LZ4 corresponds to upstream's [2] revision 85. Please note that for obvious reasons this is not backward read compatible. This means once a pool have LZ4 compressed data, these data can no longer be read by older ZFS implementations. Local changes: - On-stack hash table disabled and using kernel slab allocator instead, at this time. This requires larger kernel thread stack for zio workers. This may change in the future should we adjusted the zio workers' thread stack size. - likely and unlikely will be undefined if they are already defined, this is required for i386 XEN build. - Removed De Bruijn sequence based __builtin_ctz family of builtins in favor of the latter. Both GCC and clang supports these builtins. - Changed the way the LZ4 code detects endianness. - Manual pages modifications to mention the feature based on Illumos counterpart. - Boot loader changes to make it support LZ4 decompression. [1] https://www.illumos.org/issues/3035 [2] http://code.google.com/p/lz4/source/list Obtained from: Illumos (13921:9d721847e469) Tested on: FreeBSD/amd64 MFC after: 1 month Notes: svn path=/head/; revision=246586
* Add a new LIBRARIES_ONLY make variable to disable the build and installBrooks Davis2013-01-171-1/+1
| | | | | | | | | | | | | of files other than the actual libraries. Use LIBRARIES_ONLY to supress the inclusion of files in the lib32 distribution that are duplicates of files in base. Sponsored by: DARPA, AFRL Reviewed by: emaste Notes: svn path=/head/; revision=245561
* Reports pools which have a removed l2cache disk under -x as this is whatSteven Hartland2013-01-151-0/+10
| | | | | | | | | | | happens when a cache device is dropped for any reason. Reviewed by: pjd Approved by: pjd (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=245479
* The current ZFS code expects ddt_zap_count to always succeed by assertingXin LI2013-01-101-1/+3
| | | | | | | | | | | | | | | | | the underlying zap_count() to return no errors. However, it is possible that the pool reaches to such a state where zap_count would return error, leading to panics when a pool is imported. This commit changes the ddt_zap_count to return error returned from zap_count and handle the error appropriately. With this change, it's now possible to let zpool rollback damaged transaction groups and import the pool. Obtained from: ZFS on Linux github (e8fd45a0f975c6b8ae8cd644714fc21f14fac2bf) MFC after: 1 month Notes: svn path=/head/; revision=245264
* Allow to create pool even if mount point directory is not empty if -f is given.Pawel Jakub Dawidek2012-12-301-2/+3
| | | | | | | Obtained from: WHEEL Systems Notes: svn path=/head/; revision=244857
* MFV r244245:Martin Matuska2012-12-151-9/+17
| | | | | | | | | | | | | | | | | Merge two zdb bugfixes from vendor (illumos) illumos-gate 13894:f4af77f6bbd2 3397 zdb <pool> <objnum> output is too verbose 3398 zdb can't dump feature flags zap objects References: https://www.illumos.org/issues/3397 https://www.illumos.org/issues/3398 MFC after: 1 week Notes: svn path=/head/; revision=244246
* Fixes zfs receive errors caused by snapshot replication being processed in aSteven Hartland2012-12-131-2/+29
| | | | | | | | | | | | | | | | random order instead of creation order. Eliminates needless filesystem renames caused by removed parent snapshots which subsequently causes many more errors. PR: kern/172259 Submitted by: Steven Hartland Reviewed by: pjd (mentor) Approved by: pjd (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=244194
* Update manpage dates in zfs.8 and zpool.8Martin Matuska2012-11-262-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=243561
* MFV r243395:Martin Matuska2012-11-261-1/+27
| | | | | | | | | | | | | | | | Introduce a new dataset aclmode setting "restricted" to protect ACL's being destroyed or corrupted by a drive-by chmod. illumos-gate 13889:a67716f16746 3254 add support in zfs for aclmode=restricted References: https://www.illumos.org/issues/3254 MFC after: 2 weeks Notes: svn path=/head/; revision=243560
* MFV r243013 and r243267:Martin Matuska2012-11-251-5/+42
| | | | | | | | | | | | | | | | | | | | | Import the zio nop-write improvement from Illumos. To reduce I/O, nop-write omits overwriting data if the checksum (cryptographically secure) of new data matches the checksum of existing data. It also saves space if snapshots are in use. It currently works only on datasets with enabled compression, disabled deduplication and sha256 checksums. IllumOS 13887:196932ec9e6a and 13888:7204b3392a58 3236 zio nop-write References: https://www.illumos.org/issues/3236 MFC after: 2 weeks Notes: svn path=/head/; revision=243524
* zfs sha256 checksum is missing in zfs.8 manpageMartin Matuska2012-11-251-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=243506
* MFV r243012:Martin Matuska2012-11-251-21/+119
| | | | | | | | | | | | | | | Illumos 13886:e3261d03efbf 3349 zpool upgrade -V bumps the on disk version number, but leaves the in core version References: https://www.illumos.org/issues/3349 MFC after: 1 week Notes: svn path=/head/; revision=243505
* Sort SEE ALSO xrefs by the manual section number and add a missing comma.Sergey Kandaurov2012-11-151-1/+1
| | | | Notes: svn path=/head/; revision=243102
* Move zpool-features manual page from section 5 to section 7Martin Matuska2012-11-144-11/+11
| | | | | | | | | | and fix references Reported by: pluknet MFC after: 1 week Notes: svn path=/head/; revision=243014
* Fix an apparent typo in the manual section number in .Dt: it should be 5.Sergey Kandaurov2012-11-131-1/+1
| | | | Notes: svn path=/head/; revision=243002
* MFV r242729 (mm):Xin LI2012-11-101-46/+66
| | | | | | | | | | | | | | Illumos r13840:97fd5cdf328a: 3145 single-copy arc 3212 ztest: race condition between vdev_online() and spa_vdev_remove() Illumos r13849:3468a95b27cd: 3258 ztest's use of file descriptors is unstable Notes: svn path=/head/; revision=242845
* Implement DTrace for PowerPC. This includes both 32-bit and 64-bit.Justin Hibbits2012-11-074-1/+87
| | | | | | | | | | | | | | There is one known issue: Some probes will display an error message along the lines of: "Invalid address (0)" I tested this with both a simple dtrace probe and dtruss on a few different binaries on 32-bit. I only compiled 64-bit, did not run it, but I don't expect problems without the modules loaded. Volunteers are welcome. MFC after: 1 month Notes: svn path=/head/; revision=242723
* Remove the support for using non-mpsafe filesystem modules.Konstantin Belousov2012-10-221-8/+0
| | | | | | | | | | | | | | | In particular, do not lock Giant conditionally when calling into the filesystem module, remove the VFS_LOCK_GIANT() and related macros. Stop handling buffers belonging to non-mpsafe filesystems. The VFS_VERSION is bumped to indicate the interface change which does not result in the interface signatures changes. Conducted and reviewed by: attilio Tested by: pho Notes: svn path=/head/; revision=241896
* Add missing initialization for do_prefix.Martin Matuska2012-10-171-1/+1
| | | | | | | | | | | | | | | | Corrects porting error in r238391 Vendor issue and changeset reference: 2883 changing "canmount" property to "on" should not always remount dataset https://www.illumos.org/issues/2883 Changeset 13743:95aba6e49b9f Reported by: Guido Falsi <mad@madpilot.net>, avg Obtained from: illumos (issue #2883) MFC after: 1 week Notes: svn path=/head/; revision=241655
* Make sure that each va_start has one and only one matching va_end,Kevin Lo2012-09-282-0/+3
| | | | | | | especially in error cases. Notes: svn path=/head/; revision=241021
* Merge recent vendor changes in ZFS.Martin Matuska2012-09-262-10/+3
| | | | | | | | | | | | | | | | | Illumos issued covered: 2811 missing implementation: zfs send -r 3139 zdb dies when it tries to determine path of unlinked file 3189 kernel panic in ZFS test suite during hotspare_onoffline_004_neg 3208 moving zpool cross-endian results in incorrect user/group accounting References: https://www.illumos.org/issues/ + [issue_id] Obtained from: illumos (vendor/illumos, vendor/illumos-sys) MFC after: 2 weeks Notes: svn path=/head/; revision=240955
* It is possible to recursively destroy snapshots even if the snapshotPawel Jakub Dawidek2012-09-233-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | doesn't exist on a dataset we are starting from. For example if we have the following configuration: tank tank/foo tank/foo@snap tank/bar tank/bar@snap We can execute: # zfs destroy -t tank@snap eventhough tank@snap doesn't exit. Unfortunately it is not possible to do the same with recursive rename: # zfs rename -r tank@snap tank@pans cannot open 'tank@snap': dataset does not exist ...until now. This change allows to recursively rename snapshots even if snapshot doesn't exist on the starting dataset. Sponsored by: rsync.net MFC after: 2 weeks Notes: svn path=/head/; revision=240870
* Add TRIM support.Pawel Jakub Dawidek2012-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The code builds a map of regions that were freed. On every write the code consults the map and eventually removes ranges that were freed before, but are now overwritten. Freed blocks are not TRIMed immediately. There is a tunable that defines how many txg we should wait with TRIMming freed blocks (64 by default). There is a low priority thread that TRIMs ranges when the time comes. During TRIM we keep in-flight ranges on a list to detect colliding writes - we have to delay writes that collide with in-flight TRIMs in case something will be reordered and write will reached the disk before the TRIM. We don't have to do the same for in-flight writes, as colliding writes just remove ranges to TRIM. Sponsored by: multiplay.co.uk This work includes some important fixes and some improvements obtained from the zfsonlinux project, including TRIMming entire vdevs on pool create/add/attach and on pool import for spare and cache vdevs. Obtained from: zfsonlinux Submitted by: Etienne Dechamps <etienne.dechamps@ovh.net> Notes: svn path=/head/; revision=240868
* Update usage to show the possiblity to use jail nameBaptiste Daroussin2012-09-191-2/+2
| | | | | | | | Reported by: bdrewery MFC after: 1 month Notes: svn path=/head/; revision=240698
* Allow zfs jail and zfs unjail to use both jailnames and jailidBaptiste Daroussin2012-09-193-7/+7
| | | | | | | | Reviewed by: pjd MFC after: 1 month Notes: svn path=/head/; revision=240696
* Merge recent zfs vendor changes, sync code and adjust userland DEBUG.Martin Matuska2012-09-1211-486/+427
| | | | | | | | | | | | | | | | | | | | | | | | Illumos issued covered: 1884 Empty "used" field for zfs *space commands 3006 VERIFY[S,U,P] and ASSERT[S,U,P] frequently check if first argument is zero 3028 zfs {group,user}space -n prints (null) instead of numeric GID/UID 3048 zfs {user,group}space [-s|-S] is broken 3049 zfs {user,group}space -t doesn't really filter the results 3060 zfs {user,group}space -H output isn't tab-delimited 3061 zfs {user,group}space -o doesn't use specified fields order 3064 usr/src/cmd/zpool/zpool_main.c misspells "successful" 3093 zfs {user,group}space's -i is noop 3098 zfs userspace/groupspace fail without saying why when run as non-root References: https://www.illumos.org/issues/ + [issue_id] Obtained from: illumos (vendor/illumos, vendor/illumos-sys) MFC after: 2 weeks Notes: svn path=/head/; revision=240415
* Remove trailing whitespace.Joel Dahl2012-09-061-1/+1
| | | | Notes: svn path=/head/; revision=240175
* Typo fix and minor word swap.Glen Barber2012-09-051-3/+4
| | | | | | | | | PR: 171356 Submitted by: bdrewery MFC After: 3 days Notes: svn path=/head/; revision=240153
* Merge recent vendor changes and sync code:Martin Matuska2012-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | 1862 incremental zfs receive fails for sparse file > 8PB 3112 ztest does not honor ZFS_DEBUG 3122 zfs destroy filesystem should prefetch blocks 3129 'zpool reopen' restarts resilvers 3130 ztest failure: Assertion failed: 0 == dmu_objset_destroy(name, B_FALSE) (0x0 == 0x10) References: https://www.illumos.org/issues/1862 https://www.illumos.org/issues/3112 https://www.illumos.org/issues/3122 https://www.illumos.org/issues/3129 https://www.illumos.org/issues/3130 Obtained from: illumos (vendor/illumos, vendor/illumos-sys) MFC after: 2 weeks Notes: svn path=/head/; revision=240133
* Add myself to copyright sections, per CDDL license.Glen Barber2012-09-032-0/+2
| | | | | | | Requested by: mm Notes: svn path=/head/; revision=240063
* Finish porting execsnoop to FreeBSD. This includes replacing the zonenameRui Paulo2012-09-012-26/+21
| | | | | | | with a jail ID and removing the project ID from the list of options. Notes: svn path=/head/; revision=239972
* Remove trailing whitespace.Joel Dahl2012-09-013-5/+5
| | | | Notes: svn path=/head/; revision=239969
* Remove trailing whitespace.Joel Dahl2012-09-013-10/+10
| | | | Notes: svn path=/head/; revision=239968
* Mdoc fixes.Joel Dahl2012-09-011-22/+19
| | | | Notes: svn path=/head/; revision=239967
* Minor mdoc fixes.Joel Dahl2012-08-311-3/+3
| | | | Notes: svn path=/head/; revision=239958
* Mdoc fixes.Joel Dahl2012-08-312-15/+16
| | | | Notes: svn path=/head/; revision=239953