|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 1/3] xen-blkfront: Drop name and minor adjustments fo
These were intended to avoid the namespace clash when representing
emulated IDE and SCSI devices. However that seems to confuse users
more than expected (a disk defined as sda becomes xvde).
So for now go back to the scheme which does no adjustments. This
will break when mixing IDE and SCSI names in the configuration of
guests but should be by now expected.
Signed-off-by: Stefan Bader <stefan.bader@xxxxxxxxxxxxx>
---
drivers/block/xen-blkfront.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 2112822..a41530f 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -125,8 +125,8 @@ static DEFINE_SPINLOCK(minor_lock);
#define BLKIF_MINOR_EXT(dev) ((dev)&(~EXTENDED))
#define EMULATED_HD_DISK_MINOR_OFFSET (0)
#define EMULATED_HD_DISK_NAME_OFFSET (EMULATED_HD_DISK_MINOR_OFFSET / 256)
-#define EMULATED_SD_DISK_MINOR_OFFSET (EMULATED_HD_DISK_MINOR_OFFSET + (4 *
16))
-#define EMULATED_SD_DISK_NAME_OFFSET (EMULATED_HD_DISK_NAME_OFFSET + 4)
+#define EMULATED_SD_DISK_MINOR_OFFSET (0)
+#define EMULATED_SD_DISK_NAME_OFFSET (EMULATED_SD_DISK_MINOR_OFFSET / 256)
#define DEV_NAME "xvd" /* name in /dev */
--
1.7.4.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", (continued)
- [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Stefano Stabellini
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Ian Campbell
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Stefan Bader
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Stefano Stabellini
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Stefan Bader
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Stefano Stabellini
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Stefan Bader
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Stefano Stabellini
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", John Haxby
- Re: [Xen-devel] Re: Question on "xen-blkfront: handle Xen major numbers other than XENVBD", Stefan Bader
- [Xen-devel] [PATCH 1/3] xen-blkfront: Drop name and minor adjustments for emulated scsi devices,
Stefan Bader <=
- [Xen-devel] Re: [PATCH 1/3] xen-blkfront: Drop name and minor adjustments for emulated scsi devices, Stefano Stabellini
- [Xen-devel] [PATCH 2/3] xen-blkfront: Fix one off warning about name clash, Stefan Bader
- [Xen-devel] Re: [PATCH 2/3] xen-blkfront: Fix one off warning about name clash, Stefano Stabellini
- [Xen-devel] [PATCH 3/3] xen-blkfront: Fix minor offset calculation for emulated IDE disks, Stefan Bader
- [Xen-devel] Re: [PATCH 3/3] xen-blkfront: Fix minor offset calculation for emulated IDE disks, Stefano Stabellini
- [Xen-devel] Re: [PATCH 3/3] xen-blkfront: Fix minor offset calculation for emulated IDE disks, Stefan Bader
- [Xen-devel] Re: [PATCH 3/3] xen-blkfront: Fix minor offset calculation for emulated IDE disks, Stefano Stabellini
- [Xen-devel] Re: [PATCH 3/3] xen-blkfront: Fix minor offset calculation for emulated IDE disks, Stefan Bader
- Re: [Xen-devel] [PATCH 3/3] xen-blkfront: Fix minor offset calculation for emulated IDE disks, Konrad Rzeszutek Wilk
- [Xen-devel] Problem with Xen 4.1 on Ubuntu 11.10 ( Oneiric Ocelot) (HVM DomUs crash), Boris Derzhavets
|
|
|
|
|