From: Venky Shankar Date: Mon, 13 Mar 2023 06:20:31 +0000 (+0530) Subject: qa: fixup quota values exceeding 64 bit signed int value X-Git-Tag: v18.2.4~417^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66f2338faae6d2e857b7503a719840118a8e04d2;p=ceph.git qa: fixup quota values exceeding 64 bit signed int value The test does the following: setfattr -n ceph.quota.max_bytes -v 8388608Ti . This failes since 8388608Ti exceeds 64 bit signed integer value. Change that to the approprivate value and expect faliure when quota is set for this exceeded value. Fixes: http://tracker.ceph.com/issues/55940 Introduced-by: 733065148250e892fca941cdeaad3e3a8193b0d8 Signed-off-by: Venky Shankar (cherry picked from commit ad7eb172668ebcfa28d89c5e3d0ee9d9aec9c2ee) --- diff --git a/qa/workunits/fs/quota/quota.sh b/qa/workunits/fs/quota/quota.sh index ba611d5e52d..a2f5c459d3f 100755 --- a/qa/workunits/fs/quota/quota.sh +++ b/qa/workunits/fs/quota/quota.sh @@ -106,8 +106,8 @@ expect_false setfattr -n ceph.quota.max_bytes -v -9223372036854775809 . setfattr -n ceph.quota.max_bytes -v 0 . setfattr -n ceph.quota.max_bytes -v 1Ti . -setfattr -n ceph.quota.max_bytes -v 8388608Ti . -expect_false setfattr -n ceph.quota.max_bytes -v 8388609Ti . +setfattr -n ceph.quota.max_bytes -v 8388607Ti . +expect_false setfattr -n ceph.quota.max_bytes -v 8388608Ti . expect_false setfattr -n ceph.quota.max_bytes -v -1Ti . expect_false setfattr -n ceph.quota.max_bytes -v -8388609Ti . expect_false setfattr -n ceph.quota.max_bytes -v -8388610Ti .