From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
|actions= | |actions= | ||
# Ensure the device-mapper-multipath package is installed | # Ensure the device-mapper-multipath package is installed | ||
Execute:dnf -y install device-mapper device-mapper-multipath | Execute:dnf -y install device-mapper device-mapper-multipath | ||
Execute:rpm -qa | grep multipath | Execute:rpm -qa | grep multipath | ||
# Execute the following command to generate the configuration file: | # Execute the following command to generate the configuration file: | ||
Execute:mpathconf --enable | Execute:mpathconf --enable |
Revision as of 07:28, 29 October 2018
Description
This testcase checks whether kpartx will crash when called with invalid options. It is reported in fixed bug that when kpartx was passes something other than a file or a block device or a badly formed pathname, it could read off the end of the device string, and crash. The test steps include:1)install device-mapper device-mapper-multipath 2)restart multipathd service 3)kpartx -l / 4)check dmesg if there is segmentation fault
How to test
- Ensure the device-mapper-multipath package is installed
Execute:dnf -y install device-mapper device-mapper-multipath Execute:rpm -qa
Expected Results
- no Segmentation fault, kpartx no longer crashes when called with invalid options.