mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1159.267.1 (42308892nDLBoNRoKA_URBGXNhvEUg)
Change blkif_pdev_t to u32 to allow configuring backend devices which use 32-bit numbers to identify devices. Signed-off-by: Christian Limpach <cl@NetBSD.org>
This commit is contained in:
1 parent
580fd7ddd2
commit
1cfe7f0ac9
2 files changed
+3
-3
No files matched your search
@@ -129,7 +129,8 @@ void vbd_grow(blkif_be_vbd_grow_t *grow)
|
||||
return;
|
||||
}
|
||||
|
||||
x->extent.device = grow->extent.device;
|
||||
/* Mask to 16-bit for compatibility with old tools */
|
||||
x->extent.device = grow->extent.device & 0xffff;
|
||||
x->extent.sector_start = grow->extent.sector_start;
|
||||
x->extent.sector_length = grow->extent.sector_length;
|
||||
x->next = (blkif_extent_le_t *)NULL;
|
||||
|
||||
@@ -81,7 +81,7 @@ typedef struct {
|
||||
|
||||
/* These are used by both front-end and back-end drivers. */
|
||||
#define blkif_vdev_t u16
|
||||
#define blkif_pdev_t u16
|
||||
#define blkif_pdev_t u32
|
||||
#define blkif_sector_t u64
|
||||
|
||||
/*
|
||||
@@ -183,7 +183,6 @@ typedef struct {
|
||||
blkif_sector_t sector_start; /* 0 */
|
||||
blkif_sector_t sector_length; /* 8 */
|
||||
blkif_pdev_t device; /* 16 */
|
||||
u16 __pad; /* 18 */
|
||||
} PACKED blkif_extent_t; /* 20 bytes */
|
||||
|
||||
/* Non-specific 'okay' return. */
|
||||
|
||||