]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV r337161: 9512 zfs remap poolname@snapname coredumps
authorAlexander Motin <mav@FreeBSD.org>
Thu, 2 Aug 2018 19:13:45 +0000 (19:13 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 2 Aug 2018 19:13:45 +0000 (19:13 +0000)
commitc423a5e6b8dccda25791f4229a92988b328bf9e1
treef5a01767d46e158d1c8cf1e185229210eb6d281c
parent7fca1b93c48f3c55d4f53e978518c551e421eac9
parentcf8fc527c9dc27e9e99a28c0c621bed2a74bc203
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