A UFS boot W-LU answers INQUIRY with peripheral device type 0x1e. Add a pretty-print string for it so that it shows up meaningfully in the device listing.
Signed-off-by: Alexey Charkov <[email protected]> --- disk/part.c | 3 +++ include/part.h | 1 + 2 files changed, 4 insertions(+) diff --git a/disk/part.c b/disk/part.c index 316a0b09a097..bd9be175f8e1 100644 --- a/disk/part.c +++ b/disk/part.c @@ -237,6 +237,9 @@ void dev_print(struct blk_desc *desc) case DEV_TYPE_TAPE: puts ("Tape"); break; + case DEV_TYPE_WLUN: + puts("Well known LU"); + break; default: printf("# %02X #", desc->type & 0x1F); break; diff --git a/include/part.h b/include/part.h index a9d0039a522d..a7f8ea7157c4 100644 --- a/include/part.h +++ b/include/part.h @@ -47,6 +47,7 @@ struct block_drvr { #define DEV_TYPE_TAPE 0x01 /* Tape */ #define DEV_TYPE_CDROM 0x05 /* CD-ROM */ #define DEV_TYPE_OPDISK 0x07 /* optical disk */ +#define DEV_TYPE_WLUN 0x1e /* well known logical unit */ #define PART_NAME_LEN 32 #define PART_TYPE_LEN 32 -- 2.54.0
