From: Andries Brouwer <Andries.Brouwer@cwi.nl>
To: torvalds@osdl.org, akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] new Solaris partition ID
Date: Tue, 9 Nov 2004 21:50:39 +0100 [thread overview]
Message-ID: <20041109205038.GA3423@apps.cwi.nl> (raw)
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 */
reply other threads:[~2004-11-09 20:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041109205038.GA3423@apps.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.