block: add gpt partitioning

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-15 00:07:28 -04:00
commit 25c0b538d2
5 changed files with 177 additions and 3 deletions

10
kernel/block/partition.h Normal file
View file

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _PARTITION_H_
#define _PARTITION_H_
#include <kernel/types.h>
#include <kernel/block.h>
bool block_has_gpt_header(struct block_device *bdev);
#endif /* _PARTITION_H_ */