[LTP] [PATCH] tst_detach_device: Clear leftover partitions
Andrea Cervesato
andrea.cervesato@suse.com
Tue Dec 16 13:13:55 CET 2025
Hi!
On Fri Dec 12, 2025 at 11:40 AM CET, Martin Doucha wrote:
> Some kernels have a race condition during loop device release
> which results in partitions being left over on unattached device.
> The partitions then cause mkfs.vfat failures in later tests.
>
> Check for loop device partitions after detaching it and clear them
> if necessary.
In general the code looks good, but the sentence "Some kernels have a
race condition during loop device release" sounds like a kernel bug
that we are working around with this feature. I know probably this
is not the case, but if I read the sentence this is what I guess.
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list