HomeFreeBSD

Use setproctitle to report progress of zfs send

Description

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

Details

Provenance
Ameer Hamza <106930537+ixhamza@users.noreply.github.com>Authored on Jan 17 2023, 6:17 PM
GitHub <noreply@github.com>Committed on Jan 17 2023, 6:17 PM
Parents
rG2e7f664f04ba: Cleanup of dead code suggested by Clang Static Analyzer (#14380)
Branches
Unknown
Tags
Unknown