mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
c363c74a25
Commit 9fd7ac7d035f0b2f8dcc3cb19935eb181816bd76 introduced a way a method of avoiding reading from mirrors with a device failure. If a device was found to be dead, the mapping table was checked for 'handle_errors' or 'block_on_error'. These strings were checked for in the table string via 'strstr', which could also match on strings like, 'no_handle_errors' or 'no_block_on_error'. No such strings exist, but we don't want to have problems in the future if they do. So, we check for ' <string>{'\0'|' '}'.