Creating Linux virtual filesystems
Creating Linux virtual filesystems
Posted Apr 4, 2012 5:24 UTC (Wed) by crxz0193 (guest, #75555)Parent article: Creating Linux virtual filesystems
to make it work with the linux 3.0 change following:
/*
* Stuff to pass in when registering the filesystem.
*/
static struct super_block *lfs_get_super(struct file_system_type *fst,
int flags, char *devname, void *data)
{
/* return get_sb_single(fst, flags, data, lfs_fill_super, mnt);*/
return mount_single(fst, flags, data, lfs_fill_super);
}
/*
* Stuff to pass in when registering the filesystem.
*/
static struct super_block *lfs_get_super(struct file_system_type *fst,
int flags, char *devname, void *data)
{
/* return get_sb_single(fst, flags, data, lfs_fill_super, mnt);*/
return mount_single(fst, flags, data, lfs_fill_super);
}
static struct file_system_type lfs_type = {
.owner = THIS_MODULE,
.name = "lwnfs",
.mount = lfs_get_super,
/*.get_sb = lfs_get_super,*/
.kill_sb = kill_litter_super,
};
