um: ubd: Set device serial attribute from cmdline
authorChristopher Obbard <chris.obbard@collabora.com>
Mon, 23 Nov 2020 18:31:37 +0000 (18:31 +0000)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:22:01 +0000 (22:22 +0100)
commitef3ba87cb7c911bb5073e9ad30c4b37369e1a060
tree3960aa133a3c10faf21f207962de428ceaf589aa
parent517f60206ee5d5f75c44bd9c8b1683d1d18a616a
um: ubd: Set device serial attribute from cmdline

Adds the ability to set the UBD device serial number from the
commandline, disabling the serial number functionality by default.

In some cases it may be useful to set a serial to the UBD device, such
that downstream users (i.e. udev) can use this information to better
describe the hardware to the user from the UML cmdline. In our case we
use this parameter to create some entries under /dev/disk/by-ubd-id/
for each of the UBD devices passed through the UML cmdline.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/ubd_kern.c