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
c558ef96
Commit
c558ef96
authored
Jul 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
348c4fd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
wcfs/__init__.py
wcfs/__init__.py
+6
-0
No files found.
wcfs/__init__.py
View file @
c558ef96
...
...
@@ -185,20 +185,26 @@ def _pinner(wconn, ctx):
return
# XXX ok? (EOF - when wcfs closes wlink)
# we received request to pin/unpin file block. perform it
trace
(
'lock _filemu ...'
)
with
wconn
.
_filemu
:
trace
(
'_filemu locked'
)
f
=
wconn
.
_filetab
.
get
(
req
.
foid
)
if
f
is
None
:
1
/
0
# XXX we are not watching the file - why wcfs sent us this update?
trace
(
f
)
# XXX relock wconn -> f ?
for
mmap
in
f
.
mmaps
:
# XXX use ↑blk_start for binary search
trace
(
'
\
t
%s'
%
mmap
)
if
not
(
mmap
.
blk_start
<=
req
.
blk
<
mmap
.
blk_stop
):
continue
# blk ∉ mmap
trace
(
'
\
t
remmapblk %d @%s'
%
(
req
.
blk
,
h
(
req
.
at
)))
# FIXME check if virtmem did not mapped RW page into this block already
mmap
.
_remmapblk
(
req
.
blk
,
req
.
at
)
trace
(
'
\
t
-> remmaped'
)
# update f.pinned
if
req
.
at
is
None
:
...
...
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