Commit 33a393ea authored by Steve French's avatar Steve French Committed by Steve French

Add missing mount parameters

parent c1ca0f91
...@@ -93,5 +93,5 @@ extern int cifs_setxattr(struct dentry *, const char *, const void *, ...@@ -93,5 +93,5 @@ extern int cifs_setxattr(struct dentry *, const char *, const void *,
size_t, int); size_t, int);
extern ssize_t cifs_getxattr(struct dentry *, const char *, void *, size_t); extern ssize_t cifs_getxattr(struct dentry *, const char *, void *, size_t);
extern ssize_t cifs_listxattr(struct dentry *, char *, size_t); extern ssize_t cifs_listxattr(struct dentry *, char *, size_t);
#define CIFS_VERSION "1.13" #define CIFS_VERSION "1.14"
#endif /* _CIFSFS_H */ #endif /* _CIFSFS_H */
...@@ -63,6 +63,7 @@ struct smb_vol { ...@@ -63,6 +63,7 @@ struct smb_vol {
mode_t dir_mode; mode_t dir_mode;
int rw:1; int rw:1;
int retry:1; int retry:1;
int intr:1;
unsigned int rsize; unsigned int rsize;
unsigned int wsize; unsigned int wsize;
unsigned int sockopt; unsigned int sockopt;
...@@ -699,6 +700,7 @@ cifs_parse_mount_options(char *options, const char *devname, struct smb_vol *vol ...@@ -699,6 +700,7 @@ cifs_parse_mount_options(char *options, const char *devname, struct smb_vol *vol
(strnicmp(data, "exec", 4) == 0) || (strnicmp(data, "exec", 4) == 0) ||
(strnicmp(data, "noexec", 6) == 0) || (strnicmp(data, "noexec", 6) == 0) ||
(strnicmp(data, "nodev", 5) == 0) || (strnicmp(data, "nodev", 5) == 0) ||
(strnicmp(data, "noauto", 6) == 0) ||
(strnicmp(data, "dev", 3) == 0)) { (strnicmp(data, "dev", 3) == 0)) {
/* The mount tool or mount.cifs helper (if present) /* The mount tool or mount.cifs helper (if present)
uses these opts to set flags, and the flags are read uses these opts to set flags, and the flags are read
...@@ -717,6 +719,12 @@ cifs_parse_mount_options(char *options, const char *devname, struct smb_vol *vol ...@@ -717,6 +719,12 @@ cifs_parse_mount_options(char *options, const char *devname, struct smb_vol *vol
vol->retry = 0; vol->retry = 0;
} else if (strnicmp(data, "nosoft", 6) == 0) { } else if (strnicmp(data, "nosoft", 6) == 0) {
vol->retry = 1; vol->retry = 1;
} else if (strnicmp(data, "nointr", 6) == 0) {
vol->intr = 0;
} else if (strnicmp(data, "intr", 4) == 0) {
vol->intr = 1;
} else if (strnicmp(data, "noac", 4) == 0) {
printk(KERN_WARNING "CIFS: Mount option noac not supported. Instead set /proc/fs/cifs/LookupCacheEnabled to 0\n");
} else } else
printk(KERN_WARNING "CIFS: Unknown mount option %s\n",data); printk(KERN_WARNING "CIFS: Unknown mount option %s\n",data);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment