aboutsummaryrefslogtreecommitdiffstats
path: root/block/partitions/sun.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-03-24 08:25:27 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-24 07:57:08 -0600
commit0226e9ead44b2eb8f2471d24e0b0c5ff60bc322c (patch)
tree747c55518f60af424797c106d92cfd68c5c695a2 /block/partitions/sun.c
parentblock: move struct partition out of genhd.h (diff)
downloadlinux-dev-0226e9ead44b2eb8f2471d24e0b0c5ff60bc322c.tar.xz
linux-dev-0226e9ead44b2eb8f2471d24e0b0c5ff60bc322c.zip
block: move the *_PARTITION enum out of genhd.h
The enum containing the *_PARTITION symbolic names is only relevant for the partition parser. More specifically most values are MSDOS partition table system indicators and thus should go straight into msdos.c. One value is only used by the sun partition parser, and the sun and sgi partition parsers use the same value as the x86 Linux RAID indicator to also indicate RAID autodetection. Duplicate them in sun.c and sgi.c given that the different partition types use entirely different values otherwise. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions/sun.c')
-rw-r--r--block/partitions/sun.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/block/partitions/sun.c b/block/partitions/sun.c
index 28b44100f2b1..47dc53eccf77 100644
--- a/block/partitions/sun.c
+++ b/block/partitions/sun.c
@@ -13,6 +13,11 @@
#define SUN_LABEL_MAGIC 0xDABE
#define SUN_VTOC_SANITY 0x600DDEEE
+enum {
+ SUN_WHOLE_DISK = 5,
+ LINUX_RAID_PARTITION = 0xfd, /* autodetect RAID partition */
+};
+
int sun_partition(struct parsed_partitions *state)
{
int i;