Spdk/test/unit/lib/blob
Tomasz Zawadzki 0aed63f0e2 ut/blob: avoid modifying blob state in simultaneous sync test
This patch addresses couple issues:
1) Before issuing the md syncs the previous steps in test left
blob state in dirty state already. The resize never had a chance
to apply. This patch adds a proper md sync and polls for completion.

2) Changing blob state is something that should be done via API.
In order for dirty state to apply immidietly set_xattr is now used instead.

3) Verify test state in callbacks to make sure not only the number of
completions is correct, but their order.

This patch is introduced because of the test originally worked
only because of the extent pages always writing out its pages.
The second sync always was delayed because of this.
Meanwhile that should not be the case, since no MD or EP modification
was done.

Later in the series Extent Pages are fixed, but this test remained incorrect.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: Iac17c27f6ff83f2b79835aa6e48472d5293c44d0
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7233
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>
Community-CI: Mellanox Build Bot
2021-04-23 07:52:25 +00:00
..
blob.c ut/blob: avoid modifying blob state in simultaneous sync test 2021-04-23 07:52:25 +00:00
bs_dev_common.c blobstore/ut: Add mechanism for power failure simulation in ut 2019-06-19 08:39:00 +00:00
bs_scheduler.c thread: Rename spdk_thread_msg to spdk_msg_fn 2018-12-18 23:31:08 +00:00
Makefile test/blob: Use CFLAGS when checking CUnit version 2021-02-04 08:44:30 +00:00