From d2f7bf804c899b2d1e1be6c4a92fa4a4443e4e78 Mon Sep 17 00:00:00 2001 From: Ralph Wuerthner Date: Thu, 15 Apr 2010 16:38:19 +1000 Subject: [PATCH] ethtool does not support virtio_net devices. Skip link test for this type of devices Signed-off-by: Ralph Wuerthner Signed-off-by: Martin Schwenke (This used to be ctdb commit 2ea0a9f1a93781a0d036feb9fcc0d120b182922f) --- ctdb/config/events.d/10.interface | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ctdb/config/events.d/10.interface b/ctdb/config/events.d/10.interface index d7abc186fb0f..35a8b2f4394f 100755 --- a/ctdb/config/events.d/10.interface +++ b/ctdb/config/events.d/10.interface @@ -80,7 +80,8 @@ monitor_interfaces() # we dont know how to test ib links ;; *) - [ -z "$IFACE" ] || { + [ -z "$IFACE" ] || + [ "$(basename $(readlink /sys/class/net/$IFACE/device/driver))" = virtio_net ] || { ethtool $IFACE | grep -q 'Link detected: yes' || { # On some systems, this is not successful when a # cable is plugged but the interface has not been -- 2.34.1