aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAmeer Hamza <106930537+ixhamza@users.noreply.github.com>2023-01-17 18:17:35 +0000
committerGitHub <noreply@github.com>2023-01-17 18:17:35 +0000
commit19d3961589bdedb24e245a1e12db758f2d96ff86 (patch)
treef08971616cd63240843922d6850aa33e82717db5 /include
parent2e7f664f04bae4375ab6bebf232983b2326c9370 (diff)
downloadsrc-19d3961589bdedb24e245a1e12db758f2d96ff86.tar.gz
src-19d3961589bdedb24e245a1e12db758f2d96ff86.zip
Diffstat (limited to 'include')
-rw-r--r--include/libzfs.h3
-rw-r--r--include/libzutil.h7
2 files changed, 10 insertions, 0 deletions
diff --git a/include/libzfs.h b/include/libzfs.h
index e563749226ec..05b4dfe35c76 100644
--- a/include/libzfs.h
+++ b/include/libzfs.h
@@ -740,6 +740,9 @@ typedef struct sendflags {
/* show progress (ie. -v) */
boolean_t progress;
+ /* show progress as process title (ie. -V) */
+ boolean_t progressastitle;
+
/* large blocks (>128K) are permitted */
boolean_t largeblock;
diff --git a/include/libzutil.h b/include/libzutil.h
index e285183e082c..4d4bddaad5f3 100644
--- a/include/libzutil.h
+++ b/include/libzutil.h
@@ -182,6 +182,13 @@ _LIBZUTIL_H int printf_color(const char *color, const char *format, ...);
_LIBZUTIL_H const char *zfs_basename(const char *path);
_LIBZUTIL_H ssize_t zfs_dirnamelen(const char *path);
+#ifdef __linux__
+_LIBZUTIL_H void zfs_setproctitle_init(int argc, char *argv[], char *envp[]);
+_LIBZUTIL_H void zfs_setproctitle(const char *fmt, ...);
+#else
+#define zfs_setproctitle(fmt, ...) setproctitle(fmt, ##__VA_ARGS__)
+#define zfs_setproctitle_init(x, y, z) ((void)0)
+#endif
/*
* These functions are used by the ZFS libraries and cmd/zpool code, but are