block: Add alternative_gpt_sector() operation
authorDmitry Osipenko <digetx@gmail.com>
Fri, 20 Aug 2021 00:45:33 +0000 (03:45 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Aug 2021 16:09:06 +0000 (10:09 -0600)
commit0bdfbca8a623e262e0f343b143151000a300cbaf
tree92ac78321d877a4ede589b75a391618b442fa913
parentd9cf3bd531844ffbfe94b16e417037a16efc988d
block: Add alternative_gpt_sector() operation

Add alternative_gpt_sector() block device operation which specifies
alternative location of a GPT entry. This allows us to support Android
devices that have GPT entry at a non-standard location and can't be
repartitioned easily.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20210820004536.15791-2-digetx@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h