Example #1
0
static int dev_get_sb(struct file_system_type *fs_type, int flags,
		      const char *dev_name, void *data, struct vfsmount *mnt)
{
#ifdef CONFIG_TMPFS
	return get_sb_single(fs_type, flags, data, shmem_fill_super, mnt);
#else
	return get_sb_single(fs_type, flags, data, ramfs_fill_super, mnt);
#endif
}
Example #2
0
static int replay_get_sb(struct file_system_type *fs_type,
		int flags, const char *dev_name, void *data, struct vfsmount *mnt) {

	vfs_loc = mnt;

	return get_sb_single(fs_type, flags, data, replayfs_fill_super, mnt);
}
Example #3
0
static int proc_get_sb(struct file_system_type *fs_type,
	int flags, const char *dev_name, void *data, struct vfsmount *mnt)
{
	if (proc_mnt) {
		/* Seed the root directory with a pid so it doesn't need
		 * to be special in base.c.  I would do this earlier but
		 * the only task alive when /proc is mounted the first time
		 * is the init_task and it doesn't have any pids.
		 */
		struct proc_inode *ei;
		ei = PROC_I(proc_mnt->mnt_sb->s_root->d_inode);
		if (!ei->pid)
			ei->pid = find_get_pid(1);
	}
	return get_sb_single(fs_type, flags, data, proc_fill_super, mnt);
}
Example #4
0
static int capifs_get_sb(struct file_system_type *fs_type,
	int flags, const char *dev_name, void *data, struct vfsmount *mnt)
{
	return get_sb_single(fs_type, flags, data, capifs_fill_super, mnt);
}
Example #5
0
/**
 * \<\<private\>\> Super block as assigned a nonexistent device and
 * the super block is obtained via get_sb_single(). The kernel
 * function get_sb_single() ensures that only 1 instance of the
 * filesystem can be mounted at a time.  Custom method to fill the
 * super block is passed as parameter.
 *
 * @param *fst - points to the file system type, that is being mounted
 * @param flags - 
 * @param *devname - device name, on which the file system resides (it has no meaning here)
 * @param *data - pointer to private filesystem data - not used
 *
 * @return - pointer to the super block object that has been created
 */
static int tcmi_ctlfs_get_super(struct file_system_type *fst,
						int flags, const char *devname, void *data, struct vfsmount *mnt)
{
	return get_sb_single(fst, flags, data, tcmi_ctlfs_fill_super, mnt);
}
Example #6
0
static struct super_block *debug_get_sb(struct file_system_type *fs_type,
				        int flags, const char *dev_name,
					void *data)
{
	return get_sb_single(fs_type, flags, data, debug_fill_super);
}