Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 30501015c64eb811606ea64ac43e4bec8c3de663)
This commit is contained in:
wzx 2022-10-28 16:03:50 +08:00 committed by openeuler-sync-bot
parent d34f0eb877
commit bedc33d54b
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From 3801089800f4530408b4d99a3d0bcf0a154bac1f Mon Sep 17 00:00:00 2001
From: wzx <wuzx1226@qq.com>
Date: Wed, 26 Oct 2022 16:00:36 +0800
Subject: [PATCH] Add sw64 architecture
Add sw64 architecture in file quota.h to suport sw64 architecture.
Signed-off-by: wzx <wuzx1226@qq.com>
---
quota.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quota.h b/quota.h
index 4c21411..a9c9ecd 100644
--- a/quota.h
+++ b/quota.h
@@ -171,7 +171,7 @@ enum {
/* Ioctl for getting quota size */
#include <sys/ioctl.h>
#ifndef FIOQSIZE
- #if defined(__alpha__) || defined(__powerpc__) || defined(__sh__) || defined(__sparc__) || defined(__sparc64__)
+ #if defined(__alpha__) || defined(__sw_64__) || defined(__powerpc__) || defined(__sh__) || defined(__sparc__) || defined(__sparc64__)
#define FIOQSIZE _IOR('f', 128, loff_t)
#elif defined(__arm__) || defined(__mc68000__) || defined(__s390__)
#define FIOQSIZE 0x545E
--
2.33.0

View File

@ -1,7 +1,7 @@
Name: quota Name: quota
Version: 4.06 Version: 4.06
Epoch: 1 Epoch: 1
Release: 4 Release: 5
Summary: Linux Diskquota system as part of the Linux kernel Summary: Linux Diskquota system as part of the Linux kernel
License: BSD and GPLv2 and GPLv2+ and LGPLv2+ License: BSD and GPLv2 and GPLv2+ and LGPLv2+
URL: http://sourceforge.net/projects/linuxquota/ URL: http://sourceforge.net/projects/linuxquota/
@ -15,6 +15,7 @@ Source4: rpc-rquotad.sysconfig
Patch0: 0000-Limit-number-of-comparison-characters-to-4.patch Patch0: 0000-Limit-number-of-comparison-characters-to-4.patch
Patch1: 0001-Limit-maximum-of-RPC-port.patch Patch1: 0001-Limit-maximum-of-RPC-port.patch
Patch2: 0002-quotaio_xfs-Warn-when-large-kernel-timestamps-cannot.patch Patch2: 0002-quotaio_xfs-Warn-when-large-kernel-timestamps-cannot.patch
Patch3: 0003-quota-Add-sw64-architecture.patch
BuildRequires: autoconf, automake, coreutils, rpcgen, systemd, gcc BuildRequires: autoconf, automake, coreutils, rpcgen, systemd, gcc
BuildRequires: e2fsprogs-devel, gettext-devel, openldap-devel BuildRequires: e2fsprogs-devel, gettext-devel, openldap-devel
@ -123,6 +124,12 @@ make check
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 1:4.06-5
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add sw64 architecture
* Tue Oct 11 2022 huangduirong <huangduirong@huawei.com> - 1:4.06-4 * Tue Oct 11 2022 huangduirong <huangduirong@huawei.com> - 1:4.06-4
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA