From 66f2338faae6d2e857b7503a719840118a8e04d2 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Mon, 13 Mar 2023 11:50:31 +0530 Subject: [PATCH] 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) --- qa/workunits/fs/quota/quota.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 . -- 2.47.3