65ecbc7e0e
btrfs-convert currently can't handle more fragmented block groups when converting ext4 because the minimum size of a data chunk is 32MiB. When converting an ext4 fs with more fragmented block group with the disk almost full, we can end up hitting a ENOSPC problem [1] since smaller block groups (10MiB for example) end up being extended to 32MiB, leaving the free space tree smaller when converting it to btrfs. This patch adds error messages telling which needed bytes couldn't be allocated from the free space tree and shows the largest portion available: create btrfs filesystem: blocksize: 4096 nodesize: 16384 features: extref, skinny-metadata (default) checksum: crc32c free space report: total: 1073741824 free: 39124992 (3.64%) ERROR: failed to reserve 33554432 bytes for metadata chunk, largest available: 33488896 bytes ERROR: unable to create initial ctree: No space left on device Issue: #251 Reviewed-by: Neal Gompa <ngompa13@gmail.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
Makefile | ||
common.c | ||
common.h | ||
main.c | ||
source-ext2.c | ||
source-ext2.h | ||
source-fs.c | ||
source-fs.h | ||
source-reiserfs.c | ||
source-reiserfs.h |