diff options
author | Steve French <sfrench@us.ibm.com> | 2009-04-03 03:12:08 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-04-17 01:26:48 +0000 |
commit | d036f50fc202e1a851a25dc5edc215ebd0086201 (patch) | |
tree | e88defe256ea00a9cd87ae948710cf5b22404a80 /fs | |
parent | 1bfe73c258addc388b90fe8c2c6bbc0f0c9c10dd (diff) | |
download | linux-3.10-d036f50fc202e1a851a25dc5edc215ebd0086201.tar.gz linux-3.10-d036f50fc202e1a851a25dc5edc215ebd0086201.tar.bz2 linux-3.10-d036f50fc202e1a851a25dc5edc215ebd0086201.zip |
[CIFS] Fix build break from recent DFS patch when DFS support not enabled
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/connect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 2e7a4ea26ab..6926023af87 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2522,6 +2522,7 @@ remote_path_check: /* get referral if needed */ if (rc == -EREMOTE) { +#ifdef CONFIG_CIFS_DFS_UPCALL /* convert forward to back slashes in prepath here if needed */ if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) == 0) convert_delimiter(cifs_sb->prepath, @@ -2557,6 +2558,9 @@ remote_path_check: kfree(full_path); goto try_mount_again; } +#else /* No DFS support, return error on mount */ + rc = -EOPNOTSUPP; +#endif } mount_fail_check: |