Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
e25dd198
Commit
e25dd198
authored
Oct 22, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9f8828aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
wcfs/internal/wcfs_misc.h
wcfs/internal/wcfs_misc.h
+1
-2
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+6
-3
No files found.
wcfs/internal/wcfs_misc.h
View file @
e25dd198
...
...
@@ -63,8 +63,7 @@ public:
// XXX empty ctor -> fd=-1, path=?
int
fd
();
string
name
();
//error close();
void
close
();
error
close
();
error
stat
(
struct
stat
*
st
);
};
...
...
wcfs/internal/wcfs_virtmem.cpp
View file @
e25dd198
...
...
@@ -248,6 +248,7 @@ error _Mapping::_remmapblk(int64_t blk, Tid at) {
uint8_t
*
blkmem
=
mmap
->
mem_start
+
(
blk
-
mmap
->
blk_start
)
*
f
->
blksize
;
os
::
File
fsfile
;
bool
fclose
=
false
;
if
(
at
==
TidHead
)
{
fsfile
=
f
->
headf
;
}
...
...
@@ -257,10 +258,12 @@ error _Mapping::_remmapblk(int64_t blk, Tid at) {
fmt
::
sprintf
(
"@%s/bigfile/%s"
,
h_
(
at
),
h_
(
f
->
foid
)));
if
(
err
!=
nil
)
return
err
;
defer
([
&
]()
{
// FIXME move out of local scope
fclose
=
true
;
}
defer
([
&
]()
{
if
(
fclose
)
fsfile
.
close
();
});
}
struct
stat
st
;
err
=
fsfile
.
stat
(
&
st
);
...
...
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