mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
19d3961589
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
44 lines
923 B
Makefile
44 lines
923 B
Makefile
libzutil_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS)
|
|
libzutil_la_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS)
|
|
libzutil_la_CFLAGS += -fvisibility=hidden
|
|
|
|
libzutil_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|
libzutil_la_CPPFLAGS += -I$(srcdir)/%D%
|
|
|
|
noinst_LTLIBRARIES += libzutil.la
|
|
CPPCHECKTARGETS += libzutil.la
|
|
|
|
libzutil_la_SOURCES = \
|
|
%D%/zutil_device_path.c \
|
|
%D%/zutil_import.c \
|
|
%D%/zutil_import.h \
|
|
%D%/zutil_nicenum.c \
|
|
%D%/zutil_pool.c
|
|
|
|
if BUILD_LINUX
|
|
libzutil_la_SOURCES += \
|
|
%D%/os/linux/zutil_setproctitle.c \
|
|
%D%/os/linux/zutil_device_path_os.c \
|
|
%D%/os/linux/zutil_import_os.c
|
|
endif
|
|
|
|
if BUILD_FREEBSD
|
|
libzutil_la_SOURCES += \
|
|
%D%/os/freebsd/zutil_device_path_os.c \
|
|
%D%/os/freebsd/zutil_import_os.c
|
|
endif
|
|
|
|
libzutil_la_LIBADD = \
|
|
libavl.la \
|
|
libtpool.la \
|
|
libnvpair.la \
|
|
libspl.la
|
|
|
|
if BUILD_LINUX
|
|
libzutil_la_LIBADD += \
|
|
libefi.la \
|
|
-lrt
|
|
endif
|
|
|
|
libzutil_la_LIBADD += -lm $(LIBBLKID_LIBS) $(LIBUDEV_LIBS)
|