From 2e1ad312883a5ba610d02d039fe183283d4d4667 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 11 Dec 2008 21:05:41 -0800 Subject: [PATCH] fix-usb-disk-capacity.patch (applied cleanly) --- src/devices/usb_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/usb_storage.c b/src/devices/usb_storage.c index a5e3ad1..2511439 100644 --- a/src/devices/usb_storage.c +++ b/src/devices/usb_storage.c @@ -309,7 +309,7 @@ msc_get_geometry (struct msc_class_info *mci) usb_dev_bulk (mci->eop_out, &cbw, sizeof (cbw), &tx); usb_dev_bulk (mci->eop_in, &buf, sizeof (buf), &tx); - mci->blk_count = be32_to_machine (cap->blocks); + mci->blk_count = be32_to_machine (cap->blocks) + 1; mci->blk_size = be32_to_machine (cap->block_len); /* did CSW stall? */ -- 2.30.2