diff options
Diffstat (limited to 'fs/xfs/xfs_quota.h')
| -rw-r--r-- | fs/xfs/xfs_quota.h | 80 |
1 files changed, 33 insertions, 47 deletions
diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h index 32cb79752d5d..82a08baf437b 100644 --- a/fs/xfs/xfs_quota.h +++ b/fs/xfs/xfs_quota.h | |||
| @@ -1,33 +1,19 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. | 2 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. |
| 3 | * All Rights Reserved. | ||
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it | 5 | * This program is free software; you can redistribute it and/or |
| 5 | * under the terms of version 2 of the GNU General Public License as | 6 | * modify it under the terms of the GNU General Public License as |
| 6 | * published by the Free Software Foundation. | 7 | * published by the Free Software Foundation. |
| 7 | * | 8 | * |
| 8 | * This program is distributed in the hope that it would be useful, but | 9 | * This program is distributed in the hope that it would be useful, |
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. | ||
| 11 | * | 13 | * |
| 12 | * Further, this software is distributed without any warranty that it is | 14 | * You should have received a copy of the GNU General Public License |
| 13 | * free of the rightful claim of any third person regarding infringement | 15 | * along with this program; if not, write the Free Software Foundation, |
| 14 | * or the like. Any license provided herein, whether implied or | 16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 15 | * otherwise, applies only to this software file. Patent licenses, if | ||
| 16 | * any, provided herein do not apply to combinations of this program with | ||
| 17 | * other software, or any other product whatsoever. | ||
| 18 | * | ||
| 19 | * You should have received a copy of the GNU General Public License along | ||
| 20 | * with this program; if not, write the Free Software Foundation, Inc., 59 | ||
| 21 | * Temple Place - Suite 330, Boston MA 02111-1307, USA. | ||
| 22 | * | ||
| 23 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, | ||
| 24 | * Mountain View, CA 94043, or: | ||
| 25 | * | ||
| 26 | * http://www.sgi.com | ||
| 27 | * | ||
| 28 | * For further information regarding this notice, see: | ||
| 29 | * | ||
| 30 | * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ | ||
| 31 | */ | 17 | */ |
| 32 | #ifndef __XFS_QUOTA_H__ | 18 | #ifndef __XFS_QUOTA_H__ |
| 33 | #define __XFS_QUOTA_H__ | 19 | #define __XFS_QUOTA_H__ |
| @@ -42,7 +28,7 @@ | |||
| 42 | * uid_t and gid_t are hard-coded to 32 bits in the inode. | 28 | * uid_t and gid_t are hard-coded to 32 bits in the inode. |
| 43 | * Hence, an 'id' in a dquot is 32 bits.. | 29 | * Hence, an 'id' in a dquot is 32 bits.. |
| 44 | */ | 30 | */ |
| 45 | typedef __int32_t xfs_dqid_t; | 31 | typedef __uint32_t xfs_dqid_t; |
| 46 | 32 | ||
| 47 | /* | 33 | /* |
| 48 | * Eventhough users may not have quota limits occupying all 64-bits, | 34 | * Eventhough users may not have quota limits occupying all 64-bits, |
| @@ -59,28 +45,28 @@ typedef __uint16_t xfs_qwarncnt_t; | |||
| 59 | * to construct the on disk structure. | 45 | * to construct the on disk structure. |
| 60 | */ | 46 | */ |
| 61 | typedef struct xfs_disk_dquot { | 47 | typedef struct xfs_disk_dquot { |
| 62 | /*16*/ u_int16_t d_magic; /* dquot magic = XFS_DQUOT_MAGIC */ | 48 | __be16 d_magic; /* dquot magic = XFS_DQUOT_MAGIC */ |
| 63 | /*8 */ u_int8_t d_version; /* dquot version */ | 49 | __u8 d_version; /* dquot version */ |
| 64 | /*8 */ u_int8_t d_flags; /* XFS_DQ_USER/PROJ/GROUP */ | 50 | __u8 d_flags; /* XFS_DQ_USER/PROJ/GROUP */ |
| 65 | /*32*/ xfs_dqid_t d_id; /* user,project,group id */ | 51 | __be32 d_id; /* user,project,group id */ |
| 66 | /*64*/ xfs_qcnt_t d_blk_hardlimit;/* absolute limit on disk blks */ | 52 | __be64 d_blk_hardlimit;/* absolute limit on disk blks */ |
| 67 | /*64*/ xfs_qcnt_t d_blk_softlimit;/* preferred limit on disk blks */ | 53 | __be64 d_blk_softlimit;/* preferred limit on disk blks */ |
| 68 | /*64*/ xfs_qcnt_t d_ino_hardlimit;/* maximum # allocated inodes */ | 54 | __be64 d_ino_hardlimit;/* maximum # allocated inodes */ |
| 69 | /*64*/ xfs_qcnt_t d_ino_softlimit;/* preferred inode limit */ | 55 | __be64 d_ino_softlimit;/* preferred inode limit */ |
| 70 | /*64*/ xfs_qcnt_t d_bcount; /* disk blocks owned by the user */ | 56 | __be64 d_bcount; /* disk blocks owned by the user */ |
| 71 | /*64*/ xfs_qcnt_t d_icount; /* inodes owned by the user */ | 57 | __be64 d_icount; /* inodes owned by the user */ |
| 72 | /*32*/ __int32_t d_itimer; /* zero if within inode limits if not, | 58 | __be32 d_itimer; /* zero if within inode limits if not, |
| 73 | this is when we refuse service */ | 59 | this is when we refuse service */ |
| 74 | /*32*/ __int32_t d_btimer; /* similar to above; for disk blocks */ | 60 | __be32 d_btimer; /* similar to above; for disk blocks */ |
| 75 | /*16*/ xfs_qwarncnt_t d_iwarns; /* warnings issued wrt num inodes */ | 61 | __be16 d_iwarns; /* warnings issued wrt num inodes */ |
| 76 | /*16*/ xfs_qwarncnt_t d_bwarns; /* warnings issued wrt disk blocks */ | 62 | __be16 d_bwarns; /* warnings issued wrt disk blocks */ |
| 77 | /*32*/ __int32_t d_pad0; /* 64 bit align */ | 63 | __be32 d_pad0; /* 64 bit align */ |
| 78 | /*64*/ xfs_qcnt_t d_rtb_hardlimit;/* absolute limit on realtime blks */ | 64 | __be64 d_rtb_hardlimit;/* absolute limit on realtime blks */ |
| 79 | /*64*/ xfs_qcnt_t d_rtb_softlimit;/* preferred limit on RT disk blks */ | 65 | __be64 d_rtb_softlimit;/* preferred limit on RT disk blks */ |
| 80 | /*64*/ xfs_qcnt_t d_rtbcount; /* realtime blocks owned */ | 66 | __be64 d_rtbcount; /* realtime blocks owned */ |
| 81 | /*32*/ __int32_t d_rtbtimer; /* similar to above; for RT disk blocks */ | 67 | __be32 d_rtbtimer; /* similar to above; for RT disk blocks */ |
| 82 | /*16*/ xfs_qwarncnt_t d_rtbwarns; /* warnings issued wrt RT disk blocks */ | 68 | __be16 d_rtbwarns; /* warnings issued wrt RT disk blocks */ |
| 83 | /*16*/ __uint16_t d_pad; | 69 | __be16 d_pad; |
| 84 | } xfs_disk_dquot_t; | 70 | } xfs_disk_dquot_t; |
| 85 | 71 | ||
| 86 | /* | 72 | /* |
