commit ff84eb5b6e76427f227632d5604703b8584d1b7f Author: Srinivas Eeda Date: Mon Feb 25 15:58:15 2013 -0800 ocfs2-tools: add support for xvd devices It is common for virtual disks to be used with ocfs2 inside a VM. With Xen, these devices are /dev/xvd. This patch allows for xvd devices to be used when using global-heartbeat. Signed-off-by: Wim Coekaerts Acked-by: sunil.mushran@gmail.com diff --git a/o2cb_ctl/o2cb_scandisk.c b/o2cb_ctl/o2cb_scandisk.c index 92e754e..6cd3635 100644 --- a/o2cb_ctl/o2cb_scandisk.c +++ b/o2cb_ctl/o2cb_scandisk.c @@ -128,6 +128,8 @@ static void add_to_list(struct list_head *device_list, struct devnode *node) add = !strncmp(path->path, "/dev/sd", 7); if (!add) add = !strncmp(path->path, "/dev/loop", 9); + if (!add) + add = !strncmp(path->path, "/dev/xvd", 8); } if (add) { hb = malloc(sizeof(struct hb_devices));