Spdk/test/iscsi_tgt
Shuhei Matsumoto c22b052b60 bdev/raid0: Support resize when increasing the size of base bdevs
Implement the resize function for RAID0. raid0_resize() calculate the
new raid_bdev's block count and if it is different from the old block
count, call spdk_bdev_notify_blockcnt_change() with the new block count.

A raid0 bdev always opens all base bdevs. Hence, if the size of base
bdevs are reduced, resize fails now. This limitation will be removed
later.

Add a simple functional test for this feature. The test is to create
a raid0 bdev with two null bdevs, resize one null bdev, check if the
raid0 bdev is not resize, resize another null bdev, check if the raid0
bdev is resized.

test/iscsi_tgt/resize/resize.sh was used a reference to write the test.
Using jq rather than grep&sed is better and hence replace grep&sed by jq
of test/iscsi_tgt/resize/resize.sh together in this patch.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I07136648c4189b970843fc6da51ff40355423144
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16261
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2023-01-17 19:45:34 +00:00
..
bdev_io_wait add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
calsoft test/iscsi_tgt: run most Calsoft tests serially 2022-12-23 09:27:48 +00:00
digests add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
ext4test add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
filesystem add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
fio add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
fuzz iscsi_tgt/fuzz.sh: change overlappling CPU masks 2022-12-08 14:16:00 +00:00
initiator add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
ip_migration add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
login_redirection add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
lvol add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
multiconnection add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
nvme_remote add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
perf add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
pmem add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
qos add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
rbd add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
reset add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
resize bdev/raid0: Support resize when increasing the size of base bdevs 2023-01-17 19:45:34 +00:00
rpc_config add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
sock add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
trace_record add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
common.sh test/iscsi_fuzz: fix a lock on assigned core mask 2022-12-05 22:37:28 +00:00
iscsi_tgt.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00