]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix block reservation in mk_rsumino
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 4 Oct 2018 19:18:01 +0000 (14:18 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 4 Oct 2018 19:18:01 +0000 (14:18 -0500)
commit1530d232c4a5364d2a81047662f3b9d0026945ed
tree8da59654b6e7f5fa19597671b6a100635c210c4e
parenta7bbf186ec35e2f595cfe327e80502feca260b24
xfs_repair: fix block reservation in mk_rsumino

The functions mk_rsumino and rtinit both allocate transactions to create
the realtime summary inode.  In order to allocate and map blocks to the
rtsummary file, these transactions require a block reservation.
However, despite the comments in mk_rsumino about lifting the code from
mkfs, it doesn't actually copy the same reservation calculation that
mkfs uses in rtinit().  Practically speaking this has no effect since
userspace doesn't care about transaction block reservations, but fix
this logic bomb anyway.

[sandeen: tweaks to backport before libxfs updates]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/phase6.c