test/filesystem: Changed msdos type partition creation to the GPT
Scripts are modified to create easily recognizable partition label so that we know autotest.sh can safely remove them. It is possible to achieve by creating the GPT partition with 'SPDK_TEST' label. Fixes #2345 Signed-off-by: Kamil Godzwon <kamilx.godzwon@intel.com> Change-Id: Ibfcebc5bb68e1b4e1d93e0359a39d3e34748d21d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11821 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
parent
449cab9569
commit
dd57432742
@ -69,8 +69,7 @@ mkdir -p /mnt/device
|
|||||||
dev=$(iscsiadm -m session -P 3 | grep "Attached scsi disk" | awk '{print $4}')
|
dev=$(iscsiadm -m session -P 3 | grep "Attached scsi disk" | awk '{print $4}')
|
||||||
|
|
||||||
waitforfile /dev/$dev
|
waitforfile /dev/$dev
|
||||||
parted -s /dev/$dev mklabel msdos
|
parted -s /dev/$dev mklabel gpt mkpart SPDK_TEST '0%' '100%'
|
||||||
parted -s /dev/$dev mkpart primary '0%' '100%'
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
function filesystem_test() {
|
function filesystem_test() {
|
||||||
|
@ -58,8 +58,7 @@ function nvmf_filesystem_part() {
|
|||||||
nvme_name=$(lsblk -l -o NAME,SERIAL | grep -oP "([\w]*)(?=\s+${NVMF_SERIAL})")
|
nvme_name=$(lsblk -l -o NAME,SERIAL | grep -oP "([\w]*)(?=\s+${NVMF_SERIAL})")
|
||||||
|
|
||||||
mkdir -p /mnt/device
|
mkdir -p /mnt/device
|
||||||
|
parted -s /dev/${nvme_name} mklabel gpt mkpart SPDK_TEST '0%' '100%'
|
||||||
parted -s /dev/${nvme_name} mklabel msdos mkpart primary '0%' '100%'
|
|
||||||
partprobe
|
partprobe
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user