Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f9a5ad13
Commit
f9a5ad13
authored
Oct 01, 2017
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Oct 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
8e9a469e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
directory.c
dlls/ntdll/directory.c
+2
-0
file.c
dlls/ntdll/file.c
+3
-1
No files found.
dlls/ntdll/directory.c
View file @
f9a5ad13
...
...
@@ -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
;
...
...
dlls/ntdll/file.c
View file @
f9a5ad13
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment