[Debian-ha-commits] [ocfs2-tools] 05/58: ocfs2-tools: add support for vd devices

Valentin Vidic vvidic-guest at moszumanska.debian.org
Tue Jun 20 13:40:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch upstream
in repository ocfs2-tools.

commit aaf2db42b8c2827653cdd2155d5ce8b5e36babb7
Author: Valentin Vidić <vvidic at valentin-vidic.from.hr>
Date:   Sat Jul 9 11:06:46 2016 +0200

    ocfs2-tools: add support for vd devices
    
    Allow global heartbeat on /dev/vd Virtio devices inside KVM.
    This is equivalent to /dev/xvd device support previously added for Xen.
---
 o2cb_ctl/o2cb_scandisk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/o2cb_ctl/o2cb_scandisk.c b/o2cb_ctl/o2cb_scandisk.c
index 6cd3635..7adea65 100644
--- a/o2cb_ctl/o2cb_scandisk.c
+++ b/o2cb_ctl/o2cb_scandisk.c
@@ -130,6 +130,8 @@ static void add_to_list(struct list_head *device_list, struct devnode *node)
 				add = !strncmp(path->path, "/dev/loop", 9);
 			if (!add)
 				add = !strncmp(path->path, "/dev/xvd", 8);
+			if (!add)
+				add = !strncmp(path->path, "/dev/vd", 7);
 		}
 		if (add) {
 			hb = malloc(sizeof(struct hb_devices));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git



More information about the Debian-HA-Commits mailing list