]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r272583: MFV r272500:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 16 Oct 2014 22:44:30 +0000 (22:44 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 16 Oct 2014 22:44:30 +0000 (22:44 +0000)
commit7f5a6b1e0b3382afd4930fbc3595b8ddad9ff798
tree2d68942c3ffb0279c579d375659ea15530b783b9
parente8cb0510e9b910b27718bb176c5addaba0cbe4a1
MFC r272583: MFV r272500:

Don't inherit flags other than DS_FLAG_CI_DATASET and DS_FLAG_INCONSISTENT
when cloning.  This prevents DS_FLAG_DEFER_DESTROY being inherited from a
clone that is marked for deferred destroy, which causes snapshots of the
clone being destroyed when getting a hold or clone.

Illumos issue:
    5150 zfs clone of a defer_destroy snapshot causes strangeness

git-svn-id: svn://svn.freebsd.org/base/stable/10@273195 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c