From 89d43feb0ba1fb86ca67b215c1449b28008a4709 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Thu, 26 Jan 2017 23:42:48 +0300 Subject: [PATCH] OpenZFS 6412 - zfs receive: -u can be ignored sometimes Authored by: Andriy Gapon Reviewed by: - Matthew Ahrens Reviewed by: - Paul Dagnelie Approved by: - Richard Lowe Reviewed-by: Brian Behlendorf Ported-by: George Melikov OpenZFS-issue: https://www.illumos.org/issues/6412 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/9185393 Closes #5659 --- lib/libzfs/libzfs_sendrecv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libzfs/libzfs_sendrecv.c b/lib/libzfs/libzfs_sendrecv.c index b140abe35e..a6650a45fd 100644 --- a/lib/libzfs/libzfs_sendrecv.c +++ b/lib/libzfs/libzfs_sendrecv.c @@ -3601,7 +3601,8 @@ zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap, } if (clp) { - err |= changelist_postfix(clp); + if (!flags->nomount) + err |= changelist_postfix(clp); changelist_free(clp); }