freebsd-dev/cddl/contrib/opensolaris
Alexander Motin 1960706625 MFV r336944: 9286 want refreservation=auto
When a ZFS volume is created with zfs create -V (but without -s), the
refreservation property is set to a value that is volsize plus the maximum
size of metadata. If refreservation is ever set to another value, it is
impossible to set it back to the automatically determined value. There are
other cases where refreservation may be wrong. These include receiving a
volume that was sent without properties and zfs clone.

We need:

zfs set refreservation=auto <volume>
zfs clone -o refreservation=auto <volume>

Each one would use the same function used by zfs create -V to determine the
proper value for refreservation.

illumos/illumos-gate@1c10ae76c0

Reviewed by: Allan Jude <allanjude@freebsd.org>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Mike Gerdts <mike.gerdts@joyent.com>
2018-07-30 22:39:30 +00:00
..
cmd MFV r336944: 9286 want refreservation=auto 2018-07-30 22:39:30 +00:00
common libctf: Don't construct pointers to out of bounds array offsets 2018-03-26 22:02:36 +00:00
head MFV r270197: 2014-08-22 22:13:36 +00:00
lib MFV r336944: 9286 want refreservation=auto 2018-07-30 22:39:30 +00:00
tools/ctf Process CUs with a language attribute of DW_LANG_Mips_Assembler. 2018-06-11 16:33:36 +00:00
OPENSOLARIS.LICENSE