diff options
author | Marco Benatto <mbenatto@redhat.com> | 2018-08-07 08:11:04 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-08-07 08:11:04 -0700 |
commit | 8d7dcecc47738deb36cfb0ac7e6f2f4a78b3cde2 (patch) | |
tree | a93ff60b7744abf4d787b57e46b8cfbc604db802 | |
parent | d19d47c7191ad41cb5ada34cb1b6e5dee93ba208 (diff) | |
download | xfs-documentation-8d7dcecc47738deb36cfb0ac7e6f2f4a78b3cde2.tar.gz |
design: Document project quota inode2018-09-18
A project quota inode was introduced into V5 superblock allowing
project quotas and group quotas to be used simultaneously. However
on "Quota Inodes" section we still mention it's not possible to
use project and group quotas at sametime.
This patch documents this behavior for V5 and later superblocks,
while keeps documented the old behavior for earlier versions.
Signed-off-by: Marco Benatto <mbenatto@redhat.com>
[darrick: rephrase slightly]
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
-rw-r--r-- | design/XFS_Filesystem_Structure/internal_inodes.asciidoc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/design/XFS_Filesystem_Structure/internal_inodes.asciidoc b/design/XFS_Filesystem_Structure/internal_inodes.asciidoc index f5c2654..45eeb8b 100644 --- a/design/XFS_Filesystem_Structure/internal_inodes.asciidoc +++ b/design/XFS_Filesystem_Structure/internal_inodes.asciidoc @@ -8,9 +8,13 @@ accessible from the superblock. [[Quota_Inodes]] == Quota Inodes -If quotas are used, two inodes are allocated for user and group quota -management. If project quotas are used, these replace the group quota management -and therefore uses the group quota inode. +Prior to version 5 filesystems, two inodes can be allocated for quota +management. The first inode will be used for user quotas. The second inode +will be used for group quotas or project quotas, depending on mount options. +Group and project quotas are mutually exclusive features in these environments. + +In version 5 or later filesystems, each quota type is allocated its own inode, +making it possible to use group and project quota management simultaneously. * Project quota's primary purpose is to track and monitor disk usage for directories. For this to occur, the directory inode must have the @@ -28,7 +32,7 @@ multiplied by the size of +xfs_dqblk_t+ (136 bytes). .Quota inode layout image::images/76.png[] -Quota information is stored in the data extents of the two reserved quota +Quota information is stored in the data extents of the reserved quota inodes as an array of the +xfs_dqblk+ structures, where there is one array element for each ID in the system: |