dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [dm-devel] dm-init.c: boot up race with partitions
@ 2021-09-23  1:33 李平
  2021-09-24  2:41 ` Bart Van Assche
  0 siblings, 1 reply; 3+ messages in thread
From: 李平 @ 2021-09-23  1:33 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 200 bytes --]

Dear dm-devel: I encountered the same problem as this one. Is there a solution? refer:https://listman.redhat.com/archives/dm-devel/2021-April/msg00017.html [dm-devel] dm-init.c: boot up race with part

[-- Attachment #1.2: Type: text/html, Size: 11197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 97 bytes --]

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [dm-devel] dm-init.c: boot up race with partitions
@ 2021-04-05 21:38 Steven Walter
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Walter @ 2021-04-05 21:38 UTC (permalink / raw)
  To: dm-devel

I am using the dm-mod.create kernel command line parameter to create a verity device at boot.  Both the data device and hash device are partitions on an eMMC device.  Seemingly at random, the verity device fails to be created at boot because dm_init_init() (and wait_for_device_probe()) returned before the partitions had been scanned:

mmc1: new high speed MMC card at address 0001
device-mapper: table: 253:0: verity: Data device lookup failed
device-mapper: ioctl: error adding target to table
mmcblk1: mmc1:0001 064G30 58.2 GiB
mmcblk1boot0: mmc1:0001 064G30 partition 1 4.00 MiB
mmcblk1boot1: mmc1:0001 064G30 partition 2 4.00 MiB
mmcblk1rpmb: mmc1:0001 064G30 partition 3 4.00 MiB, chardev (247:0)
 mmcblk1: p1 p2 p3 p4 p5 p6 p7

I don't see how wait_for_device_probe() knows when partition scanning has been completed.  Is this a race or am I missing something?
--
- Steven Walter <steven@stevenwalter.org>
Sent from ProtonMail, encrypted email based in Switzerland.


--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-24  2:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23  1:33 [dm-devel] dm-init.c: boot up race with partitions 李平
2021-09-24  2:41 ` Bart Van Assche
  -- strict thread matches above, loose matches on Subject: below --
2021-04-05 21:38 Steven Walter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).