phatina/simple-mtpfs

"get partial object" doesn't work

kolAflash opened this issue · 2 comments

Looks like "get partial object" isn't working. Even if simple-mtpfs is detecting that capability.


System: openSUSE 42.2

Tested simple-mtpfs versions (same results):

  • 0.2 - by openSUSE 42.2
  • 0.3 - Compiled by me, including also self compiled libmtp-1.1.13. Both (simple-mtpfs and libmtp) compiled with the following (is that enough/correct!?): CFLAGS=-DHAVE_LIBMTP_CHECK_CAPABILITY=1 CPPLAGS=-DHAVE_LIBMTP_CHECK_CAPABILITY=1 CXXFAGS=-DHAVE_LIBMTP_CHECK_CAPABILITY=1 ./configure

MTP-Device: Samsung galaxy S4 Mini (i9195), running Android 7.1.1 (LineageOS 14.1).

$ simple-mtpfs --list-devices --verbose
1: SamsungGalaxy models (MTP)
  - can get  partial object: yes
  - can send partial object: yes
  - can edit objects       : yes

Reading 1KB at position 100MB (100.000.000 bytes).

# simple-mtpfs mount:
$ time hexdump -s 100000000 -n 1024 bigfile
-> 23 seconds

# gvfs mount:
$ time hexdump -s 100000000 -n 1024 bigfile
-> 0.3 seconds

Yeah, I know. I need to implement some missing bits. This thing is WIP for now...

Just in case that you are still interested into this feature, I just issued a pull request for that.