Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
bake
Commits
0794492b
Commit
0794492b
authored
May 06, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stub for region create
parent
cb24ba14
Pipeline
#336
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
include/bake-bulk.h
include/bake-bulk.h
+27
-2
src/bake-bulk.c
src/bake-bulk.c
+10
-0
No files found.
include/bake-bulk.h
View file @
0794492b
...
...
@@ -14,6 +14,14 @@
*/
typedef
uint64_t
bake_target_id_t
;
/**
* Persistent, opaque identifier for a bulk region within a BAKE target.
*/
#define BAKE_BULK_REGION_ID_SIZE 16
typedef
struct
{
char
data
[
BAKE_BULK_REGION_ID_SIZE
];
}
bake_bulk_region_id_t
;
/**
* Obtain identifying information for a bake target through the provided
* remote mercury address.
...
...
@@ -25,9 +33,26 @@ typedef uint64_t bake_target_id_t;
int
bake_probe_instance
(
const
char
*
mercury_dest
,
bake_target_id_t
*
bti
);
/**
* Create a bounded-size bulk data region. The resulting region can be
* written using bulk write operations, and can be persisted (once writes are
* complete) with a a bulk persist operation. The region is not valid for
* read access until persisted.
*
* @param [in] bti BAKE target identifier
* @param [in] region_size size of region to be created
* @param [out] rid identifier for new region
* @returns 0 on success, -1 on failure
*/
int
bake_bulk_create
(
bake_target_id_t
bti
,
uint64_t
region_size
,
bake_bulk_region_id_t
*
rid
);
/**
* Release resources associated with access to a target
* Release local resources associated with access to a target; does not
* modify the target in any way.
*
* @param [in] bti BAKE target_identifier
*/
...
...
src/bake-bulk.c
View file @
0794492b
...
...
@@ -115,3 +115,13 @@ int bake_shutdown_service(bake_target_id_t bti)
return
(
0
);
}
int
bake_bulk_create
(
bake_target_id_t
bti
,
uint64_t
region_size
,
bake_bulk_region_id_t
*
rid
)
{
return
(
-
1
);
}
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