generic/563 failure caused by losetup no longer handles block device anymore
Hi,
Recently generic/563 is failing on btrfs and ext4, and it turns out the losetup inside _create_loop_device_like_bdev() is not properly creating a valid loopback device if a block device file is passed in:
E.g:
# lsblk /dev/test/scratch1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS test-scratch1 253:2 0 10G 0 lvm
# losetup -f --show /dev/test/scratch1 /dev/loop0
# lsblk /dev/loop0 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 0B 0 loop
Thus all filesystems, not only btrfs is affected. This looks like a regression in loopback device size handling.
What should we as the next step? Waiting for loopback fix or start using files inside TEST_MNT as a workaround?
Thanks,
Qu
Quoted 17 lines · Qu Wenruo
Hi,
Recently generic/563 is failing on btrfs and ext4, and it turns out the losetup inside
_create_loop_device_like_bdev()is not properly creating a valid loopback device if a block device file is passed in:E.g:
# lsblk
/dev/test/scratch1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS test-scratch1 253:2 0 10G 0 lvm# losetup -f --show /dev/test/scratch1 /dev/loop0# lsblk /dev/loop0 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 0B 0 loop
Quoted 6 lines
Thus all filesystems, not only btrfs is affected. This looks like a regression in loopback device size handling.
What should we as the next step? Waiting for loopback fix or start using files inside
TEST_MNTas a workaround?
This looks like it might be the same thing that Lennart references here:
https://lore.kernel.org/linux-block/[email protected]/
Which should be fixed in -rc4 according to that email.
Hope this helps;
Sweet Tea
Quoted 24 lines · Sweet Tea Dorminy
Quoted 21 lines · Qu Wenruo
Hi,
Recently generic/563 is failing on btrfs and ext4, and it turns out the losetup inside
_create_loop_device_like_bdev()is not properly creating a valid loopback device if a block device file is passed in:E.g:
# lsblk
/dev/test/scratch1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS test-scratch1 253:2 0 10G 0 lvm# losetup -f --show /dev/test/scratch1 /dev/loop0# lsblk /dev/loop0 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 0B 0 loopThus all filesystems, not only btrfs is affected. This looks like a regression in loopback device size handling.
Quoted 8 lines
Quoted 2 lines
What should we as the next step? Waiting for loopback fix or start using files inside
TEST_MNTas a workaround?This looks like it might be the same thing that Lennart references here:
https://lore.kernel.org/linux-block/1182267c- [email protected]/Which should be fixed in -rc4 according to that email.
Hope this helps;
Thanks a lot. With that fix applied, now the test passes again.
Thanks,
Qu
Quoted 2 lines
Sweet Tea