[Qemu-devel] Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-21 Thread john cooper
Rusty Russell wrote: > On Tue, 22 Jun 2010 02:13:21 am Ryan Harper wrote: >> * john cooper [2010-06-21 01:11]: >>> Rusty Russell wrote: /* id_str is not necessarily nul-terminated! */ buf[VIRTIO_BLK_ID_BYTES] = '\0'; return virtblk_get_id(disk, buf); >>> The /sys file is re

[Qemu-devel] Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-21 Thread Rusty Russell
On Tue, 22 Jun 2010 02:13:21 am Ryan Harper wrote: > * john cooper [2010-06-21 01:11]: > > Rusty Russell wrote: > > > On Sat, 19 Jun 2010 04:08:02 am Ryan Harper wrote: > > >> Create a new attribute for virtio-blk devices that will fetch the serial > > >> number > > >> of the block device. This

[Qemu-devel] Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-21 Thread john cooper
Ryan Harper wrote: > * john cooper [2010-06-21 01:11]: >> Rusty Russell wrote: >>> On Sat, 19 Jun 2010 04:08:02 am Ryan Harper wrote: Create a new attribute for virtio-blk devices that will fetch the serial number of the block device. This attribute can be used by udev to create

[Qemu-devel] Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-21 Thread Ryan Harper
* john cooper [2010-06-21 01:11]: > Rusty Russell wrote: > > On Sat, 19 Jun 2010 04:08:02 am Ryan Harper wrote: > >> Create a new attribute for virtio-blk devices that will fetch the serial > >> number > >> of the block device. This attribute can be used by udev to create > >> disk/by-id > >> s

[Qemu-devel] Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-20 Thread john cooper
Rusty Russell wrote: > On Sat, 19 Jun 2010 04:08:02 am Ryan Harper wrote: >> Create a new attribute for virtio-blk devices that will fetch the serial >> number >> of the block device. This attribute can be used by udev to create disk/by-id >> symlinks for devices that don't have a UUID (filesyste

[Qemu-devel] Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-20 Thread Rusty Russell
On Sat, 19 Jun 2010 04:08:02 am Ryan Harper wrote: > Create a new attribute for virtio-blk devices that will fetch the serial > number > of the block device. This attribute can be used by udev to create disk/by-id > symlinks for devices that don't have a UUID (filesystem) associated with them. >