Glen Barber
e5561269e1
- Fix source dataset snapshot name in Example 15.
...
- Bump date.
MFC after: 3 days
X-MFC-With: r239216
2012-08-12 20:30:15 +00:00
Glen Barber
c980404ee4
Remove a leading space that breaks rendering.
...
MFC after: 3 days
2012-08-12 20:23:59 +00:00
George V. Neville-Neil
26d121f5df
When we return with an error we cannot unlock the mutex, because
...
it's been freed. Protect against that, hopefully unlikely, case.
Reviewed by: rpaulo
MFC after: 2 weeks
2012-08-01 19:27:12 +00:00
Martin Matuska
68f76b5452
Fix wrong indent according to style(9)
...
MFC after: 2 weeks
2012-07-31 17:32:28 +00:00
Martin Matuska
f45b531d72
Fix reporting of root pool upgrade notice.
...
MFC after: 2 weeks
2012-07-31 17:28:28 +00:00
Martin Matuska
e9832bb1da
Partial MFV (illumos-gate 13753:2aba784c276b)
...
2762 zpool command should have better support for feature flags
References:
https://www.illumos.org/issues/2762
MFC after: 2 weeks
2012-07-30 23:14:24 +00:00
George V. Neville-Neil
96b3267700
Revert previous commit. The bug was actually caused by an issue
...
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@
2012-07-25 17:49:01 +00:00
George V. Neville-Neil
d83f1ab98e
Fix a bug in interrupt handling so that we're only considered
...
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
2012-07-24 18:01:28 +00:00
Pedro F. Giffuni
694a0093a7
Dtrace: improve handling of library paths.
...
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
2012-07-17 19:57:34 +00:00
Pedro F. Giffuni
ba73774268
Use libc's strndup() instead of Dtrace's reimplementation.
...
Corresponds partially to OpenSolaris change:
PSARC 2010/299 GNU/Linux/BSD compatibility functions
6901783 strndup would be nice
MFC after: 2 weeks
2012-07-15 21:20:31 +00:00
Pedro F. Giffuni
b99795d637
Merge illumos commit 13455:7205f7794835
...
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
2012-07-14 20:24:00 +00:00
Martin Matuska
bc06fa9281
Merge illumos commit 13749:df4cd82e2b60
...
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
2012-07-13 12:37:34 +00:00
Martin Matuska
04cb23e3b1
Change behavior introduced in r237119 to vendor solution
...
References:
https://www.illumos.org/issues/2883
PR: 167905
Obtained from: illumos (issue #2883 )
MFC after: 2 weeks
2012-07-12 06:29:54 +00:00
George V. Neville-Neil
3fac94ba94
Initial commit of an I/O provider for DTrace on FreeBSD.
...
These probes are most useful when looking into the structures
they provide, which are listed in io.d. For example:
dtrace -n 'io:genunix::start { printf("%d\n", args[0]->bio_bcount); }'
Note that the I/O systems in FreeBSD and Solaris/Illumos are sufficiently
different that there is not a 1:1 mapping from scripts that work
with one to the other.
MFC after: 1 month
2012-07-11 16:27:02 +00:00
Ed Maste
24d2e21d9b
Restore r211786 by rpaulo:
...
Port dtruss to FreeBSD.
Sponsored by: The FreeBSD Foundation
It appears the change was reverted by r235380.
2012-07-05 00:52:23 +00:00
Pawel Jakub Dawidek
a905af7e2d
Fix an obvious typo.
...
MFC after: 3 days
2012-07-04 17:36:26 +00:00
Dimitry Andric
ae88a6d9ac
Fix clang warning, introduced in the recent dtrace import.
...
MFC after: 3 days
2012-07-03 12:08:55 +00:00
Pedro F. Giffuni
fed980b201
Safer fix for building with Clang.
...
error: format specifies type 'long long' but the argument
has type 'int64_t' (aka 'long')
Reported by: Ed Maste
2012-06-28 16:44:29 +00:00
Pedro F. Giffuni
db0cb5be21
Fix build with Clang.
...
error: format specifies type 'long long' but the argument
has type 'int64_t' (aka 'long')
Reported by: Ed Maste
2012-06-28 15:38:14 +00:00
Pedro F. Giffuni
675cf9154b
Bring llquantize support into Dtrace.
...
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
2012-06-27 04:39:30 +00:00
Martin Matuska
153e430149
Do not remount ZFS dataset if changing canmount property to "on" and
...
dataset is already mounted.
PR: 167905
Submitted by: Bryan Drewery <bryan@shatow.net>
MFC after: 1 week
2012-06-15 07:38:21 +00:00
Martin Matuska
0ca5e953e7
Document the -v flag for zpool list.
...
PR: 168970
Suggested by: Marcelo Araujo <araujo@FreeBSD.org>
MFC after: 3 days
2012-06-12 14:40:19 +00:00
Martin Matuska
2d9cf57e18
Introduce "feature flags" for ZFS pools (bump SPA version to 5000).
...
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
2012-06-11 11:35:22 +00:00
Glen Barber
0f135da354
Clean up trailing whitespace.
...
MFC after: 3 days
X-MFC-With: r236776
2012-06-09 03:34:34 +00:00
Glen Barber
a82472f2de
Fix a typo: s/deafult/default
...
MFC after: 3 days
2012-06-09 03:33:06 +00:00
Martin Matuska
923bc36411
Import Illumos revision 13715:351036203e4b
...
2803 zfs get guid pretty-prints the output
References:
https://www.illumos.org/issues/2803
Obtained from: illumos (issue #2803 )
MFC after: 3 days
2012-06-07 08:32:53 +00:00
George V. Neville-Neil
c5069a4756
Add DTrace's io.d, which handles tranlsations for file, buffer and
...
device info structures as well as the fds[] array. This is a raw
version of the file, unmodified, to be used as a baseline.
2012-06-05 18:58:05 +00:00
Martin Matuska
2182d44714
Import illumos changeset 13570:3411fd5f1589
...
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
2012-05-27 16:00:00 +00:00
Martin Matuska
d9727dc29c
Import illumos changeset 13605:b5c2b5db80d6 (partial)
...
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
2012-05-27 12:31:57 +00:00
Martin Matuska
e21ea64ae1
Import illumos changeset 13564:cf89c0c60496
...
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
2012-05-27 12:22:15 +00:00
Martin Matuska
6977304500
Import illumos changeset 13571:a5771a96228c
...
1950 ztest backwards compatibility testing option
References:
https://www.illumos.org/issues/1950
Obtained from: illumos (issue #1950 )
MFC after: 2 weeks
2012-05-27 11:37:24 +00:00
Pawel Jakub Dawidek
ff8dbdbf30
Correct error message.
...
MFC after: 3 days
2012-05-25 17:19:30 +00:00
Andriy Gapon
5e1ba35cea
zpool_find_import_impl: another /dev/dsk -> /dev fix
...
This seems to fix zdb -e behavior.
PR: bin/155104
Submitted by: swell.k@gmail.com
MFC after: 2 weeks
2012-05-15 17:11:00 +00:00
Andriy Gapon
0002b76d93
zpool_do_import: use /dev instead of /dev/dsk as a default
...
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
2012-05-15 17:07:29 +00:00
George V. Neville-Neil
151ba977e9
Move sh to the correct path for FreeBSD.
2012-05-14 22:02:01 +00:00
George V. Neville-Neil
334aca4e78
Move sh to the correct location for FreeBS (/bin/sh)
2012-05-14 22:00:24 +00:00
George V. Neville-Neil
562490e2da
Fix execsnoop by changing exece and exec to be FreeBSD's execve.
...
Reference sh in the correct location (/bin/sh)
2012-05-14 21:59:47 +00:00
George V. Neville-Neil
44f24c137a
Fix opensnoop for FreeBSD by removing probes with 64 at the end as
...
these are unnecessary.
Reference sh in the correct location (/bin/sh)
2012-05-14 21:58:22 +00:00
George V. Neville-Neil
f2f9999d8b
Import dtracetoolkit into cddl/contrib
2012-05-12 21:25:48 +00:00
Martin Matuska
a837775a9e
Import illumos changeset 13686:4bc0783f6064
...
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
2012-05-10 10:39:45 +00:00
Martin Matuska
a4392ad6af
Remove unreachable break in zfs_main.c
...
Partial import of illumos changeset 13622:e5889df1eaac
2077 lots of unreachable breaks in illumos gate
References:
https://www.illumos.org/issues/2077
PR: kern/167370
Submitted by: Marcelo Araujo <araujo@FreeBSD.org>
Obtained from: illumos (issue #2077 )
MFC after: 1 week
2012-05-10 09:10:31 +00:00
Martin Matuska
7538677f35
Add support for force unmounting ZFS filesystems during "zfs rename"
...
with the -f flag.
Reimplementation of the illumos changeset 13677:a0cbef703c12
2635 'zfs rename -f' to perform force unmount
References:
https://www.illumos.org/issues/2635
PR: kern/164447
Suggested by: Marcelo Araujo <araujo@FreeBSD.org>
Obtained from: illumos (issue #2635 )
MFC after: 1 week
2012-05-10 08:57:58 +00:00
Martin Matuska
9846ab4ed2
Import illumos changeset 13618:c6ae14a341e8 [1]:
...
2088 zdb could use a reasonable manual page
Rewrite new zdb manpage to mdoc(7)
References:
https://www.illumos.org/issues/2088
PR: kern/167467 [1]
Submitted by: Marcelo Araujo <araujo@FreeBSD.org> [1]
Reviewed by: mm
Obtained from: Illumos (issue #2088 )
MFC after: 1 week
2012-05-10 04:11:39 +00:00
Glen Barber
2fccbf04cc
General mdoc(7) and typo fixes.
...
PR: 167696
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days
2012-05-10 02:07:00 +00:00
Robert Millan
e851fbe3de
GNU/kFreeBSD portability fix. This glue <stdlib.h> overrides header protection
...
in the system-wide version of <stdlib.h> by wrapping the #include_next
<stdlib.h> within the scope of its own header protection. On FreeBSD this has
no effect, since both header protections are equivalent. However the GNU version
of <stdlib.h> implements a special header protection mechanism which allows it
to be included multiple times (in different modes).
Simply by moving the #include_next off the header protection, we allow
system-wide <stdlib.h> to implement its own protection policy, whichever that
may be.
2012-04-30 23:12:16 +00:00
Ryan Stone
c6024848dd
Implement the D "cpu" variable, which returns curcpu. I have chosen not
...
to follow the example of OpenSolaris and its descendants, which implemented
cpu as an inline that took a value out of curthread. At certain points in
the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in
particukar, just before the thread gets descheduled) so instead I have
implemented this as its own built-in variable.
Sponsored by: Sandvine Inc.
MFC after: 1 week
2012-04-26 01:07:03 +00:00
Pawel Jakub Dawidek
7aa828debf
Add -u option to 'zfs create' that prevents file system from being
...
automatically mounted. This is similar to the 'zfs receive -u'.
MFC after: 1 week
2012-04-24 13:44:46 +00:00
Xin LI
ba89ae6d5d
- Correct a typo which prevents 'lzjb' be displayed;
...
- Use quotes when tab is used.
2012-04-22 07:50:24 +00:00
Martin Matuska
c277658f24
Fix typo miror -> mirror
...
Reported by: Glen Barber <gjb@FreeBSD.org>
MFC after: 3 days
2012-04-16 08:19:43 +00:00
George V. Neville-Neil
72cc304aba
Change SIGUSR1 to SIGTHR to properly wake up a process that is being
...
traced. The use of SIGUSR1 caused traced processes (those attached to
with dtrace -p) to exit when dtrace exited.
MFC in: 1 week
2012-04-13 20:22:08 +00:00