Skip to content

Commit b4631c4

Browse files
authored
Merge pull request #33 from redhat-performance/device_aliases
Adding ability to handle things like LVM volumes and multipath aliases
2 parents d397b17 + 3ed1065 commit b4631c4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fio/fio_run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,8 @@ if [ $file_count -eq 0 ]; then
11291129
if [[ $disks_passed != "grab_disks" ]]; then
11301130
device_list=`echo $disks_passed | sed "s/,/ /g"`
11311131
for item in $device_list; do
1132-
value=`file $item`
1132+
#dereference symlinks to handle things like multipath aliases in /dev/mapper
1133+
value=`file -L $item`
11331134
echo $value | grep "block special" > /dev/null
11341135
if [ $? -ne 0 ]; then
11351136
exit_out "Error: $item is not a block device" 1

0 commit comments

Comments
 (0)