Re: [Qemu-devel] [PATCH 3/3] ide: Adds wwn=hex qdev option allowing the user to specify a disk's World Wide Name

2012-03-13 Thread Floris Bos / Maxnet
sincerely, Floris Bos

[Qemu-devel] [PATCH 3/3] [v2] ide: Adds wwn=hex qdev option allowing the user to specify a disk's World Wide Name

2012-03-13 Thread Floris Bos
Linux guests can address disks by their unique World Wide Name number (e.g. /dev/disk/by-id/wwn-0x5001517959123522) This patch adds support for assigning a World Wide Name number to a virtual IDE disk. Cc: kw...@redhat.com Signed-off-by: Floris Bos d...@noc-ps.com --- hw/ide/core.c | 29

Re: [Qemu-devel] [PATCH 3/3] [v2] ide: Adds wwn=hex qdev option allowing the user to specify a disk's World Wide Name

2012-03-13 Thread Floris Bos / Maxnet
are currently not set at all in ide_atapi_identify. Yours sincerely, Floris Bos

Re: [Qemu-devel] [PATCH] ide: Adds model=s option, allowing the user to override the default disk model name QEMU HARDDISK

2012-03-12 Thread Floris Bos / Maxnet
[40] = '\0'. Thanks for the feedback. Will change that line (and serial that used strncpy() as well) to pstrcpy(), correct the cosmetic issues mentioned by Andreas and submit a v2 patch. -- Yours sincerely, Floris Bos

[Qemu-devel] [PATCH v2] ide: Adds model=s option, allowing the user to override the default disk model name QEMU HARDDISK

2012-03-12 Thread Floris Bos
-of-disk-model is always QEMU HARDDISK This patch introduces a model=s option which in combination with the existing serial=s option can be used to fake the disk the operating system was previously on, allowing the OS to boot properly. Cc: kw...@redhat.com Signed-off-by: Floris Bos d...@noc-ps.com

Re: [Qemu-devel] [PATCH] ide: Adds model=s option, allowing the user to override the default disk model name QEMU HARDDISK

2012-03-12 Thread Floris Bos / Maxnet
On 03/12/2012 12:57 PM, Kevin Wolf wrote: Am 10.03.2012 20:56, schrieb Floris Bos: Some Linux distributions use the /dev/disk/by-id/scsi-SATA_name-of-disk-model_serial addressing scheme when refering to partitions in /etc/fstab and elsewhere. This causes problems when starting a disk image

Re: [Qemu-devel] [PATCH v2] ide: Adds model=s option, allowing the user to override the default disk model name QEMU HARDDISK

2012-03-12 Thread Floris Bos / Maxnet
/disk/by-id link Could be a combination of 3 fields: vendor, model and serial. But could also be based on another unique ascii or binary identifier provided by the drive through Vital Product Data page 83h. -- Yours sincerely, Floris Bos

Re: [Qemu-devel] [PATCH v2] ide: Adds model=s option, allowing the user to override the default disk model name QEMU HARDDISK

2012-03-12 Thread Floris Bos / Maxnet
On 03/12/2012 05:08 PM, Paolo Bonzini wrote: Il 12/03/2012 16:27, Floris Bos / Maxnet ha scritto: 1. IDE only, scsi-disk is missing. Correct. IDE support is easy. Adding SCSI support is more complicated, because model and serial are not the only factors that can make up a /dev/disk/by-id

[Qemu-devel] [PATCH 1/3] ide: Adds model=s qdev option, allowing the user to override the default disk model name QEMU HARDDISK

2012-03-12 Thread Floris Bos
-of-disk-model is always QEMU HARDDISK This patch introduces a model=s option which in combination with the existing serial=s option can be used to fake the disk the operating system was previously on, allowing the OS to boot properly. Cc: kw...@redhat.com Signed-off-by: Floris Bos d...@noc-ps.com

[Qemu-devel] [PATCH 3/3] ide: Adds wwn=hex qdev option allowing the user to specify a disk's World Wide Name

2012-03-12 Thread Floris Bos
Linux guests can address disks by their unique World Wide Name number (e.g. /dev/disk/by-id/wwn-0x5001517959123522) This patch adds support for assigning a World Wide Name number to a virtual IDE disk. Cc: kw...@redhat.com Signed-off-by: Floris Bos d...@noc-ps.com --- hw/ide/core.c | 13

[Qemu-devel] [PATCH 2/3] Disk serial number string copy function: change strncpy() to pstrcpy()

2012-03-12 Thread Floris Bos
Cc: kw...@redhat.com Signed-off-by: Floris Bos d...@noc-ps.com --- blockdev.c|5 +++-- hw/ide/core.c |2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/blockdev.c b/blockdev.c index d78aa51..e52449e 100644 --- a/blockdev.c +++ b/blockdev.c @@ -532,8 +532,9

[Qemu-devel] [PATCH] ide: Adds model=s option, allowing the user to override the default disk model name QEMU HARDDISK

2012-03-11 Thread Floris Bos
-of-disk-model is always QEMU HARDDISK This patch introduces a model=s option which in combination with the existing serial=s option can be used to fake the disk the operating system was previously on, allowing the OS to boot properly. Cc: kw...@redhat.com Signed-off-by: Floris Bos d...@noc-ps.com