xen-blkfront: Fix one off warning about name clash
authorStefan Bader <stefan.bader@canonical.com>
Thu, 14 Jul 2011 13:30:37 +0000 (15:30 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 14 Jul 2011 18:19:51 +0000 (14:19 -0400)
Avoid telling users to use xvde and onwards when using xvde.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c

index 238b9419c6d382b835ed5576f5720756ecf3ce25..9ea8c2576c70e768f22ad8ea2cc423337611fb4f 100644 (file)
@@ -529,7 +529,7 @@ static int xlvbd_alloc_gendisk(blkif_sector_t capacity,
                minor = BLKIF_MINOR_EXT(info->vdevice);
                nr_parts = PARTS_PER_EXT_DISK;
                offset = minor / nr_parts;
-               if (xen_hvm_domain() && offset <= EMULATED_HD_DISK_NAME_OFFSET + 4)
+               if (xen_hvm_domain() && offset < EMULATED_HD_DISK_NAME_OFFSET + 4)
                        printk(KERN_WARNING "blkfront: vdevice 0x%x might conflict with "
                                        "emulated IDE disks,\n\t choose an xvd device name"
                                        "from xvde on\n", info->vdevice);