Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
bake
Commits
ffc8f114
Commit
ffc8f114
authored
May 07, 2016
by
Philip Carns
Browse files
stub for bulk persist fn
parent
aec05985
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/bake-bulk.h
View file @
ffc8f114
...
...
@@ -60,6 +60,13 @@ int bake_bulk_create(
*
* Results are undefined if multiple writers (from same process or different
* processes) perform overlapping writes.
*
* @param [in] bti BAKE target identifier
* @param [in] rid identifier for new region
* @param [in] region_offset offset into the target region to write
* @param [in] buf local memory buffer to write
* @param [in] buf_size size of local memory buffer to write
* @returns 0 on success, -1 on failure
*/
int
bake_bulk_write
(
bake_target_id_t
bti
,
...
...
@@ -67,6 +74,18 @@ int bake_bulk_write(
uint64_t
region_offset
,
void
const
*
buf
,
uint64_t
buf_size
);
/**
* Persist a bulk region. The region is considered immutable at this point
* and reads may be performed on the region.
*
* @param [in] bti BAKE target identifier
* @param [in] rid identifier for new region
* @returns 0 on success, -1 on failure
*/
int
bake_bulk_persist
(
bake_target_id_t
bti
,
bake_bulk_region_id_t
rid
);
/**
* Release local resources associated with access to a target; does not
...
...
src/bake-bulk.c
View file @
ffc8f114
...
...
@@ -237,3 +237,10 @@ int bake_bulk_create(
}
int
bake_bulk_persist
(
bake_target_id_t
bti
,
bake_bulk_region_id_t
rid
)
{
/* TODO: implement */
return
(
-
1
);
}
src/bb-copy-to.c
View file @
ffc8f114
...
...
@@ -116,10 +116,18 @@ int main(int argc, char **argv)
return
(
-
1
);
}
/* TODO: persist */
munmap
(
local_region
,
statbuf
.
st_size
);
close
(
fd
);
ret
=
bake_bulk_persist
(
bti
,
rid
);
if
(
ret
!=
0
)
{
bake_release_instance
(
bti
);
ABT_finalize
();
fprintf
(
stderr
,
"Error: bake_bulk_persist()
\n
"
);
return
(
-
1
);
}
bake_release_instance
(
bti
);
ABT_finalize
();
...
...
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