public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] tst_detach_device: Clear leftover partitions
Date: Fri, 12 Dec 2025 15:39:04 +0100	[thread overview]
Message-ID: <20251212143904.GE125889@pevik> (raw)
In-Reply-To: <20251212104025.15924-1-mdoucha@suse.cz>

Hi Martin,

> 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.

Nice work, thanks!

Looping ioctl_loop01.c and ioctl_ficlone02.c I reproduce the problem after 171
iterations:

ioctl_loop01.c:75: TPASS: access /sys/block/loop0/loop0p1 succeeds
tst_device.c:321: TWARN: Detached device /dev/loop0 has leftover partitions

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2025-12-12 14:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-12 10:40 [LTP] [PATCH] tst_detach_device: Clear leftover partitions Martin Doucha
2025-12-12 14:39 ` Petr Vorel [this message]
2025-12-16 12:13 ` Andrea Cervesato via ltp
2025-12-16 12:16   ` Martin Doucha
2025-12-16 12:19     ` Andrea Cervesato via ltp
2025-12-18 13:11 ` Andrea Cervesato via ltp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251212143904.GE125889@pevik \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    --cc=mdoucha@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox