]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337163: MFV r337161: 9512 zfs remap poolname@snapname coredumps
authormav <mav@FreeBSD.org>
Wed, 3 Oct 2018 03:13:53 +0000 (03:13 +0000)
committermav <mav@FreeBSD.org>
Wed, 3 Oct 2018 03:13:53 +0000 (03:13 +0000)
commit422827600ddd1359ea352f7acbca2d948e932fcc
tree9dd501ec79b7adb743a0bd655e8c1852dfa104d1
parent32bcef46e8a3e185e6d9d627846e2a18d8f765a8
MFC r337163: MFV r337161: 9512 zfs remap poolname@snapname coredumps

Only filesystems and volumes are valid "zfs remap" parameters: when passed
a snapshot name zfs_remap_indirects() does not handle the EINVAL returned
from libzfs_core, which results in failing an assertion and consequently
crashing.

illumos/illumos-gate@0b2e8253986c5c761129b58cfdac46d204903de1

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: John Wren Kennedy <john.kennedy@delphix.com>
Reviewed by: Sara Hartse <sara.hartse@delphix.com>
Approved by: Matt Ahrens <mahrens@delphix.com>
Author:     loli10K <ezomori.nozomu@gmail.com>
cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c