[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState abstraction |
Date: |
Wed, 6 Jun 2012 12:52:19 +0100 |
On 5 June 2012 13:51, Markus Armbruster <address@hidden> wrote:
> @@ -554,6 +553,7 @@ static int blk_init(struct XenDevice *xendev)
> {
> struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev);
> int index, qflags, info = 0;
> + char fmt_name[128];
Fixed length array with a hardcoded magic number size ?
If the block layer guarantees that format names are going to be
less than 128 bytes it ought to provide a suitable #define for
people to set array sizes to...
-- PMM
- [Qemu-devel] [PATCH 0/2] xen: Clean up BlockDriverState use, Markus Armbruster, 2012/06/05
- [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState abstraction, Markus Armbruster, 2012/06/05
- Re: [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState abstraction,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState abstraction, Markus Armbruster, 2012/06/06
- Re: [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState abstraction, Peter Maydell, 2012/06/06
- Re: [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState abstraction, Markus Armbruster, 2012/06/07
- Re: [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState abstraction, Peter Maydell, 2012/06/07
- Re: [Qemu-devel] [PATCH 2/2] xen: Don't peek behind the BlockDriverState abstraction, Markus Armbruster, 2012/06/13
[Qemu-devel] [PATCH 1/2] xen: Don't change -drive if=xen device name during machine init, Markus Armbruster, 2012/06/05