Message ID | 20210818005547.14497-2-digetx@gmail.com |
---|---|
State | New |
Headers | show |
Series | [v5,1/5] block: Add alternative_gpt_sector() operation | expand |
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 111a3911c4d2..a662a8f5065f 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1848,6 +1848,7 @@ struct block_device_operations { int (*report_zones)(struct gendisk *, sector_t sector, unsigned int nr_zones, report_zones_cb cb, void *data); char *(*devnode)(struct gendisk *disk, umode_t *mode); + int (*alternative_gpt_sector)(struct block_device *, sector_t *); struct module *owner; const struct pr_ops *pr_ops; };
Add alternative_gpt_sector() block device operation which specifies alternative location of a GPT entry. This allows us to support Android devices which have GPT entry at a non-standard location and can't be repartitioned easily. Suggested-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> --- include/linux/blkdev.h | 1 + 1 file changed, 1 insertion(+)