Beispiel #1
0
int msdos_fill_super(struct super_block *sb,void *data, int silent)
{
	int res;

	res = fat_fill_super(sb, data, silent, &msdos_dir_inode_operations, 0);
	if (res)
		return res;

	sb->s_root->d_op = &msdos_dentry_operations;
	return 0;
}
Beispiel #2
0
// sb points to super_block already allocated
// data: no idea of what it is but didn't use it at all
// silent: flag => whether to output msg when error occurrs
static int msdos_fill_super(struct super_block *sb, void *data, int silent)
{
	int res;
        printk (KERN_INFO "myfat: msdos_fill_super\n");

        // fill most part of the super block
	res = fat_fill_super(sb, data, silent, &msdos_dir_inode_operations, 0);
	if (res)
		return res;

	sb->s_flags |= MS_NOATIME;
	sb->s_root->d_op = &msdos_dentry_operations;
	return 0;
}
Beispiel #3
0
static int vxext_fill_super(struct super_block *sb, void *data, int silent)
{
	return fat_fill_super(sb, data, silent, 0, setup);
}