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
f23e8fec
Commit
f23e8fec
authored
May 20, 2005
by
Juan Lang
Committed by
Alexandre Julliard
May 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement NtQueryVolumeInformationFile for type
FileFsDeviceInformation on FreeBSD.
parent
5e6b43e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
file.c
dlls/ntdll/file.c
+42
-0
No files found.
dlls/ntdll/file.c
View file @
f23e8fec
...
...
@@ -1505,6 +1505,48 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
info
->
DeviceType
=
FILE_DEVICE_DISK_FILE_SYSTEM
;
break
;
}
#elif defined(__FreeBSD__)
struct
statfs
stfs
;
/* The proper way to do this in FreeBSD seems to be with the
* name rather than the type, since their linux-compatible
* fstatfs call converts the name to one of the Linux types.
*/
if
(
fstatfs
(
fd
,
&
stfs
)
<
0
)
info
->
DeviceType
=
FILE_DEVICE_DISK_FILE_SYSTEM
;
else
if
(
!
strncmp
(
"cd9660"
,
stfs
.
f_fstypename
,
sizeof
(
stfs
.
f_fstypename
)))
{
info
->
DeviceType
=
FILE_DEVICE_CD_ROM_FILE_SYSTEM
;
/* Don't assume read-only, let the mount options set it
* below
*/
info
->
Characteristics
|=
FILE_REMOVABLE_MEDIA
;
}
else
if
(
!
strncmp
(
"nfs"
,
stfs
.
f_fstypename
,
sizeof
(
stfs
.
f_fstypename
)))
{
info
->
DeviceType
=
FILE_DEVICE_NETWORK_FILE_SYSTEM
;
info
->
Characteristics
|=
FILE_REMOTE_DEVICE
;
}
else
if
(
!
strncmp
(
"nwfs"
,
stfs
.
f_fstypename
,
sizeof
(
stfs
.
f_fstypename
)))
{
info
->
DeviceType
=
FILE_DEVICE_NETWORK_FILE_SYSTEM
;
info
->
Characteristics
|=
FILE_REMOTE_DEVICE
;
}
else
if
(
!
strncmp
(
"procfs"
,
stfs
.
f_fstypename
,
sizeof
(
stfs
.
f_fstypename
)))
info
->
DeviceType
=
FILE_DEVICE_VIRTUAL_DISK
;
else
info
->
DeviceType
=
FILE_DEVICE_DISK_FILE_SYSTEM
;
if
(
stfs
.
f_flags
&
MNT_RDONLY
)
info
->
Characteristics
|=
FILE_READ_ONLY_DEVICE
;
if
(
!
(
stfs
.
f_flags
&
MNT_LOCAL
))
{
info
->
DeviceType
=
FILE_DEVICE_NETWORK_FILE_SYSTEM
;
info
->
Characteristics
|=
FILE_REMOTE_DEVICE
;
}
#elif defined (__APPLE__)
# include <IOKit/IOKitLib.h>
# include <CoreFoundation/CFNumber.h>
/* for kCFBooleanTrue, kCFBooleanFalse */
...
...
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