FreeBSD/sys/ufs/ffs/ffs_vfsops.c
/*
 * Compatibility with old mount system call.
 */
Compatibility with old mount system call.
Compatibility with old mount system call .
static int
ffs_cmount(struct mntarg *ma, void *data, uint64_t flags)
{
	struct ufs_args args;
	struct export_args exp;
	int error;
	if (data == NULL)
		return (EINVAL);
	error = copyin(data, &args, sizeof args);
	if (error)
		return (error);
	vfs_oexport_conv(&args.export, &exp);
	ma = mount_argsu(ma, "from", args.fspec, MAXPATHLEN);
	ma = mount_arg(ma, "export", &exp, sizeof(exp));
	error = kernel_mount(ma, flags);
	return (error);
}
static int ffs_cmount ( struct mntarg * ma , void * data , uint64_t flags ) { struct ufs_args args ; struct export_args exp ; int error ; if ( data == NULL ) return ( EINVAL ) ; error = copyin ( data , & args , sizeof args ) ; if ( error ) return ( error ) ; vfs_oexport_conv ( & args . export , & exp ) ; ma = mount_argsu ( ma , " " , args . fspec , MAXPATHLEN ) ; ma = mount_arg ( ma , " " , & exp , sizeof ( exp ) ) ; error = kernel_mount ( ma , flags ) ; return ( error ) ; }
Compatibility with old mount system call.
Compatibility with old mount system call .