]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/udev: Don't handle change event on raw devices
authorXiao Ni <xni@redhat.com>
Wed, 4 Jan 2023 16:29:20 +0000 (00:29 +0800)
committerJes Sorensen <jes@trained-monkey.org>
Wed, 4 Jan 2023 23:37:56 +0000 (18:37 -0500)
commit24d329fc97a64ec185ef27e59730f3f058c09029
tree75c41128ab210ca96c0435680db14a48a570961f
parentb938519e7719c992dae2d61c796c45fe49e6b71b
mdadm/udev: Don't handle change event on raw devices

The raw devices are ready when add event happpens and the raid
can be assembled. So there is no need to handle change events.
And it can cause some inconvenient problems.

For example, the OS is installed on md0(/root) and md1(/home).
md0 and md1 are created on partitions. When it wants to re-install
OS, anaconda can't clear the storage configure. It deletes one
partition and does some jobs. The change event happens. Now
the raid device is assembled again. It can't delete the other
partitions.

So in this patch, we don't handle change event on raw devices
anymore.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
udev-md-raid-assembly.rules