diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-30 01:34:31 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-30 01:34:31 +0000 |
commit | 2bac601963afc6777692777c2e19666b589e85cd (patch) | |
tree | ab5e84692a25800c883b14eb4f7b06ee06fffc7f /hw/usb-msd.c | |
parent | c1713132e07955819477a87a0ce830358e77a147 (diff) | |
download | qemu-2bac601963afc6777692777c2e19666b589e85cd.zip qemu-2bac601963afc6777692777c2e19666b589e85cd.tar.gz qemu-2bac601963afc6777692777c2e19666b589e85cd.tar.bz2 |
Remove repeated code and enable encrypted SD cards and USB sticks images.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2750 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r-- | hw/usb-msd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c index 251bd64..08fc5c3 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -522,6 +522,8 @@ USBDevice *usb_msd_init(const char *filename) bdrv = bdrv_new("usb"); if (bdrv_open(bdrv, filename, 0) < 0) goto fail; + if (qemu_key_check(bdrv, filename)) + goto fail; s->bs = bdrv; s->dev.speed = USB_SPEED_FULL; |