Changeset View
Changeset View
Standalone View
Standalone View
head/sys/ufs/ffs/ffs_vfsops.c
Show First 20 Lines • Show All 590 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Compatibility with old mount system call. | * Compatibility with old mount system call. | ||||
*/ | */ | ||||
static int | static int | ||||
ffs_cmount(struct mntarg *ma, void *data, uint64_t flags) | ffs_cmount(struct mntarg *ma, void *data, uint64_t flags) | ||||
{ | { | ||||
struct ufs_args args; | struct ufs_args args; | ||||
struct export_args exp; | |||||
int error; | int error; | ||||
if (data == NULL) | if (data == NULL) | ||||
return (EINVAL); | return (EINVAL); | ||||
error = copyin(data, &args, sizeof args); | error = copyin(data, &args, sizeof args); | ||||
if (error) | if (error) | ||||
return (error); | return (error); | ||||
vfs_oexport_conv(&args.export, &exp); | |||||
ma = mount_argsu(ma, "from", args.fspec, MAXPATHLEN); | ma = mount_argsu(ma, "from", args.fspec, MAXPATHLEN); | ||||
ma = mount_arg(ma, "export", &exp, sizeof(exp)); | ma = mount_arg(ma, "export", &args.export, sizeof(args.export)); | ||||
error = kernel_mount(ma, flags); | error = kernel_mount(ma, flags); | ||||
return (error); | return (error); | ||||
} | } | ||||
/* | /* | ||||
* Reload all incore data for a filesystem (used after running fsck on | * Reload all incore data for a filesystem (used after running fsck on | ||||
* the root filesystem and finding things to fix). If the 'force' flag | * the root filesystem and finding things to fix). If the 'force' flag | ||||
▲ Show 20 Lines • Show All 1,846 Lines • Show Last 20 Lines |