mount_msdosfs.c:

- remove call to getmntopts(), and just pass -o options to
    nmount().  This removes some confusion as to what options
    msdosfs can parse, by pushing the responsibility of option parsing
    to the VFS and FS specific code in the kernel.

msdosfs_vfsops.c:
  - add "force" and "sync" to msdosfs_opts.  They used to be specified
    in mount_msdosfs.c, so move them here.  It's not clear whethere these
    options should be placed into global_opts in vfs_mount.c or not.

Motivated by:	marcus
This commit is contained in:
Craig Rodrigues 2006-06-01 02:25:00 +00:00
parent d49e4d3f55
commit 829b898c7c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159128
2 changed files with 1 additions and 11 deletions

View File

@ -57,14 +57,6 @@ static const char rcsid[] =
#include "mntopts.h"
static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_FORCE,
MOPT_SYNC,
MOPT_UPDATE,
MOPT_END
};
static gid_t a_gid(char *);
static uid_t a_uid(char *);
static mode_t a_mask(char *);
@ -78,7 +70,6 @@ main(int argc, char **argv)
int iovlen = 0;
struct stat sb;
int c, mntflags, set_gid, set_uid, set_mask, set_dirmask;
int optflags = 0;
char *dev, *dir, mntpath[MAXPATHLEN], *csp;
char fstype[] = "msdosfs";
char *cs_dos = NULL;
@ -136,7 +127,6 @@ main(int argc, char **argv)
case 'o': {
char *p = NULL;
char *val = strdup("");
getmntopts(optarg, mopts, &mntflags, &optflags);
p = strchr(optarg, '=');
if (p != NULL) {
free(val);

View File

@ -79,7 +79,7 @@
/* List of mount options we support */
static const char *msdosfs_opts[] = {
"from",
"export",
"export", "force", "sync",
"uid", "gid", "mask", "dirmask",
"shortname", "shortnames", "longname", "longnames", "nowin95", "win95",
"kiconv", "cs_win", "cs_dos", "cs_local",