Re: make-bcache bug?

Kai Krakow
2017-05-15T18:37:56Z

Am Mon, 15 May 2017 13:52:09 +0100
schrieb Nix <nix@esperi.org.uk>:

> On 14 May 2017, Kai Krakow said:
> > I had done this previously, too, and had no such message. But I had
> > to use wipefs anyway because otherwise udev came and triggered the
> > device for reasons I couldn't really follow.
>
> udev does a blkid to see how the block device needs to be activated:
> this relies on precisely the information wipefs removes. Avoiding this
> problem is why wipefs *exists*. :)

Yes, but something triggered udev when it shouldn't...

This ends up in unregistering/stopping the bcache, then wipefs the
cdev, then look if udev was triggered and eventually stop it again.

I guess everytime I ran "fdisk -l" to double-check the devices, or
"lsblk", or "blkid", udev was triggered and re-enabled the bcache. This
is a race you cannot win. ;-)

--
Regards,
Kai

Replies to list-only preferred.