mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 11:55:15 +00:00
Currently interactive RAID setup prompt does not list virtio-blk devices due to following reasons: - We fail matching '-p' option on 'lsblk --help' output since misusage of regex functon, list_block_devices() always skipping to use lsblk output. - We don't check existance of /dev/vd* when we skipping to use lsblk. - We mistakenly excluded virtio-blk devices on 'lsblk -pnr' output using '-e' option, but we actually needed them. To fix the problem we need to use re.search() instead of re.match() to match '-p' option on 'lsblk --help', need to add '/dev/vd*' on block device list, then need to stop '-e 252' option on lsblk which excludes virtio-blk. Additionally, it better to parse 'TYPE' field of lsblk output, we should skip 'loop' devices and 'rom' devices since these are not disk devices. Fixes #4066 Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <20191201160143.219456-1-syuu@scylladb.com>