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
a6d11a14
Commit
a6d11a14
authored
Nov 01, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
01b9b42f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
11 deletions
+51
-11
wcfs/internal/wcfs.h
wcfs/internal/wcfs.h
+49
-0
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+1
-11
wcfs/internal/wcfs_watchlink.cpp
wcfs/internal/wcfs_watchlink.cpp
+1
-0
No files found.
wcfs/internal/wcfs.h
0 → 100644
View file @
a6d11a14
// Copyright (C) 2018-2019 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Free Software licenses or any of the Open Source
// Initiative approved licenses and Convey the resulting work. Corresponding
// source of such a combination shall include the source code for all other
// software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
// XXX doc
#ifndef _NXD_WCFS_H_
#define _NXD_WCFS_H_
#include <string>
using
std
::
string
;
#include <tuple>
using
std
::
tuple
;
#include "wcfs_misc.h"
struct
Conn
;
struct
WatchLink
;
// WCFS represents filesystem-level connection to wcfs server.
// XXX doc
struct
WCFS
{
string
mountpoint
;
tuple
<
Conn
*
,
error
>
connect
(
zodb
::
Tid
at
);
string
_path
(
const
string
&
obj
);
tuple
<
os
::
File
,
error
>
_open
(
const
string
&
path
,
int
flags
=
O_RDONLY
);
tuple
<
WatchLink
*
,
error
>
_openwatch
();
};
#endif
wcfs/internal/wcfs_virtmem.cpp
View file @
a6d11a14
...
@@ -44,6 +44,7 @@ using namespace golang;
...
@@ -44,6 +44,7 @@ using namespace golang;
#include <unistd.h>
#include <unistd.h>
#include "wcfs.h"
#include "wcfs_watchlink.h"
#include "wcfs_watchlink.h"
#include "wcfs_misc.h"
#include "wcfs_misc.h"
...
@@ -62,17 +63,6 @@ struct _Mapping;
...
@@ -62,17 +63,6 @@ struct _Mapping;
struct
WatchLink
;
struct
WatchLink
;
struct
PinReq
;
struct
PinReq
;
// WCFS represents filesystem-level connection to wcfs server.
// XXX doc
struct
WCFS
{
string
mountpoint
;
tuple
<
Conn
*
,
error
>
connect
(
zodb
::
Tid
at
);
string
_path
(
const
string
&
obj
);
tuple
<
os
::
File
,
error
>
_open
(
const
string
&
path
,
int
flags
=
O_RDONLY
);
tuple
<
WatchLink
*
,
error
>
_openwatch
();
};
// Conn represents logical connection that provides view of data on wcfs
// Conn represents logical connection that provides view of data on wcfs
// filesystem as of particular database state.
// filesystem as of particular database state.
//
//
...
...
wcfs/internal/wcfs_watchlink.cpp
View file @
a6d11a14
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
// See COPYING file for full licensing terms.
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
// See https://www.nexedi.com/licensing for rationale and options.
#include "wcfs.h"
#include "wcfs_watchlink.h"
#include "wcfs_watchlink.h"
// _openwatch opens new watch link on wcfs.
// _openwatch opens new watch link on wcfs.
...
...
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