Spdk/test/unit/lib
Jim Harris 31f18569bd blobfs: ensure length xattr is written even if all data is flushed
Data can get implicitly flushed as cache buffers are filled.  But
the length xattr is only written in response to a sync or close
operation.  So we cannot just look at the amount of data flushed,
and ignore the sync operation if all of the data written has been
flushed - we still need to write the length xattr.

This also adds a unit test which reproduces the original problem.

Fixes issue #297.

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

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455692 (master)

(cherry picked from commit e967dcd245)
Change-Id: Icca6ef4d1544f72e9bc31c4ee77d26b4b7f0cce4
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457275
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-06-18 10:59:28 +00:00
..
bdev bdev/crypto: add new uninit call needed for dpdk 19.02 2019-04-24 22:00:10 +00:00
blob blobstore: Remove blob on blobstore load when required 2019-06-17 14:07:45 +00:00
blobfs blobfs: ensure length xattr is written even if all data is flushed 2019-06-18 10:59:28 +00:00
event event: No longer require event in spdk_subsystem_fini 2019-03-08 03:21:45 +00:00
ftl lib/ftl: Rely on internal IO position during ftl_io_done() 2019-04-24 23:24:21 +00:00
ioat test/unit: remove duplicate mk/spdk.common.mk includes 2019-02-11 09:30:27 +00:00
iscsi lib/scsi: Make spdk_scsi_dev_destruct asynchronous 2019-04-22 18:22:59 +00:00
json json: add utilities function enabling itaration over JSON object 2018-10-18 16:07:37 +00:00
jsonrpc jsonrpc: fix received JSON buffer overwrite 2019-01-10 14:31:37 +00:00
log test/unit: remove duplicate mk/spdk.common.mk includes 2019-02-11 09:30:27 +00:00
lvol lvol: Fix for lvol failed deletion flow 2019-04-02 19:23:22 +00:00
notify notify: add basic unit tests for notifications 2019-03-29 21:15:14 +00:00
nvme mock: remove trailing semicolon from MOCK_ definitions 2019-03-22 05:03:42 +00:00
nvmf thread: Add cpumask parameter to spdk_thread_create 2019-04-23 20:22:55 +00:00
reduce ut/reduce: use compress algorithm 2019-04-02 21:40:21 +00:00
scsi lib/scsi: Make spdk_scsi_dev_destruct asynchronous 2019-04-22 18:22:59 +00:00
sock sock: Add spdk_sock_readv(sock, iov, iovcnt) 2019-03-08 01:21:26 +00:00
thread thread: Add cpumask parameter to spdk_thread_create 2019-04-23 20:22:55 +00:00
util dif: Insert DIF into newly read data block by stream fashion 2019-03-13 01:40:02 +00:00
vhost vhost/compat: implement SET/GET_CONFIG 2019-03-15 22:03:26 +00:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile notify: add basic unit tests for notifications 2019-03-29 21:15:14 +00:00