reduce: add spdk_reduce_vol_get_uuid
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ied2ec966f470e135adbe29244a954c8a30672210 Reviewed-on: https://review.gerrithub.io/433085 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
fba24e2fdb
commit
0c6b87b7db
@ -133,6 +133,14 @@ struct spdk_reduce_backing_dev {
|
|||||||
uint32_t blocklen;
|
uint32_t blocklen;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the UUID for a libreduce compressed volume.
|
||||||
|
*
|
||||||
|
* \param vol Previously loaded or initialized compressed volume.
|
||||||
|
* \return UUID for the compressed volume.
|
||||||
|
*/
|
||||||
|
const struct spdk_uuid *spdk_reduce_vol_get_uuid(struct spdk_reduce_vol *vol);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize a new libreduce compressed volume.
|
* Initialize a new libreduce compressed volume.
|
||||||
*
|
*
|
||||||
|
@ -168,6 +168,12 @@ spdk_reduce_get_backing_device_size(struct spdk_reduce_vol_params *params)
|
|||||||
return total_backing_size;
|
return total_backing_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const struct spdk_uuid *
|
||||||
|
spdk_reduce_vol_get_uuid(struct spdk_reduce_vol *vol)
|
||||||
|
{
|
||||||
|
return &vol->uuid;
|
||||||
|
}
|
||||||
|
|
||||||
struct reduce_init_load_ctx {
|
struct reduce_init_load_ctx {
|
||||||
struct spdk_reduce_vol *vol;
|
struct spdk_reduce_vol *vol;
|
||||||
struct spdk_reduce_vol_cb_args backing_cb_args;
|
struct spdk_reduce_vol_cb_args backing_cb_args;
|
||||||
|
Loading…
Reference in New Issue
Block a user