-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change some error handling to results
- Loading branch information
Showing
17 changed files
with
301 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#pragma once | ||
|
||
#include <rados/librados.h> | ||
#include <functional> | ||
#include <rados/librados.h> | ||
|
||
#include "config.h" | ||
#include "utils.h" | ||
|
||
int bdev_lsvd_create(str img_name, rados_ioctx_t io_ctx, lsvd_config cfg); | ||
int bdev_lsvd_create(str pool_name, str image_name, str cfg_path); | ||
void bdev_lsvd_delete(str img_name, std::function<void(int)> cb); | ||
result<void> bdev_lsvd_create(str img_name, rados_ioctx_t io, lsvd_config cfg); | ||
result<void> bdev_lsvd_create(str pool_name, str image_name, str cfg_path); | ||
void bdev_lsvd_delete(str img_name, std::function<void(result<void>)> cb); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.