aboutsummaryrefslogtreecommitdiffstats
path: root/fs/partitions/sun.h
diff options
context:
space:
mode:
authorMark Fortescue <mark@mtfhpc.demon.co.uk>2007-07-26 00:17:22 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-07-30 00:27:31 -0700
commit3961bae0ac030a70ae2e0578270203889021f1a1 (patch)
tree482c621f9d07027bcf1cac5be1e02943089ac63f /fs/partitions/sun.h
parentb65f0755fd08c92f377fb434076865284283e2c1 (diff)
downloadkernel_samsung_smdk4412-3961bae0ac030a70ae2e0578270203889021f1a1.zip
kernel_samsung_smdk4412-3961bae0ac030a70ae2e0578270203889021f1a1.tar.gz
kernel_samsung_smdk4412-3961bae0ac030a70ae2e0578270203889021f1a1.tar.bz2
[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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/partitions/sun.h b/fs/partitions/sun.h
index b1b19fd..7f864d1 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);