* [PATCH] new Solaris partition ID
@ 2004-11-09 20:50 Andries Brouwer
0 siblings, 0 replies; only message in thread
From: Andries Brouwer @ 2004-11-09 20:50 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-kernel
Sun tells me:
For many years both Solaris x86 and Linux have used the same fdisk
partition id of 0x82. Solaris uses that identifier to allocate disk
space which is then further subdivided by the Solaris VTOC (Volume
Table of Contents) and Linux uses that id as the identifier for its
swap partition.
The new release of Solaris should be out early next year. Solaris
will begin using a partition id of 0xbf. We will continue to support
the older partition id value of 0x82 for compatibility reasons.
Solaris's fdisk program has been enhanced to allow system administrators
to switch back and forth between the new and old identifier without any
loss of data.
So, the patch below may be useful to some people a few months from now.
Andries
diff -uprN -X /linux/dontdiff a/fs/partitions/msdos.c b/fs/partitions/msdos.c
--- a/fs/partitions/msdos.c 2004-10-30 21:44:02.000000000 +0200
+++ b/fs/partitions/msdos.c 2004-11-09 21:43:17.000000000 +0100
@@ -374,6 +374,7 @@ static struct {
{MINIX_PARTITION, parse_minix},
{UNIXWARE_PARTITION, parse_unixware},
{SOLARIS_X86_PARTITION, parse_solaris_x86},
+ {NEW_SOLARIS_X86_PARTITION, parse_solaris_x86},
{0, NULL},
};
diff -uprN -X /linux/dontdiff a/include/linux/genhd.h b/include/linux/genhd.h
--- a/include/linux/genhd.h 2004-10-30 21:44:05.000000000 +0200
+++ b/include/linux/genhd.h 2004-11-09 21:44:58.000000000 +0100
@@ -28,6 +28,7 @@ enum {
LINUX_RAID_PARTITION = 0xfd, /* autodetect RAID partition */
SOLARIS_X86_PARTITION = LINUX_SWAP_PARTITION,
+ NEW_SOLARIS_X86_PARTITION = 0xbf,
DM6_AUX1PARTITION = 0x51, /* no DDO: use xlated geom */
DM6_AUX3PARTITION = 0x53, /* no DDO: use xlated geom */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-09 20:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-09 20:50 [PATCH] new Solaris partition ID Andries Brouwer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.