aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-12-10 00:02:52 +0100
committerBrian Behlendorf <[email protected]>2021-12-13 15:49:40 -0800
commit344bbc82e7054f61d5e7b3610b119820285fd2cb (patch)
treea0ac59fe3b3d2c64d5f8495f035e3563d0413f6c /include
parentf04b97620059d08b37d9e80ada397e742bb2f311 (diff)
zfs, libzfs: diff: accept -h/ZFS_DIFF_NO_MANGLE, disabling path escaping
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Rich Ercolani <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12829
Diffstat (limited to 'include')
-rw-r--r--include/libzfs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/libzfs.h b/include/libzfs.h
index 53a778f7b..e135ae2ee 100644
--- a/include/libzfs.h
+++ b/include/libzfs.h
@@ -835,9 +835,10 @@ _LIBZFS_H int zfs_receive(libzfs_handle_t *, const char *, nvlist_t *,
recvflags_t *, int, avl_tree_t *);
typedef enum diff_flags {
- ZFS_DIFF_PARSEABLE = 0x1,
- ZFS_DIFF_TIMESTAMP = 0x2,
- ZFS_DIFF_CLASSIFY = 0x4
+ ZFS_DIFF_PARSEABLE = 1 << 0,
+ ZFS_DIFF_TIMESTAMP = 1 << 1,
+ ZFS_DIFF_CLASSIFY = 1 << 2,
+ ZFS_DIFF_NO_MANGLE = 1 << 3
} diff_flags_t;
_LIBZFS_H int zfs_show_diffs(zfs_handle_t *, int, const char *, const char *,