summaryrefslogtreecommitdiffstats
path: root/fs/partitions/sun.h
diff options
context:
space:
mode:
authorMark Fortescue <mark@mtfhpc.demon.co.uk>2007-07-26 09:17:22 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-07-30 09:27:31 +0200
commit3961bae0ac030a70ae2e0578270203889021f1a1 (patch)
tree482c621f9d07027bcf1cac5be1e02943089ac63f /fs/partitions/sun.h
parent[SPARC]: Fix floppy on some sun4c systems. (diff)
downloadlinux-3961bae0ac030a70ae2e0578270203889021f1a1.tar.xz
linux-3961bae0ac030a70ae2e0578270203889021f1a1.zip
[PARTITION]: Sun/Solaris VTOC table corrections
Start doing VTOC validation before using its contents. The validation is adjusted so as not to break existing setups that do not set the VTOC version, sanity and partition count entries. VTOC tables with more than 8 partitions will NOT be used. Signed-off-by: Mark Fortescue <mark@mtfhpc.demon.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--fs/partitions/sun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/partitions/sun.h b/fs/partitions/sun.h
index b1b19fda7b22..7f864d1f86d4 100644
--- a/fs/partitions/sun.h
+++ b/fs/partitions/sun.h
@@ -3,5 +3,6 @@
*/
#define SUN_LABEL_MAGIC 0xDABE
+#define SUN_VTOC_SANITY 0x600DDEEE
int sun_partition(struct parsed_partitions *state, struct block_device *bdev);