HomeFreeBSD

tests/quota_005_pos: use a long int for doubling the quota size

Description

tests/quota_005_pos: use a long int for doubling the quota size

When run in isolation, quota_005_pos would see an empty ~300G dataset.
Doubling it's space overflows a int32, which meant it was trying to then
set the quota to a negative value, and would fail.

When run as part of the quota tests, the filesystem appears to have
stuff in it, and so a lower available space, which doesn't overflow, and
so succeeds.

The bare minimum fix seems to be to use a int64 for the available space,
so it can be comfortably doubled. Here it is.

(Also a typo fix and a tiny bit of cleanup).

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16097

Details

Provenance
rob.norris_klarasystems.comAuthored on Apr 16 2024, 5:03 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 19 2024, 11:06 PM
Parents
rGcd3e6b4f4c5e: Add zfetch stats in arcstats
Branches
Unknown
Tags
Unknown