summaryrefslogtreecommitdiffstats
path: root/block/partitions/sgi.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 14:57:08 +0100
commit0226e9ead44b2eb8f2471d24e0b0c5ff60bc322c (patch)
tree747c55518f60af424797c106d92cfd68c5c695a2 /block/partitions/sgi.c
parentblock: move struct partition out of genhd.h (diff)
downloadlinux-0226e9ead44b2eb8f2471d24e0b0c5ff60bc322c.tar.xz
linux-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/sgi.c')
-rw-r--r--block/partitions/sgi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/block/partitions/sgi.c b/block/partitions/sgi.c
index 927cf501603e..4273f1bb0515 100644
--- a/block/partitions/sgi.c
+++ b/block/partitions/sgi.c
@@ -9,6 +9,10 @@
#define SGI_LABEL_MAGIC 0x0be5a941
+enum {
+ LINUX_RAID_PARTITION = 0xfd, /* autodetect RAID partition */
+};
+
struct sgi_disklabel {
__be32 magic_mushroom; /* Big fat spliff... */
__be16 root_part_num; /* Root partition number */