OSDN Git Service

cifs: Fix check for matching with existing mount
authorSteve French <stfrench@microsoft.com>
Mon, 24 Jun 2019 06:19:52 +0000 (01:19 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 8 Jul 2019 03:37:43 +0000 (22:37 -0500)
If we mount the same share twice, we check the flags to see if the
second mount matches the earlier mount, but we left some flags out.

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h

index 4777b3c..88c98fa 100644 (file)
@@ -617,6 +617,7 @@ struct smb_vol {
                         CIFS_MOUNT_FSCACHE | CIFS_MOUNT_MF_SYMLINKS | \
                         CIFS_MOUNT_MULTIUSER | CIFS_MOUNT_STRICT_IO | \
                         CIFS_MOUNT_CIFS_BACKUPUID | CIFS_MOUNT_CIFS_BACKUPGID | \
+                        CIFS_MOUNT_UID_FROM_ACL | CIFS_MOUNT_NO_HANDLE_CACHE | \
                         CIFS_MOUNT_NO_DFS)
 
 /**