HomeFreeBSD

Restrict short block cloning requests

Description

Restrict short block cloning requests

If we are copying only one block and it is smaller than recordsize
property, do not allow destination to grow beyond one block if it
is not there yet. Otherwise the destination will get stuck with
that block size forever, that can be as small as 512 bytes, no
matter how big the destination grow later.

Reviewed-by: Kay Pedersen <mail@mkwg.de>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15321

Details

Provenance
mavAuthored on Sep 29 2023, 3:22 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 3 2023, 4:06 PM
Parents
rGb34bf2d5f615: Tweak rebuild in-flight hard limit
Branches
Unknown
Tags
Unknown