mdadm/mdcheck-no-devices.fix
Neil Brown 246689df82 - mdcheck-no-devices.fix
mdcheck mustn't report an error if not md devices
  exist (bnc#903051)

OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=124
2014-11-03 00:26:47 +00:00

15 lines
333 B
Plaintext

---
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