commit | cb864b352568e091d8e39eb5c06fe2d045511200 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Nov 16 13:02:48 2011 +0100 |
committer | Kevin O'Connor <kevin@koconnor.net> | Thu Nov 17 21:21:01 2011 -0500 |
tree | 2f6c269acc633d8fd73c5ca727771153c76c75f0 | |
parent | ddb8cebd80573e72e2f43fbd6a948fcfcef02f0c [diff] |
usb-msc: move READ CAPACITY to usb_msc_init, fix off-by-one Only leave the bootprio code in setup_drive_hd, like in setup_drive_cdrom. This is a preparatory step; later, the SCSI code in usb_msc_init will become entirely generic. Also, the returned number of sectors is off by one. This will become more important when CHS translation is added later. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>