diff options
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 239e1fb33000..d8eb6a74b211 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -3239,10 +3239,20 @@ void cifs_setup_cifs_sb(struct smb_vol *pvolume_info, | |||
3239 | } | 3239 | } |
3240 | if (pvolume_info->mfsymlinks) { | 3240 | if (pvolume_info->mfsymlinks) { |
3241 | if (pvolume_info->sfu_emul) { | 3241 | if (pvolume_info->sfu_emul) { |
3242 | cifs_dbg(VFS, "mount option mfsymlinks ignored if sfu mount option is used\n"); | 3242 | /* |
3243 | } else { | 3243 | * Our SFU ("Services for Unix" emulation does not allow |
3244 | cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_MF_SYMLINKS; | 3244 | * creating symlinks but does allow reading existing SFU |
3245 | * symlinks (it does allow both creating and reading SFU | ||
3246 | * style mknod and FIFOs though). When "mfsymlinks" and | ||
3247 | * "sfu" are both enabled at the same time, it allows | ||
3248 | * reading both types of symlinks, but will only create | ||
3249 | * them with mfsymlinks format. This allows better | ||
3250 | * Apple compatibility (probably better for Samba too) | ||
3251 | * while still recognizing old Windows style symlinks. | ||
3252 | */ | ||
3253 | cifs_dbg(VFS, "mount options mfsymlinks and sfu both enabled\n"); | ||
3245 | } | 3254 | } |
3255 | cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_MF_SYMLINKS; | ||
3246 | } | 3256 | } |
3247 | 3257 | ||
3248 | if ((pvolume_info->cifs_acl) && (pvolume_info->dynperm)) | 3258 | if ((pvolume_info->cifs_acl) && (pvolume_info->dynperm)) |