]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: make XFS_DQUOT_CLUSTER_SIZE_FSB part of the ondisk format
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 4 Sep 2020 20:03:20 +0000 (16:03 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 4 Sep 2020 20:03:20 +0000 (16:03 -0400)
commit8330c89c9e2dd49f2ab4ec71865ee23f409c5237
tree99019fce34e6282e0a33cce8fe52faeb4d2e8165
parenta579493d111090a6a1e394463b411583d554e227
xfs: make XFS_DQUOT_CLUSTER_SIZE_FSB part of the ondisk format

Source kernel commit: cb64e1299364a51bf60e96f2a35df31f47aa2eee

Move the dquot cluster size #define to xfs_format.h.  It is an important
part of the ondisk format because the ondisk dquot record size is not an
even power of two, which means that the buffer size we use is
significant here because the kernel leaves slack space at the end of the
buffer to avoid having to deal with a dquot record crossing a block
boundary.

This is also an excuse to fix one of the longstanding discrepancies
between kernel and userspace libxfs headers.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_format.h
libxfs/xfs_quota_defs.h