mdadm/mdcheck-no-devices.fix

15 lines
333 B
Plaintext
Raw Normal View History

---
misc/mdcheck | 1 +
1 file changed, 1 insertion(+)
--- mdadm-3.3.1.orig/misc/mdcheck
+++ mdadm-3.3.1/misc/mdcheck
@@ -77,6 +77,7 @@ find /var/lib/mdcheck -name "MD_UUID*" -
cnt=0
for dev in /dev/md?*
do
+ [ -e "$dev" ] || continue
sys=`sysname $dev`
if [ ! -f "$sys/md/sync_action" ]
then # cannot check this array