summaryrefslogtreecommitdiff
path: root/block/partitions/sgi.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-03-24 10:25:27 +0300
committerJens Axboe <axboe@kernel.dk>2020-03-24 16:57:08 +0300
commit0226e9ead44b2eb8f2471d24e0b0c5ff60bc322c (patch)
tree747c55518f60af424797c106d92cfd68c5c695a2 /block/partitions/sgi.c
parent1442f76d4317b420580e11238d20789708c742a4 (diff)
downloadlinux-0226e9ead44b2eb8f2471d24e0b0c5ff60bc322c.tar.xz
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 */