diff options
| author | Manuel Bentele | 2020-10-23 15:18:01 +0200 |
|---|---|---|
| committer | Manuel Bentele | 2020-10-23 15:18:01 +0200 |
| commit | dbb41ce2b7f309d394054a6bd1e33afd578798a5 (patch) | |
| tree | 6a31092063d9f2fb5ac5720ec6759040e793c3d5 /kernel/tests/include/lapi/quotactl.h | |
| parent | Set Linux kernel version to unknown if it is not detectable (diff) | |
| download | xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.tar.gz xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.tar.xz xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.zip | |
Move the source code of all xloop components to the common 'src' directory
Diffstat (limited to 'kernel/tests/include/lapi/quotactl.h')
| -rw-r--r-- | kernel/tests/include/lapi/quotactl.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/kernel/tests/include/lapi/quotactl.h b/kernel/tests/include/lapi/quotactl.h deleted file mode 100644 index c1ec9d6..0000000 --- a/kernel/tests/include/lapi/quotactl.h +++ /dev/null @@ -1,78 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * Copyright (c) 2017-2019 Fujitsu Ltd. - * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> - * Author: Yang Xu <xuyang2018.jy@cn.jujitsu.com> - */ - -#ifndef LAPI_QUOTACTL_H__ -#define LAPI_QUOTACTL_H__ - -#include <sys/quota.h> - -#ifdef HAVE_STRUCT_IF_NEXTDQBLK -# include <linux/quota.h> -#else -# include <stdint.h> -struct if_nextdqblk { - uint64_t dqb_bhardlimit; - uint64_t dqb_bsoftlimit; - uint64_t dqb_curspace; - uint64_t dqb_ihardlimit; - uint64_t dqb_isoftlimit; - uint64_t dqb_curinodes; - uint64_t dqb_btime; - uint64_t dqb_itime; - uint32_t dqb_valid; - uint32_t dqb_id; -}; -#endif /* HAVE_STRUCT_IF_NEXTDQBLK */ - -#ifndef HAVE_STRUCT_FS_QUOTA_STATV -# include <stdint.h> -struct fs_qfilestatv { - uint64_t qfs_ino; - uint64_t qfs_nblks; - uint32_t qfs_nextents; - uint32_t qfs_pad; -}; - -struct fs_quota_statv { - int8_t qs_version; - uint8_t qs_pad1; - uint16_t qs_flags; - uint32_t qs_incoredqs; - struct fs_qfilestatv qs_uquota; - struct fs_qfilestatv qs_gquota; - struct fs_qfilestatv qs_pquota; - int32_t qs_btimelimit; - int32_t qs_itimelimit; - int32_t qs_rtbtimelimit; - uint16_t qs_bwarnlimit; - uint16_t qs_iwarnlimit; - uint64_t qs_pad2[8]; -}; -# define FS_QSTATV_VERSION1 1 -#endif /* HAVE_STRUCT_FS_QUOTA_STATV */ - -#ifndef PRJQUOTA -# define PRJQUOTA 2 -#endif - -#ifndef Q_XQUOTARM -# define Q_XQUOTARM XQM_CMD(6) -#endif - -#ifndef Q_XGETQSTATV -# define Q_XGETQSTATV XQM_CMD(8) -#endif - -#ifndef Q_XGETNEXTQUOTA -# define Q_XGETNEXTQUOTA XQM_CMD(9) -#endif - -#ifndef Q_GETNEXTQUOTA -# define Q_GETNEXTQUOTA 0x800009 /* get disk limits and usage >= ID */ -#endif - -#endif /* LAPI_QUOTACTL_H__ */ |
