zfs/lib/libzfs
loli10K b53cb02d92 Fix 'zfs receive -F' message when destination has snapshots
When receiving a send stream with forced rollback on a dataset with
snapshots zfs suggests said snapshots must be removed to successfully
receive the stream; however the message is misleading because it
prints the dataset name instead of one of its snapshots.

   $ sudo zfs snap pp/recvfs@snap-orig
   $ sudo zfs recv -F pp/recvfs < sendstream
   cannot receive new filesystem stream: destination has snapshots (eg. pp/recvfs)
   must destroy them to overwrite it

This change simply restores the snapshot name in the error message.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8167
2018-12-05 09:33:52 -08:00
..
.gitignore Add a pkgconfig file 2014-08-28 07:59:43 -07:00
Makefile.am Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00
THIRDPARTYLICENSE.openssl Encryption patch follow-up 2017-10-11 16:54:48 -04:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00
libzfs.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_changelist.c Fix changelist mounted-dataset iteration 2018-10-10 21:13:13 -07:00
libzfs_config.c OpenZFS 4521 - zfstest is trying to execute evil "zfs unmount -a" 2017-02-03 13:24:44 -08:00
libzfs_core.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_crypto.c Added encryption support for zfs recv -o / -x 2018-08-15 09:48:49 -07:00
libzfs_dataset.c OpenZFS 8115 - parallel zfs mount 2018-11-15 11:33:58 -08:00
libzfs_diff.c Update build system and packaging 2018-05-29 16:00:33 -07:00
libzfs_import.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00
libzfs_iter.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00
libzfs_mount.c OpenZFS 8115 - parallel zfs mount 2018-11-15 11:33:58 -08:00
libzfs_pool.c zpool: bogus error for invalid dedupditto value 2018-11-06 10:14:56 -08:00
libzfs_sendrecv.c Fix 'zfs receive -F' message when destination has snapshots 2018-12-05 09:33:52 -08:00
libzfs_status.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00
libzfs_util.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00