Akihiro Sagawa : ntdll: Treat CIFS/SMB2 file systems as remote devices.
Alexandre Julliard
julliard at winehq.org
Mon Oct 2 15:46:23 CDT 2017
Module: wine
Branch: master
Commit: f9a5ad134836cf2e9acf6a93dd8460c9fd5b8833
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f9a5ad134836cf2e9acf6a93dd8460c9fd5b8833
Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date: Sun Oct 1 21:23:10 2017 +0900
ntdll: Treat CIFS/SMB2 file systems as remote devices.
Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/directory.c | 2 ++
dlls/ntdll/file.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index 9d5cf92..3b76f9b 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -640,6 +640,7 @@ static char *parse_mount_entries( FILE *f, dev_t dev, ino_t ino )
{
/* don't even bother stat'ing network mounts, there's no meaningful device anyway */
if (!strcmp( entry->mnt_type, "nfs" ) ||
+ !strcmp( entry->mnt_type, "cifs" ) ||
!strcmp( entry->mnt_type, "smbfs" ) ||
!strcmp( entry->mnt_type, "ncpfs" )) continue;
@@ -918,6 +919,7 @@ static char *get_device_mount_point( dev_t dev )
{
/* don't even bother stat'ing network mounts, there's no meaningful device anyway */
if (!strcmp( entry->mnt_type, "nfs" ) ||
+ !strcmp( entry->mnt_type, "cifs" ) ||
!strcmp( entry->mnt_type, "smbfs" ) ||
!strcmp( entry->mnt_type, "ncpfs" )) continue;
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index d498581..c12110e 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -3114,7 +3114,9 @@ static NTSTATUS get_device_info( int fd, FILE_FS_DEVICE_INFORMATION *info )
info->Characteristics |= FILE_REMOVABLE_MEDIA|FILE_READ_ONLY_DEVICE;
break;
case 0x6969: /* nfs */
- case 0x517B: /* smbfs */
+ case 0xff534d42: /* cifs */
+ case 0xfe534d42: /* smb2 */
+ case 0x517b: /* smbfs */
case 0x564c: /* ncpfs */
info->DeviceType = FILE_DEVICE_NETWORK_FILE_SYSTEM;
info->Characteristics |= FILE_REMOTE_DEVICE;
More information about the wine-cvs
mailing list