partitions/ibm: Introduce defines for magic string length values
authorJan Höppner <hoeppner@linux.ibm.com>
Fri, 15 Sep 2023 13:10:01 +0000 (15:10 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Oct 2023 14:04:08 +0000 (08:04 -0600)
commita31281acc4a4e051a0bf2f1d3556ba4deea4d2a0
tree5364f84fc21ffeada0c7b86f7d38b26252ba2c87
parentf5f43aae6f336ae436759144a31879375e65ed28
partitions/ibm: Introduce defines for magic string length values

The length values for volume label type and volume label id are
hard-coded in several places. Provide defines for those values and
replace all occurrences accordingly.

Note that the length is defined and used, and not the size since the
volume label type string and volume label id string are not
nul-terminated.

Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20230915131001.697070-4-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/ibm.c