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
b0192cfe
Commit
b0192cfe
authored
Sep 16, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Hardcode the filesystem cluster size to avoid trouble on NFS.
parent
5c2fd1b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
file.c
dlls/ntdll/file.c
+7
-5
No files found.
dlls/ntdll/file.c
View file @
b0192cfe
...
...
@@ -2244,6 +2244,7 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
}
else
{
ULONGLONG
bsize
;
/* Linux's fstatvfs is buggy */
#if !defined(linux) || !defined(HAVE_FSTATFS)
struct
statvfs
stfs
;
...
...
@@ -2253,7 +2254,7 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
io
->
u
.
Status
=
FILE_GetNtStatus
();
break
;
}
info
->
BytesPerSector
=
stfs
.
f_frsize
;
bsize
=
stfs
.
f_frsize
;
#else
struct
statfs
stfs
;
if
(
fstatfs
(
fd
,
&
stfs
)
<
0
)
...
...
@@ -2261,11 +2262,12 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
io
->
u
.
Status
=
FILE_GetNtStatus
();
break
;
}
info
->
BytesPerSector
=
stfs
.
f_bsize
;
bsize
=
stfs
.
f_bsize
;
#endif
info
->
TotalAllocationUnits
.
QuadPart
=
stfs
.
f_blocks
;
info
->
AvailableAllocationUnits
.
QuadPart
=
stfs
.
f_bavail
;
info
->
SectorsPerAllocationUnit
=
1
;
info
->
BytesPerSector
=
512
;
info
->
SectorsPerAllocationUnit
=
8
;
info
->
TotalAllocationUnits
.
QuadPart
=
bsize
*
stfs
.
f_blocks
/
(
512
*
8
);
info
->
AvailableAllocationUnits
.
QuadPart
=
bsize
*
stfs
.
f_bavail
/
(
512
*
8
);
io
->
Information
=
sizeof
(
*
info
);
io
->
u
.
Status
=
STATUS_SUCCESS
;
}
...
...
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