ntdll: Treat CIFS/SMB2 file systems as remote devices.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8e9a469e9c
commit
f9a5ad1348
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue