Re: [Qemu-devel] [PATCH v2] block: Validate node-name

2014-09-25 Thread Kevin Wolf
Am 25.09.2014 um 09:54 hat Kevin Wolf geschrieben: > The device_name of a BlockDriverState is currently checked because it is > always used as a QemuOpts ID and qemu_opts_create() checks whether such > IDs are wellformed. > > node-name is supposed to share the same namespace, but it isn't checked

Re: [Qemu-devel] [PATCH v2] block: Validate node-name

2014-09-25 Thread Stefan Hajnoczi
On Thu, Sep 25, 2014 at 09:54:02AM +0200, Kevin Wolf wrote: > The device_name of a BlockDriverState is currently checked because it is > always used as a QemuOpts ID and qemu_opts_create() checks whether such > IDs are wellformed. > > node-name is supposed to share the same namespace, but it isn't

[Qemu-devel] [PATCH v2] block: Validate node-name

2014-09-25 Thread Kevin Wolf
The device_name of a BlockDriverState is currently checked because it is always used as a QemuOpts ID and qemu_opts_create() checks whether such IDs are wellformed. node-name is supposed to share the same namespace, but it isn't checked currently. This patch adds explicit checks both for device_na