From 3961bae0ac030a70ae2e0578270203889021f1a1 Mon Sep 17 00:00:00 2001 From: Mark Fortescue Date: Thu, 26 Jul 2007 00:17:22 -0700 Subject: [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 Signed-off-by: David S. Miller --- fs/partitions/sun.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/partitions/sun.h') diff --git a/fs/partitions/sun.h b/fs/partitions/sun.h index b1b19fda7b2..7f864d1f86d 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); -- cgit v1.2.3