]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fixup quota values exceeding 64 bit signed int value 53333/head
authorVenky Shankar <vshankar@redhat.com>
Mon, 13 Mar 2023 06:20:31 +0000 (11:50 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Fri, 8 Sep 2023 10:49:39 +0000 (16:19 +0530)
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 <vshankar@redhat.com>
(cherry picked from commit ad7eb172668ebcfa28d89c5e3d0ee9d9aec9c2ee)

qa/workunits/fs/quota/quota.sh

index ba611d5e52d082937157cf9881dae5333fa118c8..a2f5c459d3fcbce9ae3d0b057f0af9e91feb165c 100755 (executable)
@@ -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 .