diff options
author | Mark Fortescue <mark@mtfhpc.demon.co.uk> | 2007-07-26 00:17:22 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-30 00:27:31 -0700 |
commit | 3961bae0ac030a70ae2e0578270203889021f1a1 (patch) | |
tree | 482c621f9d07027bcf1cac5be1e02943089ac63f /fs/partitions/sun.h | |
parent | b65f0755fd08c92f377fb434076865284283e2c1 (diff) |
[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 'fs/partitions/sun.h')
-rw-r--r-- | fs/partitions/sun.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |