From 858718c31dea4b88802cac71fa2cce3e9ffe89e9 Mon Sep 17 00:00:00 2001 From: yidong0635 Date: Wed, 12 Jun 2019 10:15:39 -0400 Subject: [PATCH] target/filesystem: Add partprobe after parted Partprobe is a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the partition table. For instance, if you create a new partition on one of your disks using parted, you should run partprobe afterwards to make the kernel aware of the new partition configuration. This is useful for issue #799.And it's compatible with other systems. Change-Id: Icd4c85193bd9d9e6c2b32b8463e75c7a6ff06f34 Signed-off-by: yidong0635 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457735 Reviewed-by: Darek Stojaczyk Reviewed-by: Paul Luse Reviewed-by: Changpeng Liu Tested-by: SPDK CI Jenkins --- test/nvmf/target/filesystem.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/nvmf/target/filesystem.sh b/test/nvmf/target/filesystem.sh index 95a610bc5..5ea8c5583 100755 --- a/test/nvmf/target/filesystem.sh +++ b/test/nvmf/target/filesystem.sh @@ -37,6 +37,7 @@ for incapsule in 0 4096; do for dev in $devs; do timing_enter parted parted -s /dev/$dev mklabel msdos mkpart primary '0%' '100%' + partprobe timing_exit parted sleep 1