diff options
author | LOLi <[email protected]> | 2018-02-21 21:32:06 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-02-21 12:32:06 -0800 |
commit | faa97c1619e5d7b51b2077db18fb92c5279b9db3 (patch) | |
tree | 008822d20f9ce2c832fff79b89564c0cb76806a8 /include | |
parent | b0918402dc9a0f81dd52880fbd4e4f4f2133764b (diff) |
Want 'zfs send -b'
This change implements 'zfs send -b' which can be used to send only
received property values whether or not they are overridden by local
settings.
This can be very useful during "restore" operations from a backup pool
because it allows to send only the property values originally sent
from the backup source, even though they were later modified on the
destination either by a 'zfs set' operation, explicit 'zfs inherit' or
overridden during the receive process via 'zfs receive -o|-x'.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #7156
Diffstat (limited to 'include')
-rw-r--r-- | include/libzfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libzfs.h b/include/libzfs.h index 1244bf0e4..71a588325 100644 --- a/include/libzfs.h +++ b/include/libzfs.h @@ -673,6 +673,9 @@ typedef struct sendflags { /* raw encrypted records are permitted */ boolean_t raw; + + /* only send received properties (ie. -b) */ + boolean_t backup; } sendflags_t; typedef boolean_t (snapfilter_cb_t)(zfs_handle_t *, void *); |