Deleted Added
full compact
msdosfs_vfsops.c (206098) msdosfs_vfsops.c (213664)
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vfsops.c 206098 2010-04-02 15:22:23Z avg $ */
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vfsops.c 213664 2010-10-10 07:05:47Z kib $ */
2/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 185 unchanged lines hidden (view full) ---

195 }
196 return 0;
197}
198
199static int
200msdosfs_cmount(struct mntarg *ma, void *data, int flags)
201{
202 struct msdosfs_args args;
2/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 185 unchanged lines hidden (view full) ---

195 }
196 return 0;
197}
198
199static int
200msdosfs_cmount(struct mntarg *ma, void *data, int flags)
201{
202 struct msdosfs_args args;
203 struct export_args exp;
203 int error;
204
205 if (data == NULL)
206 return (EINVAL);
207 error = copyin(data, &args, sizeof args);
208 if (error)
209 return (error);
204 int error;
205
206 if (data == NULL)
207 return (EINVAL);
208 error = copyin(data, &args, sizeof args);
209 if (error)
210 return (error);
211 vfs_oexport_conv(&args.export, &exp);
210
211 ma = mount_argsu(ma, "from", args.fspec, MAXPATHLEN);
212
213 ma = mount_argsu(ma, "from", args.fspec, MAXPATHLEN);
212 ma = mount_arg(ma, "export", &args.export, sizeof args.export);
214 ma = mount_arg(ma, "export", &exp, sizeof(exp));
213 ma = mount_argf(ma, "uid", "%d", args.uid);
214 ma = mount_argf(ma, "gid", "%d", args.gid);
215 ma = mount_argf(ma, "mask", "%d", args.mask);
216 ma = mount_argf(ma, "dirmask", "%d", args.dirmask);
217
218 ma = mount_argb(ma, args.flags & MSDOSFSMNT_SHORTNAME, "noshortname");
219 ma = mount_argb(ma, args.flags & MSDOSFSMNT_LONGNAME, "nolongname");
220 ma = mount_argb(ma, !(args.flags & MSDOSFSMNT_NOWIN95), "nowin95");

--- 772 unchanged lines hidden ---
215 ma = mount_argf(ma, "uid", "%d", args.uid);
216 ma = mount_argf(ma, "gid", "%d", args.gid);
217 ma = mount_argf(ma, "mask", "%d", args.mask);
218 ma = mount_argf(ma, "dirmask", "%d", args.dirmask);
219
220 ma = mount_argb(ma, args.flags & MSDOSFSMNT_SHORTNAME, "noshortname");
221 ma = mount_argb(ma, args.flags & MSDOSFSMNT_LONGNAME, "nolongname");
222 ma = mount_argb(ma, !(args.flags & MSDOSFSMNT_NOWIN95), "nowin95");

--- 772 unchanged lines hidden ---