block: add a "tag" for block status codes
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Jun 2026 14:06:45 +0000 (16:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Jun 2026 16:40:35 +0000 (10:40 -0600)
commitce351560b714403acfdeed86ef96675d229da837
treefa18bd7e12f12ee900828d25cfde761a7d6ceb98
parent8c8ebed16581faf3b3e97336aeca3d8226c4435f
block: add a "tag" for block status codes

The full name of the status codes is not good for user interfaces as it
can contain white spaces.  Add the name of the status code without the
BLK_STS_ prefix as a tag so that it can be used for user interfaces.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Md Haris Iqbal <haris.iqbal@linux.dev>
Link: https://patch.msgid.link/20260611140703.2401204-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk.h