summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-03-03 22:19:38 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-03-03 22:19:38 +0000
commit81d3a02928083b54560709488ad81911494d3796 (patch)
tree3f254604447921846968d9fd058f48de01ba517c
parentebb49434c69bb63763977b6a78def8c694d43e0a (diff)
downloadrockbox-81d3a02928083b54560709488ad81911494d3796.tar.gz
rockbox-81d3a02928083b54560709488ad81911494d3796.zip
mark all drives as DEVICE_REMOVABLE to make mac osx (and some developers) happy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16502 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/usbstack/usb_storage.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index 746e275655..9fae7fc354 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -821,8 +821,10 @@ static void identify2inquiry(int lun)
821 (void)lun; 821 (void)lun;
822 memset(tb.inquiry, 0, sizeof(struct inquiry_data)); 822 memset(tb.inquiry, 0, sizeof(struct inquiry_data));
823 823
824#if 0
824 if (identify[82] & 4) 825 if (identify[82] & 4)
825 tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; 826 tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE;
827#endif
826 828
827 /* ATA only has a 'model' field, so we copy the 829 /* ATA only has a 'model' field, so we copy the
828 first 8 bytes to 'vendor' and the rest to 'product' (they are 830 first 8 bytes to 'vendor' and the rest to 'product' (they are
@@ -843,11 +845,14 @@ static void identify2inquiry(int lun)
843 tb.inquiry->Versions = 4; /* SPC-2 */ 845 tb.inquiry->Versions = 4; /* SPC-2 */
844 tb.inquiry->Format = 2; /* SPC-2/3 inquiry format */ 846 tb.inquiry->Format = 2; /* SPC-2/3 inquiry format */
845 847
848#if 0
846#ifdef HAVE_HOTSWAP 849#ifdef HAVE_HOTSWAP
847 if(lun>0) 850 if(lun>0)
848 tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; 851 tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE;
849#endif 852#endif
850 853#endif
854 /* Mac OSX 10.5 doesn't like this driver if DEVICE_REMOVABLE is not set */
855 tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE;
851} 856}
852 857
853#endif /* USB_STORAGE */ 858#endif /* USB_STORAGE */