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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
2586d0c1
Commit
2586d0c1
authored
Feb 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
67094207
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+3
-3
wcfs/client/wcfs.h
wcfs/client/wcfs.h
+2
-2
No files found.
wcfs/client/wcfs.cpp
View file @
2586d0c1
...
...
@@ -431,17 +431,17 @@ pair<Mapping, error> _FileH::mmap(int64_t blk_start, int64_t blk_len, VMA *vma)
mmap
->
mem_stop
=
mem_stop
;
mmap
->
vma
=
vma
;
for
(
auto
_
:
f
.
_pinned
)
{
//
XXX keep f._pinned ↑blk and use binary search?
for
(
auto
_
:
f
.
_pinned
)
{
//
TODO keep f._pinned ↑blk and use binary search
int64_t
blk
=
_
.
first
;
zodb
::
Tid
rev
=
_
.
second
;
if
(
!
(
blk_start
<=
blk
&&
blk
<
blk_stop
))
continue
;
// blk
out of
this mapping
continue
;
// blk
∉
this mapping
err
=
mmap
->
_remmapblk
(
blk
,
rev
);
if
(
err
!=
nil
)
return
make_pair
(
nil
,
E
(
err
));
}
f
.
_mmaps
.
push_back
(
mmap
);
// XXX
keep f._mmaps ↑blk_start
f
.
_mmaps
.
push_back
(
mmap
);
// TODO
keep f._mmaps ↑blk_start
if
(
vma
!=
NULL
)
{
vma
->
mmap_overlay_server
=
mmap
.
_ptr
();
// XXX +giveref
...
...
wcfs/client/wcfs.h
View file @
2586d0c1
...
...
@@ -207,8 +207,8 @@ private:
typedef
refptr
<
struct
_FileH
>
FileH
;
struct
_FileH
:
object
{
Conn
wconn
;
zodb
::
Oid
foid
;
// ZBigFile root object ID
size_t
blksize
;
// block size of this file
XXX -> off_t ?
zodb
::
Oid
foid
;
// ZBigFile root object ID
(does not change after fileh open)
size_t
blksize
;
// block size of this file
(does not change after fileh open)
os
::
File
_headf
;
// file object of head/file
off_t
_headfsize
;
// head/file size is known to be at least headfsize (size ↑=)
...
...
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