md: register new md sysfs file 'uuid' read-only
authorSebastian Parschauer <s.parschauer@gmx.de>
Tue, 28 Jul 2020 10:01:39 +0000 (12:01 +0200)
committerSong Liu <songliubraving@fb.com>
Mon, 3 Aug 2020 06:03:51 +0000 (23:03 -0700)
commitec164d07aa771370c7c24c1fa7f7692ad30f01cb
tree6187f353fe1098d7b40d8668387526b797949e58
parentd9c0fa509eafb31605bddda34e2e39f4354563b6
md: register new md sysfs file 'uuid' read-only

Report the UUID of the MD array in the following format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

This is useful if you don't want to wait for udev to identify array.
And it is also easy for script to monitor it with the format.

Signed-off-by: Sebastian Parschauer <s.parschauer@gmx.de>
[Guoqing: mention the change in md.rst]
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Documentation/admin-guide/md.rst
drivers/md/md.c