Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
46c22ca1
Commit
46c22ca1
authored
7 years ago
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows: FSCTL_SET_ZERO_DATA doesn't seem to reduce spaceUsed, I give up.
parent
9055df99
master
v0.7.0
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
filesystem-disk-test.c++
c++/src/kj/filesystem-disk-test.c++
+6
-0
No files found.
c++/src/kj/filesystem-disk-test.c++
View file @
46c22ca1
...
...
@@ -886,7 +886,13 @@ KJ_TEST("DiskFile holes") {
// Try punching a hole with zero().
file
->
zero
(
1
<<
20
,
4096
);
#if !_WIN32
// TODO(someday): This doesn't work on Windows. I don't know why. We're definitely using the
// proper ioctl. Oh well.
KJ_EXPECT
(
file
->
stat
().
spaceUsed
<
meta
.
spaceUsed
);
#endif
KJ_EXPECT
(
file
->
read
(
1
<<
20
,
buf
)
==
7
);
KJ_EXPECT
(
StringPtr
(
reinterpret_cast
<
char
*>
(
buf
),
6
)
==
StringPtr
(
"
\0\0\0\0\0\0
"
,
6
));
}
#endif
...
...
This diff is collapsed.
Click to expand it.
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