[LTP] [COMMITTED][PATCH] quotactl02: flags for Q_XQUOTA{ON, OFF} is 32bit int

Jan Stancek jstancek@redhat.com
Tue Feb 7 10:56:55 CET 2017


This fixes failure on ppc64 big endian systems:
  quotactl02.c:163: FAIL: quotactl() failed to turn off xfs quota and get xfs quota off status: EEXIST
  quotactl02.c:163: FAIL: quotactl() failed to turn on xfs quota and get xfs quota on status: EINVAL
  quotactl02.c:136: PASS: quoactl() succeeded to set and get xfs disk quota limits

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/syscalls/quotactl/quotactl02.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/quotactl/quotactl02.c b/testcases/kernel/syscalls/quotactl/quotactl02.c
index 97e784480f2b..d3bd94624a8a 100644
--- a/testcases/kernel/syscalls/quotactl/quotactl02.c
+++ b/testcases/kernel/syscalls/quotactl/quotactl02.c
@@ -52,7 +52,7 @@ static struct fs_disk_quota set_dquota = {
 	.d_rtb_softlimit = 1000,
 	.d_fieldmask = FS_DQ_RTBSOFT
 };
-static unsigned short qflag = XFS_QUOTA_UDQ_ENFD;
+static uint32_t qflag = XFS_QUOTA_UDQ_ENFD;
 static const char mntpoint[] = "mnt_point";
 
 static struct t_case {
-- 
1.8.3.1



More information about the ltp mailing list