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
f4f7aecb
Commit
f4f7aecb
authored
Jul 08, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0b99fa5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
include/wendelin/bigfile/file.h
include/wendelin/bigfile/file.h
+2
-5
No files found.
include/wendelin/bigfile/file.h
View file @
f4f7aecb
...
...
@@ -2,7 +2,7 @@
#define _WENDELIN_BIGFILE_FILE_H_
/* Wendelin.bigfile | Base file class
* Copyright (C) 2014-201
5
Nexedi SA and Contributors.
* Copyright (C) 2014-201
9
Nexedi SA and Contributors.
* Kirill Smelkov <kirr@nexedi.com>
*
* This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -47,6 +47,7 @@ struct BigFile {
};
typedef
struct
BigFile
BigFile
;
/* bigfile_ops defines interface that BigFile implementations must provide. */
struct
bigfile_ops
{
/* load/store file block to/from memory.
* NOTE len(buf) must be = file->blksize
...
...
@@ -55,10 +56,6 @@ struct bigfile_ops {
*/
// XXX loadblk - called from SIGSEGV context;
// storeblk - called from usual context
// (in the future maybe in SIGSEGV context too?)
//
// TODO maybe also/instead use ram-fd based interface and then
// loadblk/storeblk would use splice(2) into/from that?
int
(
*
loadblk
)
(
BigFile
*
file
,
blk_t
blk
,
void
*
buf
);
int
(
*
storeblk
)
(
BigFile
*
file
,
blk_t
blk
,
const
void
*
buf
);
...
...
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