HomeFreeBSD

Corrected oversight in ZERO_RANGE behavior

Description

Corrected oversight in ZERO_RANGE behavior

It turns out, no, in fact, ZERO_RANGE and PUNCH_HOLE do
have differing semantics in some ways - in particular,
one requires KEEP_SIZE, and the other does not.

Also added a zero-range test to catch this, corrected a flaw
that made the punch-hole test succeed vacuously, and a typo
in file_write.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #13329
Closes #13338

Details

Provenance
rincebrain_gmail.comAuthored on Apr 20 2022, 11:07 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 21 2022, 11:58 PM
Parents
rG361dc138b1bd: Document zfs inherit -S's interaction with noninheritable properties
Branches
Unknown
Tags
Unknown