Next Internals of ext2fs 17

ext2fs Superblock

        es = (struct ext2_super_block *) (((char *)bh->b_data) + offset);
        sb->s_magic = le16_to_cpu(es->s_magic);
        if (sb->s_magic != EXT2_SUPER_MAGIC) {
                if (!silent)
                        printk ("VFS: Can't find an ext2 filesystem on dev "
                                "%s.\n", bdevname(dev));
                ...
                return NULL;
        }


Next Copyright © 2001 M. J. Dominus