b7bfa504 | 22-Aug-2022 |
Evgeniy Kochetov <evgeniik@nvidia.com> |
blob: Use bdev copy command in CoW flow if supported
Copy-on-write happens when cluster is written for the first time for thin provisioned volume. Currently it is implemented as two separate request
blob: Use bdev copy command in CoW flow if supported
Copy-on-write happens when cluster is written for the first time for thin provisioned volume. Currently it is implemented as two separate requests to underlying bdev: read of the whole cluster to bounce buffer and then write of this buffer to the new location on the same underlying bdev.
This patch improves copy-on-write flow by utilizing copy command of underlying bdev if it is supported. In this case we have just one request to bdev and don't need the bounce buffer.
Signed-off-by: Evgeniy Kochetov <evgeniik@nvidia.com> Change-Id: I92552e0f18f7a41820d589e7bb1e86160c69183f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14351 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
d8a3dee1 | 05-Sep-2022 |
Damiano <damiano@localhost.localdomain> |
blob: Add functions to find [un]allocated io_unit
These functions start from a given offset and seek for first io_unit belonging to an allocated cluster or first io_unit belonging to an unallocated
blob: Add functions to find [un]allocated io_unit
These functions start from a given offset and seek for first io_unit belonging to an allocated cluster or first io_unit belonging to an unallocated cluster
Signed-off-by: Damiano Cipriani <damiano.cipriani@suse.com> Change-Id: I0c632e2b3dfd2e96aa22e21796e25a36f2f55f9f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14360 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot
show more ...
|
8b25bfce | 02-Feb-2022 |
Alexey Marchuk <alexeymar@mellanox.com> |
blob: Destroy snapshot's back_bs_dev during initialization
When snapshot is created, the new blob is loaded and examined for BLOB_SNAPSHOT xattr in blob_load_backing_dev function. At this step there
blob: Destroy snapshot's back_bs_dev during initialization
When snapshot is created, the new blob is loaded and examined for BLOB_SNAPSHOT xattr in blob_load_backing_dev function. At this step there is no such xattr, so zeroes back_bs_dev is created. Later snapshot inherits back_bs_dev from original blob, so previously created back_bs_dev can be lost.
Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Change-Id: I90cc9b02f56598d8c5c7fe00409f571fba0aa91a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11384 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
show more ...
|
d0149da2 | 02-Feb-2022 |
Mike Gerdts <mgerdts@nvidia.com> |
blob: remove unused inline functions
bs_back_dev_lba_to_io_unit() and bs_num_pages_to_cluster_boundary() are unused inline functions. The last consumer (by the earlier _spdk_* name) was removed in c
blob: remove unused inline functions
bs_back_dev_lba_to_io_unit() and bs_num_pages_to_cluster_boundary() are unused inline functions. The last consumer (by the earlier _spdk_* name) was removed in commit 6609b776.
Change-Id: Ib1babfed8002fb44451b337aa0db66c15a6805d2 Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11561 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
show more ...
|
8ddb1790 | 20-Dec-2021 |
Mike Gerdts <mgerdts@nvidia.com> |
blob: print LBA when dumping a metadata page
When printing metadata pages, blobcli could print the start LBA to aid someone that needs to debug with dd and od.
Signed-off-by: Mike Gerdts <mgerdts@n
blob: print LBA when dumping a metadata page
When printing metadata pages, blobcli could print the start LBA to aid someone that needs to debug with dd and od.
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: I380bd923dfcd1149e3f705dd0ec0ab46b1000019 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11260 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
5c29449f | 20-Dec-2021 |
Mike Gerdts <mgerdts@nvidia.com> |
blob: print extent tables
When blobcli is printing blob metadata, extent tables are now printed.
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: Ie748a2f2b3fbc3e6e5ee06a0f2eb9bd491bfed46
blob: print extent tables
When blobcli is printing blob metadata, extent tables are now printed.
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: Ie748a2f2b3fbc3e6e5ee06a0f2eb9bd491bfed46 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11259 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
8caf8f5e | 20-Dec-2021 |
Mike Gerdts <mgerdts@nvidia.com> |
blob: report unexpected descriptor types
When printing blob metadata via blobcli, descriptor types that do not have full dump support should not be silently ignored. This prints a message that indic
blob: report unexpected descriptor types
When printing blob metadata via blobcli, descriptor types that do not have full dump support should not be silently ignored. This prints a message that indicates an unsupported descriptor type was encountered so that the person debugging with blobcli knows that there is more metadata present.
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: Id30b671fd9dee1ec12e10625eb2af4c1e43eda27 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11258 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
6e440ff1 | 20-Dec-2021 |
Mike Gerdts <mgerdts@nvidia.com> |
blob: print invalid, data_ro, and md_ro flags
When blobcli prints blob metadata, it will now Print invalid_flags, data_ro_flags, and md_ro_flags when printing blob metadata. The complete mask is pr
blob: print invalid, data_ro, and md_ro flags
When blobcli prints blob metadata, it will now Print invalid_flags, data_ro_flags, and md_ro_flags when printing blob metadata. The complete mask is printed as well as the meaning of each bit or set of bits. If unknown bits are set, that will be indicated in the output as well.
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: I743a843a5d23b0e81c04482304515ab3c3b4c7bc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11257 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot
show more ...
|