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

Dave Allan dallan at redhat.com
Wed May 5 21:11:14 UTC 2010


On Wed, May 05, 2010 at 02:49:44PM -0600, Eric Blake wrote:
> On 05/05/2010 02:48 PM, Dave Allan wrote:
> >>
> >> Great for SCSI, not so great for USB sticks:
> >>
> >> # hdparm -i /dev/sdb
> > 
> > What does the following give you?
> > 
> > scsi_id --whitelisted --replace-whitespace --device=/dev/sdb
> 
> # scsi_id --whitelisted --replace-whitespace --device=/dev/sdb
> # echo $?
> 1
> 
> Not a peep on stderr (for shame).

Ok, looks like that device doesn't return a serial number.  For
devices that do have serials, especially when there are lots of nearly
identical disks on a system, it'd be really helpful.

Dave




More information about the libvir-list mailing list