]> git.proxmox.com Git - mirror_zfs.git/commit
Overflowing refreservation is bad
authorRich Ercolani <214141+rincebrain@users.noreply.github.com>
Mon, 29 Apr 2024 18:32:49 +0000 (14:32 -0400)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2024 18:32:49 +0000 (11:32 -0700)
commitdb499e68f9ef8d4b12ebdab699184e3acf35567c
treef4fb7e13aec55a7866a4785f1272f8fb86424584
parent4840f023afae7c4932c903cf3a436c02c6704e20
Overflowing refreservation is bad

Someone came to me and pointed out that you could pretty
readily cause the refreservation calculation to exceed
2**64, given the 2**17 multiplier in it, and produce
refreservations wildly less than the actual volsize in cases where
it should have failed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #15996
lib/libzfs/libzfs_dataset.c