Spdk/test/blobfs
Changpeng Liu 4d4766b716 test/blobfs: fix the heap-use-after-free issue
When testing fuse with blobfs, we used "bs=4k count=32" as the test case,
but when it comes to bdev layer, the IO size is 64KiB, and alignment is 4KiB,
so bdev_io_get_buf() will return error as the following message:

bdev.c: 789:bdev_io_get_buf: *ERROR*: Length + alignment 69632 is larger than allowed

so here we can resize the AIO alignment size from 4096 to 512, because the bdev memory
pool default alignment size is 512, with this change the error will not occur in
bdev layer.

For the umount operation, since the fuse module will use send message to do the umount,
here we can insert one second barrier to wait for the umount to be completed before
killing the process.

Fix issue #1406.

Change-Id: Id3c67900c87a5797718c28c184a925275f90c7d4
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2587
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2020-05-26 07:21:24 +00:00
..
fuse test/blobfs: set blobfs cache size when starting fuse 2020-05-04 10:26:50 +00:00
mkfs global: rename copy to accel 2020-02-18 08:05:34 +00:00
rocksdb lib/log: add timestamps for spdk_log messages 2020-05-11 12:34:28 +00:00
blobfs.sh test/blobfs: fix the heap-use-after-free issue 2020-05-26 07:21:24 +00:00
Makefile blobfs/fuse: put FUSE code in module blobfs_bdev 2019-10-15 16:25:09 +00:00