kdave / btrfs-progs

Development of userspace BTRFS tools
GNU General Public License v2.0
527 stars 239 forks source link

Tests: use direct io for devices #701

Open kdave opened 8 months ago

kdave commented 8 months ago

https://lore.kernel.org/linux-btrfs/20230828154642.GE14420@twin.jikos.cz/T/#u

With recent problems in CI where loop devices are not recognized after mkfs and fail mount we need to revisit how the devices are used. Outlined in the link, use only direct io for loop devices, add helpers that wrap that for device preparation as we can't use the automatic -o loop mount and audit all tests.