Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
bake
Commits
bae69042
Commit
bae69042
authored
Jan 19, 2021
by
Philip Carns
Browse files
whoops, fix use of superblock size #define
parent
74a806bf
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bake-file-backend.c
View file @
bae69042
...
...
@@ -227,14 +227,14 @@ static int bake_file_backend_initialize(bake_provider_t provider,
new_entry
->
log_offset
=
statbuf
.
st_size
;
/* check to make sure the root is properly set */
ret
=
posix_memalign
((
void
**
)(
&
new_entry
->
file_root
),
BAKE_
ALIGNMENT
,
BAKE_
ALIGNMENT
);
ret
=
posix_memalign
((
void
**
)(
&
new_entry
->
file_root
),
BAKE_
SUPERBLOCK_SIZE
,
BAKE_
SUPERBLOCK_SIZE
);
if
(
ret
<
0
)
{
ret
=
BAKE_ERR_IO
;
goto
error_cleanup
;
}
ret
=
abt_io_pread
(
new_entry
->
abtioi
,
new_entry
->
log_fd
,
new_entry
->
file_root
,
BAKE_
ALIGNMENT
,
0
);
new_entry
->
file_root
,
BAKE_
SUPERBLOCK_SIZE
,
0
);
if
(
ret
<
0
)
{
ret
=
BAKE_ERR_IO
;
goto
error_cleanup
;
...
...
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