]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: sparse inode chunks feature helpers and mount requirements
authorBrian Foster <bfoster@redhat.com>
Thu, 28 May 2015 22:57:27 +0000 (08:57 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Jun 2015 05:07:04 +0000 (15:07 +1000)
commit370b674016e59d641a6b243e541ea1a736d7c913
treef15cc65a20971060d5f160594f998161e20e420e
parentac685e6f9047cde4379fec5d532511a33ee2076c
xfs: sparse inode chunks feature helpers and mount requirements

The sparse inode chunks feature uses the helper function to enable the
allocation of sparse inode chunks. The incompatible feature bit is set
on disk at mkfs time to prevent mount from unsupported kernels.

Also, enforce the inode alignment requirements required for sparse inode
chunks at mount time. When enabled, full inode chunks (and all inode
record) alignment is increased from cluster size to inode chunk size.
Sparse inode alignment must match the cluster size of the fs. Both
superblock alignment fields are set as such by mkfs when sparse inode
support is enabled.

Finally, warn that sparse inode chunks is an experimental feature until
further notice.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_format.h
libxfs/xfs_sb.c