37cf7de3a1
[BUG] misc-test/021 will fail with the following error message: ====== RUN CHECK root_helper btrfs-progs/btrfs-image -r btrfs-progs/tests//test.img /dev/loop2 ERROR: failed to enlarge result image: Invalid argument ERROR: failed to fix chunks and devices mapping, the fs may not be mountable: Invalid argument extent buffer leak: start 30638080 len 16384 extent buffer leak: start 30408704 len 16384 WARNING: dirty eb leak (aborted trans): start 30408704 len 16384 ERROR: restore failed: Invalid argument failed: root_helper btrfs-progs/btrfs-image -r btrfs-progs/tests//test.img /dev/loop2 test failed for case 021-image-multi-devices [CAUSE] For misc-test/021, we're using loopback device, which doesn't support ftruncate. That's why it returns EINVAL. [FIX] Only call ftruncate64() if we're operating on a regluar file. Fixes: a7a44164c84e ("btrfs-progs: image: Use correct device size when restoring") Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
main.c | ||
metadump.h | ||
sanitize.c | ||
sanitize.h |