commit | 177aecfcf4161c53f503782e68608284b198c0f9 | [log] [tgz] |
---|---|---|
author | Roman Kagan <rkagan@virtuozzo.com> | Wed Apr 26 17:18:01 2017 +0300 |
committer | Kevin O'Connor <kevin@koconnor.net> | Tue May 02 19:57:03 2017 -0400 |
tree | a72e6c0155ded6ec603173ad7012100e177c83cf | |
parent | 6f090f868dcdc089a669b3664f9564ef8f65d0ea [diff] |
blockcmd: accept only disks and CD-ROMs Luns that report to INQUIRY with a type other than CD-ROM are considered disks. This isn't necessarily the case; working with such luns as disks may lead to unpredictable results. So bail out if the lun is neither CD-ROM nor disk. Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>