Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/cd9660/cd9660_vfsops.c
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* VFS Operations. | * VFS Operations. | ||||
*/ | */ | ||||
static int | static int | ||||
cd9660_cmount(struct mntarg *ma, void *data, uint64_t flags) | cd9660_cmount(struct mntarg *ma, void *data, uint64_t flags) | ||||
{ | { | ||||
struct iso_args args; | struct iso_args args; | ||||
struct export_args exp; | |||||
int error; | int error; | ||||
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)); | ||||
ma = mount_argsu(ma, "cs_disk", args.cs_disk, 64); | ma = mount_argsu(ma, "cs_disk", args.cs_disk, 64); | ||||
ma = mount_argsu(ma, "cs_local", args.cs_local, 64); | ma = mount_argsu(ma, "cs_local", args.cs_local, 64); | ||||
ma = mount_argf(ma, "ssector", "%u", args.ssector); | ma = mount_argf(ma, "ssector", "%u", args.ssector); | ||||
ma = mount_argb(ma, !(args.flags & ISOFSMNT_NORRIP), "norrip"); | ma = mount_argb(ma, !(args.flags & ISOFSMNT_NORRIP), "norrip"); | ||||
ma = mount_argb(ma, args.flags & ISOFSMNT_GENS, "nogens"); | ma = mount_argb(ma, args.flags & ISOFSMNT_GENS, "nogens"); | ||||
ma = mount_argb(ma, args.flags & ISOFSMNT_EXTATT, "noextatt"); | ma = mount_argb(ma, args.flags & ISOFSMNT_EXTATT, "noextatt"); | ||||
ma = mount_argb(ma, !(args.flags & ISOFSMNT_NOJOLIET), "nojoliet"); | ma = mount_argb(ma, !(args.flags & ISOFSMNT_NOJOLIET), "nojoliet"); | ||||
ma = mount_argb(ma, | ma = mount_argb(ma, | ||||
▲ Show 20 Lines • Show All 733 Lines • Show Last 20 Lines |