]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: define the on-disk rmap btree format
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 10 Aug 2016 04:33:20 +0000 (14:33 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 10 Aug 2016 04:33:20 +0000 (14:33 +1000)
commitb3a96b464af09695cde1b0c9000a29904ff4e5c0
treeca6e7edbdeae0bac018ba4adc16181a6aaef9664
parent631ac87acb0cba6ff4c7ab141925a898eba6facb
xfs: define the on-disk rmap btree format

Source kernel commit: 035e00acb5c719bd003639b90716a7e94e023b73

Originally-From: Dave Chinner <dchinner@redhat.com>

Now we have all the surrounding call infrastructure in place, we can
start filling out the rmap btree implementation. Start with the
on-disk btree format; add everything needed to read, write and
manipulate rmap btree blocks. This prepares the way for adding the
btree operations implementation.

[darrick: record owner and offset info in rmap btree]
[darrick: fork, bmbt and unwritten state in rmap btree]
[darrick: flags are a separate field in xfs_rmap_irec]
[darrick: calculate maxlevels separately]
[darrick: move the 'unwritten' bit into unused parts of rm_offset]

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/xfs_mount.h
libxfs/Makefile
libxfs/init.c
libxfs/xfs_btree.c
libxfs/xfs_btree.h
libxfs/xfs_format.h
libxfs/xfs_rmap.h
libxfs/xfs_rmap_btree.c [new file with mode: 0644]
libxfs/xfs_rmap_btree.h
libxfs/xfs_sb.c
libxfs/xfs_shared.h