Commit 30da9995 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Android Build Cherrypicker Worker
Browse files

FROMGIT: block: add partition uuid into uevent as "PARTUUID"



Both most common formats have uuid in addition to partition name:
GPT: standard uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
DOS: 4 byte disk signature and 1 byte partition xxxxxxxx-xx

Tools from util-linux use the same notation for them.

Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reviewed-by: default avatarKyle Fortin <kyle.fortin@oracle.com>
[dianders: rebased to modern kernels]
Signed-off-by: default avatarDouglas Anderson <dianders@google.com>
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241004171340.v2.1.I938c91d10e454e841fdf5d64499a8ae8514dc004@changeid


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
(cherry picked from commit 758737d8
 git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git

 for-6.13/block)

Bug: 316324155
Test: PARTUUID shows up in uevent
Signed-off-by: default avatarDouglas Anderson <dianders@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:d5815ee061657ca7f34ce54c8c0fa316c95221d5)
Merged-In: I938c91d10e454e841fdf5d64499a8ae8514dc004
Change-Id: I938c91d10e454e841fdf5d64499a8ae8514dc004
parent ffd23879
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment