Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting all zero return value. #38

Closed
janseeger opened this issue Nov 27, 2014 · 0 comments
Closed

Getting all zero return value. #38

janseeger opened this issue Nov 27, 2014 · 0 comments

Comments

@janseeger
Copy link
Member

Crashes CSW parsing:

when reading FAT0

#!
read 7550976 bytes, offset 18432
 java.lang.IllegalArgumentException: Invalid CSW header!
 at net.alphadev.usbstorage.scsi.CommandStatusWrapper.<init>(CommandStatusWrapper.java:43)
 at net.alphadev.usbstorage.bbb.BulkBlockDevice.getDeviceStatus(BulkBlockDevice.java:147)
 at net.alphadev.usbstorage.bbb.BulkBlockDevice.assumeDeviceStatusOK(BulkBlockDevice.java:129)
 at net.alphadev.usbstorage.bbb.BulkBlockDevice.read(BulkBlockDevice.java:184)
 at net.alphadev.usbstorage.partition.Partition.read(Partition.java:48)
 at net.alphadev.usbstorage.util.BlockDeviceWrapper.read(BlockDeviceWrapper.java:42)
 at de.waldheinz.fs.fat.Fat.read(Fat.java:179)
 at de.waldheinz.fs.fat.Fat.read(Fat.java:72)
 at de.waldheinz.fs.fat.FatFileSystem.<init>(FatFileSystem.java:76)
 at de.waldheinz.fs.fat.FatFileSystem.<init>(FatFileSystem.java:52)
 at de.waldheinz.fs.fat.FatFileSystem.read(FatFileSystem.java:123)
 at net.alphadev.usbstorage.filesystems.FatStorage.<init>(FatStorage.java:36)
 at net.alphadev.usbstorage.StorageManager.mountAsFatFS(StorageManager.java:59)
 at net.alphadev.usbstorage.StorageManager.tryMountPartition(StorageManager.java:49)
 at net.alphadev.usbstorage.StorageManager.tryMount(StorageManager.java:39)
 at net.alphadev.usbstorage.DeviceManager.tryMount(DeviceManager.java:77)
 at net.alphadev.usbstorage.DeviceManager.access$000(DeviceManager.java:30)
 at net.alphadev.usbstorage.DeviceManager$1.onReceive(DeviceManager.java:48)
 at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:759)
 at android.os.Handler.handleCallback(Handler.java:733)
 at android.os.Handler.dispatchMessage(Handler.java:95)
 at android.os.Looper.loop(Looper.java:136)
 at android.app.ActivityThread.main(ActivityThread.java:5003)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)

task: split up large reads into smaller chunks.

@janseeger janseeger added this to the Version 1.4 (Provider) milestone Nov 27, 2014
janseeger added a commit that referenced this issue Nov 27, 2014
janseeger added a commit that referenced this issue Dec 15, 2014
Features added:

 * Conceive file mapping schema (#21)
 * Directory Listing (#22 #23)
 * Mount Notification (#26)
 * Unmounting logic (#44)
 * File Reading (#48)
 * MIME detection (#49)

Bugs fixed:

 * USB Drive would not show up in SAF (#24)
 * All zero return value (#38)
 * Date was falsely shown as 1st Jan 1970 (#47)
 * Crash when browsing Sub-Dir (#61)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant