Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339461
b: refs/heads/master
c: e5e69ab
h: refs/heads/master
i:
  339459: d78b6ff
v: v3
  • Loading branch information
Jeff Layton authored and Steve French committed Dec 5, 2012
1 parent d24cc24 commit c230c75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3d1fce11dbbf4246f1c37839b13757f08aec3b7
refs/heads/master: e5e69abd058b3fcfd484dbe1c632347332cda9b6
19 changes: 5 additions & 14 deletions trunk/fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,11 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
goto cifs_parse_mount_err;
}
#endif
if (!vol->UNC) {
cERROR(1, "CIFS mount error: No UNC path (e.g. -o "
"unc=\\\\192.168.1.100\\public) specified");
goto cifs_parse_mount_err;
}

if (vol->UNCip == NULL)
vol->UNCip = &vol->UNC[2];
Expand Down Expand Up @@ -2070,17 +2075,6 @@ cifs_get_tcp_session(struct smb_vol *volume_info)
rc = -EINVAL;
goto out_err;
}
} else if (volume_info->UNCip) {
/* BB using ip addr as tcp_ses name to connect to the
DFS root below */
cERROR(1, "Connecting to DFS root not implemented yet");
rc = -EINVAL;
goto out_err;
} else /* which tcp_sess DFS root would we conect to */ {
cERROR(1, "CIFS mount error: No UNC path (e.g. -o "
"unc=//192.168.1.100/public) specified");
rc = -EINVAL;
goto out_err;
}

/* see if we already have a matching tcp_ses */
Expand Down Expand Up @@ -2726,9 +2720,6 @@ cifs_match_super(struct super_block *sb, void *data)

volume_info = mnt_data->vol;

if (!volume_info->UNCip || !volume_info->UNC)
goto out;

rc = cifs_fill_sockaddr((struct sockaddr *)&addr,
volume_info->UNCip,
strlen(volume_info->UNCip),
Expand Down

0 comments on commit c230c75

Please sign in to comment.