96329ce7 se Jan. 23, 2019, 10:05 a.m.
While the warning is a false positive, it is possible to clarify the code by
always initializing the variable. This does also allow to make the sending
of the "beep" control sequence depend on the validity of its parameters.

I have left the redundant assignment of 0 to the now initialized variables
in place since this makes the code simpler to understand and does not add
any run-time overhead (the compiler completely removes the "else if" test
and the assignments).

There was an embedded literal escape character in a string, which messes up
diplaying the source code on a terminal that interprets ANSI sequences. The
literal escape has been replaced by \e (non-standard, but supported by all
relevant compilers, and already used in other source files in base).

MFC after:	2 weeks
cgit ViewVC
d65e72a8 gonzo Jan. 23, 2019, 2:46 a.m.
According to systat(1) :only option is supposed to accept multiple drives
but the parser for its arguments stops after first entry. Fix the parser
logic to accept multiple drives.

PR:		59220
Reported by:	Andy Farkas <andyf@speednet.com.au>
MFC after:	1 week
cgit ViewVC
16ac0705 kevans Jan. 23, 2019, 2:09 a.m.
Previously, we directly used libzfs_core's lzc_receive to import to a
temporary snapshot, then cloned the snapshot and setup the properties. This
failed when attempting to import replication streams with questionable
error.

libzfs's zfs_receive is a much better fit here, so we now use it instead
with the destination dataset and let libzfs take care of the dirty details.
be_import is greatly simplified as a result.

Reported by:	Marie Helene Kvello-Aune <freebsd@mhka.no>
MFC after:	1 week
cgit ViewVC
20694769 wulf Jan. 22, 2019, 10:39 p.m.
Tested on HP AF006UR.

MFC after:	2 weeks
cgit ViewVC
bcba4b6d dim Jan. 22, 2019, 8:34 p.m.
88148a07 dim Jan. 22, 2019, 8:24 p.m.
af44a011 dim Jan. 22, 2019, 8:24 p.m.
and lld, and regenerate config headers.
cgit ViewVC
7570aff4 dim Jan. 22, 2019, 8:16 p.m.
1064158e dim Jan. 22, 2019, 8:15 p.m.
73471dd8 dim Jan. 22, 2019, 8:15 p.m.
6f6198e7 dim Jan. 22, 2019, 8:13 p.m.
8dabf201 dim Jan. 22, 2019, 8:08 p.m.
9c710df9 dim Jan. 22, 2019, 7:20 p.m.
58a7b5d6 dim Jan. 22, 2019, 7:03 p.m.
0c824832 dim Jan. 22, 2019, 7:02 p.m.