intel / lkp-tests

Linux Kernel Performance tests
GNU General Public License v2.0
251 stars 153 forks source link

setup/fio-setup-basic: fix incorrect raw disk capacity calculation #380

Closed findns94 closed 1 month ago

findns94 commented 1 month ago

This commit can fix when /dev is not shown in df command in ubuntu 24.04. When doing fio with raw disk, we should use lsblk to get disk capacity in bytes instead of reading filesystem stats because raw disk will not mount filesystem

Fix for the following error: "storage /dev/disk doesn't mounted" when doing fio with raw disk

rli9 commented 1 month ago

thanks for the patch