Spdk/lib
Jim Harris dd42c80857 lib/reduce: add functions to get pm and backing sizes
A compressed volume will require both a persistent
memory region/file for per-chunk metadata and a
backing device to store the compressed blocks.
Add functions here to calculate the sizes of these
based on the desired size of the compressed volume,
its chunk size and the size of each backing block.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I9203479e2a268c3ab0e2b0e06e348285e9d1cd13

Reviewed-on: https://review.gerrithub.io/430387
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-11-08 00:01:47 +00:00
..
bdev bdev_nvme: tolerate failure on bdev creation 2018-11-07 17:21:04 +00:00
blob bit_array: return UINT32_MAX if no cleared bits found 2018-10-08 17:03:33 +00:00
blobfs blobfs: align rw buffer to lba of device underneath 2018-09-18 16:35:57 +00:00
conf conf: don't strdup name if section already exist 2018-05-17 17:13:19 +00:00
copy lib/copy: unregister copy engine on finish 2018-10-15 17:42:20 +00:00
env_dpdk env/dpdk: always set base-virtaddr 2018-11-05 15:38:31 +00:00
event net: add asynchronous initialization and finish 2018-11-07 17:08:27 +00:00
ioat ioat: change the return type of ioat_channel_destruct() to be void 2018-09-18 22:41:00 +00:00
iscsi iscsi: do not caculate the CRC in multiple times 2018-11-05 15:30:07 +00:00
json json: Use not C++ style comments // but C-style comments /* */ 2018-10-31 22:01:47 +00:00
jsonrpc jsonrpc: introduce spdk_jsonrpc_client_response 2018-11-06 19:00:41 +00:00
log log: update tracelog usage message 2018-10-24 18:25:37 +00:00
lvol lvol: _spdk_add_lvs_to_list: break loop immediately if find 2018-09-14 03:56:35 +00:00
nbd nbd: add support for io_wait implement in nbd 2018-10-02 22:36:01 +00:00
net lib: fix typos in the lib directory 2018-08-24 17:15:12 +00:00
nvme nvme: Add mechanism to override RDMA pd/mr behavior 2018-11-05 17:22:30 +00:00
nvmf nvmf: don't implicitly create the transport in tgt listen. 2018-11-02 18:04:06 +00:00
reduce lib/reduce: add functions to get pm and backing sizes 2018-11-08 00:01:47 +00:00
rocksdb blobfs: add a new API to return file's unique ID 2018-08-29 16:29:22 +00:00
rpc rpc: g_rpc_lock_path: remove redundant plus 2018-09-04 22:21:04 +00:00
scsi scsi: Use not C++ style comments // but C-style comments /* */ 2018-10-31 22:01:47 +00:00
sock net: add asynchronous initialization and finish 2018-11-07 17:08:27 +00:00
thread nvmf: change the return type of calloc failed 2018-11-02 17:56:40 +00:00
trace trace: remove alias concept 2018-09-05 18:03:43 +00:00
ut_mock test: Simplify the mock library 2018-08-09 17:18:23 +00:00
util util: make spdk_parse_ip_addr return -EINVAL instead -1 2018-10-12 23:34:27 +00:00
vhost vhost/blk: check against hotremoved bdev in GET_CONFIG handler 2018-10-23 17:54:46 +00:00
virtio virtio: support dynamic memory registrations 2018-10-23 18:02:12 +00:00
Makefile lib/reduce: add empty library, include, unit tests 2018-11-07 18:11:49 +00:00