Change-Id: I5dde0555bd7d0e03dea3779dfd59c13ece92696a Signed-off-by: Pawel Niedzwiecki <pawelx.niedzwiecki@intel.com> Reviewed-on: https://review.gerrithub.io/382835 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
1.2 KiB
1.2 KiB
vhost-block readonly feature test plan
Objective
Vhost block controllers can be created with readonly feature which prevents any write operations on this device. The purpose of this test is to verify proper operation of this feature.
Test cases description
To test readonly feature, this test will create normal vhost-blk controller with NVMe device and on a VM it will create and mount a partition to which it will copy a file. Next it will poweroff a VM, remove vhost controller and create new readonly vhost-blk controller with the same device.
Test cases
blk_ro_tc1
- Start vhost
- Create vhost-blk controller with NVMe device and readonly feature disabled using RPC
- Run VM with attached vhost-blk controller
- Check visibility of readonly flag using lsblk, fdisk
- Create new partition
- Create new file on new partition
- Shutdown VM, remove vhost controller
- Create vhost-blk with previously used NVMe device and readonly feature now enabled using RPC
- Run VM with attached vhost-blk controller
- Check visibility of readonly flag using lsblk, fdisk
- Try to delete previous file
- Try to create new file
- Try to remove partition
- Repeat steps 2 to 4
- Remove file from disk, delete partition
- Shutdown VM, exit vhost