zfs/lib/libzutil
Ameer Hamza 777c98ee52 Use setproctitle to report progress of zfs send
This allows parsing of zfs send progress by checking the process
title.
Doing so requires some changes to the send code in libzfs_sendrecv.c;
primarily these changes move some of the accounting around, to allow
for the code to be verbose as normal, or set the process title. Unlike
BSD, setproctitle() isn't standard in Linux; thus, borrowed it from
libbsd with slight modifications.

Authored-by: Sean Eric Fagan <sef@FreeBSD.org>
Co-authored-by: Ryan Moeller <ryan@iXsystems.com>
Co-authored-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #14376
2023-03-29 14:45:34 -07:00
..
os Use setproctitle to report progress of zfs send 2023-03-29 14:45:34 -07:00
Makefile.am Use setproctitle to report progress of zfs send 2023-03-29 14:45:34 -07:00
zutil_device_path.c OpenZFS restructuring - libzutil 2019-10-03 10:20:44 -07:00
zutil_import.c Fix theoretical use of uninitialized values 2022-12-01 12:39:42 -08:00
zutil_import.h OpenZFS restructuring - libzutil 2019-10-03 10:20:44 -07:00
zutil_nicenum.c zed: Control NVMe fault LEDs 2021-11-05 07:51:21 -07:00
zutil_pool.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00