[libvirt] [TCK PATCH] block devices: allow specification of size for safety

Eric Blake eblake at redhat.com
Wed May 5 20:23:43 UTC 2010


On 05/05/2010 02:21 PM, Jim Paris wrote:
>> Great for SCSI, not so great for USB sticks:
>>
>> # hdparm -i /dev/sdb
>>
>> /dev/sdb:
>>  HDIO_DRIVE_CMD(identify) failed: Invalid exchange
>>  HDIO_GET_IDENTITY failed: Invalid argument
>> # echo $?
>> 22
> 
> Using a device path in /dev/disk/by-id/ would make more sense than
> specifying /dev/sdX if you're concerned about hitting the wrong disk.

At this point, I'm happy making default.cfg show an example using
/dev/disk/by-id/xxx + size.  Look for v2 of the patch coming up soon.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100505/d04fbef4/attachment-0001.sig>


More information about the libvir-list mailing list