repart: Stat temporary file again after mkfs
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 5 Aug 2023 17:31:09 +0000 (19:31 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 5 Aug 2023 22:08:05 +0000 (23:08 +0100)
commit6ac299e3cedb1d9eb8df88010c4994a90aa12a9a
treec2081d1aa35f7a054889505a019568b54e34311b
parentcc1e1bb03e49ccb90f36173a3d1ff10ab5676eb0
repart: Stat temporary file again after mkfs

This makes sure we use the actual size after mkfs which seems to be
important for btrfs as it refuses to mount the partition otherwise.

Follow-up for 2843df3e5734aa07b82b96ba46b799921a6495b8
src/partition/repart.c