aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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-192-5/+5
| | | | | | | | 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-127-486/+415
| | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* 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
* Merge recent vendor changes:Martin Matuska2012-08-283-9/+30
| | | | | | | | | | | | | | | | | 3100 zvol rename fails with EBUSY when dirty 3104 eliminate empty bpobjs 3120 zinject hangs in zfsdev_ioctl() due to uninitialized zc References: https://www.illumos.org/issues/3100 https://www.illumos.org/issues/3104 https://www.illumos.org/issues/3120 Obtained from: illumos (vendor/illumos, vendor/illumos-sys) MFC after: 2 weeks Notes: svn path=/head/; revision=239774
* Add missing parts to zpool-features.5 manual pageMartin Matuska2012-08-271-2/+10
| | | | | | | | Obtained from: vendor/illumos/dist MFC after: 2 weeks Notes: svn path=/head/; revision=239749
* Merge recent vendor changes:Martin Matuska2012-08-232-48/+63
| | | | | | | | | | | | | | | | | | 3086 unnecessarily setting DS_FLAG_INCONSISTENT on async destroyed datasets 3090 vdev_reopen() during reguid causes vdev to be treated as corrupt 3102 vdev_uberblock_load() and vdev_validate() may read the wrong label Referenes: https://www.illumos.org/issues/3086 https://www.illumos.org/issues/3090 https://www.illumos.org/issues/3102 PR: kern/170912, kern/170914 Obtained from: illumos (changeset #13776, #13777) MFC after: 2 weeks Notes: svn path=/head/; revision=239620
* Update zfs(8) manpage with illumos version of "zfs diff"Martin Matuska2012-08-191-26/+44
| | | | | | | | | | | | | | | Illumos issue: 2399 zfs manual page does not document use of "zfs diff" References: https://www.illumos.org/issues/2399 PR: docs/170764 Obtained from: ssh://anonhg@hg.illumos.org/illumos-gate MFC after: 1 week Notes: svn path=/head/; revision=239394
* - Fix source dataset snapshot name in Example 15.Glen Barber2012-08-121-4/+4
| | | | | | | | | | - Bump date. MFC after: 3 days X-MFC-With: r239216 Notes: svn path=/head/; revision=239217
* Remove a leading space that breaks rendering.Glen Barber2012-08-121-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=239216
* When we return with an error we cannot unlock the mutex, becauseGeorge V. Neville-Neil2012-08-011-1/+2
| | | | | | | | | | it's been freed. Protect against that, hopefully unlikely, case. Reviewed by: rpaulo MFC after: 2 weeks Notes: svn path=/head/; revision=238979
* Fix wrong indent according to style(9)Martin Matuska2012-07-311-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=238951
* Fix reporting of root pool upgrade notice.Martin Matuska2012-07-311-19/+19
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=238950
* Partial MFV (illumos-gate 13753:2aba784c276b)Martin Matuska2012-07-304-104/+390
| | | | | | | | | | | | 2762 zpool command should have better support for feature flags References: https://www.illumos.org/issues/2762 MFC after: 2 weeks Notes: svn path=/head/; revision=238926
* Revert previous commit. The bug was actually caused by an issueGeorge V. Neville-Neil2012-07-251-3/+1
| | | | | | | | | | in pre 1.8.5 versions of sudo which were sending too many SIGINTs to processes when the user hit Ctrl-C. Pointed out by: avg@, rpaulo@, sbruno@ Notes: svn path=/head/; revision=238776
* Fix a bug in interrupt handling so that we're only consideredGeorge V. Neville-Neil2012-07-241-1/+3
| | | | | | | | | | | impatient if we sent more than 2 INT signals. This fixes a bug where we wouldn't see aggregations print on the command line if we Ctrl-C'd a dtrace script or command line invocation. MFC after: 2 weeks Notes: svn path=/head/; revision=238743
* Dtrace: improve handling of library paths.Pedro F. Giffuni2012-07-174-22/+254
| | | | | | | | | | | | | | | | | | | | | | | | Merge changes from illumos 906 dtrace depends_on pragma should search all library paths, not just the current one 949 dtrace should only include the first instance of a library found on its library path Illumos Revisions: 13353:936a1e45726c 13354:2b2c36a81512 Reference: https://www.illumos.org/issues/906 https://www.illumos.org/issues/949 Tested by: Fabian Keil Obtained from: Illumos MFC after: 3 weeks Notes: svn path=/head/; revision=238558
* Use libc's strndup() instead of Dtrace's reimplementation.Pedro F. Giffuni2012-07-152-24/+3
| | | | | | | | | | | Corresponds partially to OpenSolaris change: PSARC 2010/299 GNU/Linux/BSD compatibility functions 6901783 strndup would be nice MFC after: 2 weeks Notes: svn path=/head/; revision=238509
* Merge illumos commit 13455:7205f7794835Pedro F. Giffuni2012-07-142-1/+38
| | | | | | | | | | | | | 1458 D compiler fails to generate error on sizeof() an undefined struct Reference: https://www.illumos.org/issues/1458 Tested by: Fabian Keil MFC after: 3 weeks Notes: svn path=/head/; revision=238457
* Merge illumos commit 13749:df4cd82e2b60Martin Matuska2012-07-134-11/+66
| | | | | | | | | | | | | | | | | | 1796 "ZFS HOLD" should not be used when doing "ZFS SEND" froma read-only pool 2871 support for __ZFS_POOL_RESTRICT used by ZFS test suite 2903 zfs destroy -d does not work 2957 zfs destroy -R/r sometimes fails when removing defer-destroyed snapshot References: https://www.illumos.org/issues/1796 https://www.illumos.org/issues/2871 https://www.illumos.org/issues/2903 https://www.illumos.org/issues/2957 MFC after: 1 week Notes: svn path=/head/; revision=238422
* Change behavior introduced in r237119 to vendor solutionMartin Matuska2012-07-121-7/+10
| | | | | | | | | | | | References: https://www.illumos.org/issues/2883 PR: 167905 Obtained from: illumos (issue #2883) MFC after: 2 weeks Notes: svn path=/head/; revision=238391
* Fix clang warning, introduced in the recent dtrace import.Dimitry Andric2012-07-031-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238071
* Safer fix for building with Clang.Pedro F. Giffuni2012-06-281-1/+1
| | | | | | | | | | error: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') Reported by: Ed Maste Notes: svn path=/head/; revision=237716
* Fix build with Clang.Pedro F. Giffuni2012-06-281-1/+1
| | | | | | | | | | error: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') Reported by: Ed Maste Notes: svn path=/head/; revision=237714
* Bring llquantize support into Dtrace.Pedro F. Giffuni2012-06-2742-5/+3788
| | | | | | | | | | | | | | | | | | | | | Bryan Cantrill implemented the equivalent of semi-log graph paper for Dtrace so llquantize will use one logarithmic and one linear scale. Special thanks to Mark Peek for providing fix to an assertion and to Fabian Keill for testing the port. Illumos Revision: 13355:15b74a2a9a9d Reference: https://www.illumos/issues/905 Obtained from: Illumos Tested by: Fabian Keill, mp MFC after: 4 days Notes: svn path=/head/; revision=237624
* Do not remount ZFS dataset if changing canmount property to "on" andMartin Matuska2012-06-151-1/+3
| | | | | | | | | | | dataset is already mounted. PR: 167905 Submitted by: Bryan Drewery <bryan@shatow.net> MFC after: 1 week Notes: svn path=/head/; revision=237119
* Document the -v flag for zpool list.Martin Matuska2012-06-122-1/+3
| | | | | | | | | PR: 168970 Suggested by: Marcelo Araujo <araujo@FreeBSD.org> MFC after: 3 days Notes: svn path=/head/; revision=236960
* Introduce "feature flags" for ZFS pools (bump SPA version to 5000).Martin Matuska2012-06-1113-63/+1347
| | | | | | | | | | | | | | | | | | | | | | Add first feature "com.delphix:async_destroy" (asynchronous destroy of ZFS datasets). Implement features support in ZFS boot code. Illumos revisions merged: 13700:2889e2596bd6 13701:1949b688d5fb 2619 asynchronous destruction of ZFS file systems 2747 SPA versioning with zfs feature flags References: https://www.illumos.org/issues/2619 https://www.illumos.org/issues/2747 Obtained from: illumos (issue #2619, #2747) MFC after: 1 month Notes: svn path=/head/; revision=236884
* Clean up trailing whitespace.Glen Barber2012-06-091-21/+21
| | | | | | | | MFC after: 3 days X-MFC-With: r236776 Notes: svn path=/head/; revision=236777
* Fix a typo: s/deafult/defaultGlen Barber2012-06-091-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=236776
* Import Illumos revision 13715:351036203e4bMartin Matuska2012-06-071-0/+12
| | | | | | | | | | | | | 2803 zfs get guid pretty-prints the output References: https://www.illumos.org/issues/2803 Obtained from: illumos (issue #2803) MFC after: 3 days Notes: svn path=/head/; revision=236705
* Import illumos changeset 13570:3411fd5f1589Martin Matuska2012-05-274-40/+242
| | | | | | | | | | | | | | | | | | 1948 zpool list should show more detailed pool information Display per-vdev information with "zpool list -v". The added expandsize property has currently no value on FreeBSD. This changeset allows adding expansion support to individual vdevs in the future. References: https://www.illumos.org/issues/1948 Obtained from: illumos (issue #1948) MFC after: 2 weeks Notes: svn path=/head/; revision=236155
* Import illumos changeset 13605:b5c2b5db80d6 (partial)Martin Matuska2012-05-271-3/+3
| | | | | | | | | | | | | | | 763 FMD msg URLs should refer to something visible Replace sun.com URL's with illumos.org References: https://www.illumos.org/issues/763 Obtained from: illumos (issue #763) MFC after: 1 week Notes: svn path=/head/; revision=236146
* Import illumos changeset 13564:cf89c0c60496Martin Matuska2012-05-271-1/+3
| | | | | | | | | | | | | | 1946 incorrect formatting when listing output of multiple pools with zpool iostat -v References: https://www.illumos.org/issues/1946 Obtained from: illumos (issue #1946) MFC after: 1 week Notes: svn path=/head/; revision=236145
* Import illumos changeset 13571:a5771a96228cMartin Matuska2012-05-271-380/+706
| | | | | | | | | | | | | 1950 ztest backwards compatibility testing option References: https://www.illumos.org/issues/1950 Obtained from: illumos (issue #1950) MFC after: 2 weeks Notes: svn path=/head/; revision=236143
* Correct error message.Pawel Jakub Dawidek2012-05-251-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=236013
* zpool_find_import_impl: another /dev/dsk -> /dev fixAndriy Gapon2012-05-151-1/+1
| | | | | | | | | | | This seems to fix zdb -e behavior. PR: bin/155104 Submitted by: swell.k@gmail.com MFC after: 2 weeks Notes: svn path=/head/; revision=235479
* zpool_do_import: use /dev instead of /dev/dsk as a defaultAndriy Gapon2012-05-151-1/+1
| | | | | | | | | | | This affects behavior of zpool import without -d option. Reported by: Bruce Cran <bruce@cran.org.uk> Submitted by: Fabian Keil <freebsd-listen@fabiankeil.de> MFC after: 2 weeks Notes: svn path=/head/; revision=235478
* Import illumos changeset 13686:4bc0783f6064Martin Matuska2012-05-105-3/+92
| | | | | | | | | | | | | | | | 2703 add mechanism to report ZFS send progress If the zfs send command is used with the -v flag, the amount of bytes transmitted is reported in per second updates. References: https://www.illumos.org/issues/2703 Obtained from: illumos (issue #2703) MFC after: 2 weeks Notes: svn path=/head/; revision=235222