]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/hfsplus/super.c
[PATCH] MIPS 32bit machines need fstatat64 support.
[karo-tx-linux.git] / fs / hfsplus / super.c
index b712d34d458d67ea9a6798b8d7dd407fa46c660d..7843f792a4b79494919338965bba8aa9dfdb27f4 100644 (file)
@@ -316,8 +316,9 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
        vhdr = HFSPLUS_SB(sb).s_vhdr;
 
        /* Copy parts of the volume header into the superblock */
-       sb->s_magic = be16_to_cpu(vhdr->signature);
-       if (be16_to_cpu(vhdr->version) != HFSPLUS_CURRENT_VERSION) {
+       sb->s_magic = HFSPLUS_VOLHEAD_SIG;
+       if (be16_to_cpu(vhdr->version) < HFSPLUS_MIN_VERSION ||
+           be16_to_cpu(vhdr->version) > HFSPLUS_CURRENT_VERSION) {
                printk(KERN_ERR "hfs: wrong filesystem version\n");
                goto cleanup;
        }