Project

General

Profile

Bug #10043

zfs receive -d and -e options are not mutually exclusive

Added by Ezomori Nozomu over 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2018-12-05
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The zfs(1m) man page seems to suggest that "-e" and "-d" options are mutually exclusive:

     zfs receive [-Fnsuv] [-o origin=snapshot] filesystem|volume|snapshot
     zfs receive [-Fnsuv] [-d|-e] [-o origin=snapshot] filesystem
     zfs receive -A filesystem|volume

but the implementation of the zfs command shows they are not:

loli@openindiana:~$ sudo zfs create -o mountpoint=none $POOLNAME/send  
loli@openindiana:~$ sudo zfs create $POOLNAME/recvfs
loli@openindiana:~$ sudo zfs snap -r $POOLNAME/send@snap
loli@openindiana:~$ sudo zfs send $POOLNAME/send@snap | sudo zfs recv -v -e -d $POOLNAME/recvfs
receiving full stream of testpool/send@snap into testpool/recvfs/send@snap
received 46.6KB stream in 1 seconds (46.6KB/sec)
loli@openindiana:~$ uname -a
SunOS openindiana 5.11 master-0-g1ca5176145 i86pc i386 i86pc
loli@openindiana:~$ 

Relevant ZFS on Linux commit: https://github.com/zfsonlinux/zfs/commit/bdbd5477bcba03b1df1e02b3b89e795c99e2f4c8

Also available in: Atom PDF