dm raid: add support for resync w/o metadata devices
authorHeinz Mauelshagen <heinzm@redhat.com>
Mon, 16 Jun 2025 14:50:05 +0000 (16:50 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 23 Jun 2025 10:35:37 +0000 (12:35 +0200)
commit9de4a3967caf1865a95aebdd63fccf213d174ede
treee413b9ad7a7ab3ab7bb5ff0ac73ca478c94fa306
parent75227ed6812cb869380c8fb6d41a845ae571781e
dm raid: add support for resync w/o metadata devices

Target does not honour the "sync" argument when activated w/o metadata
devices, e.g. with table line:
"0 $(blockdev --getsz $data1) raid raid1 2 0 sync 2 - $data1 - $data2".

Fix this to support temporary, transient raid devices useful
for data duplication.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-raid.c