[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]