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
8d9067f0
Commit
8d9067f0
authored
Oct 22, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ea3997a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+12
-2
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
8d9067f0
...
...
@@ -71,9 +71,11 @@ struct SrvReq;
// WCFS represents filesystem-level connection to wcfs server.
// XXX doc
struct
WCFS
{
string
mountpoint
;
Conn
*
connect
(
Tid
at
);
tuple
<
os
::
File
,
error
>
_open
(
const
string
&
path
/*, XXX mode*/
);
string
_path
(
const
string
&
obj
);
tuple
<
os
::
File
,
error
>
_open
(
const
string
&
path
/*, XXX mode*/
);
};
// Conn represents logical connection that provides view of data on wcfs
...
...
@@ -269,8 +271,16 @@ void _Mapping::_remmapblk(int64_t blk, Tid at) {
// ---- WCFS raw file access ----
// _path returns path for object on wcfs.
// - str: wcfs root + obj;
string
WCFS
::
_path
(
const
string
&
obj
)
{
WCFS
*
wc
=
this
;
return
wc
->
mountpoint
+
"/"
+
obj
;
}
tuple
<
os
::
File
,
error
>
WCFS
::
_open
(
const
string
&
path
/*, XXX mode*/
)
{
WCFS
*
wc
=
this
;
path_
=
wc
->
_path
(
path
);
string
path_
=
wc
->
_path
(
path
);
return
os
::
open
(
path_
/*, XXX mode*/
);
}
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