Next Internals of ext2fs 13

Superblocks

        mount("/dev/hdb2", "/home", "ext2", ...);
        long do_mount(char * dev_name, char * dir_name, char *type_page,
                          unsigned long flags, void *data_page)
        {
            ...
            fstype = get_fs_type(type_page);
            if (!fstype)            
                return -ENODEV;
            ...
            if (...) ...
            else if (fstype->fs_flags & FS_REQUIRES_DEV)
                sb = get_sb_bdev(fstype, dev_name, flags, data_page);
            ...
        }


Next Copyright © 2001 M. J. Dominus