whoozle / android-file-transfer-linux

Android File Transfer for Linux (and macOS!)
http://whoozle.github.io/android-file-transfer-linux/
GNU Lesser General Public License v2.1
1.47k stars 122 forks source link

> FreeBSD 12.0-CURRENT amd64 (host) with Android 6.0.1 RR 5.7.3 armv7l (device) here. Android File Transfer's FUSE helper appears to have broken write support. OTOH, simple-mtpfs works fine. Any clues? #343

Open ratchanonsuttawas opened 4 hours ago

ratchanonsuttawas commented 4 hours ago
          > FreeBSD 12.0-CURRENT amd64 (host) with Android 6.0.1 RR 5.7.3 armv7l (device) here. Android File Transfer's FUSE helper appears to have broken write support. OTOH, simple-mtpfs works fine. Any clues?
$ aft-mtp-mount -o allow_other /mnt

$ ls /mnt/SD\ card/Movies
Foo.mp4
Bar.mp4

$ hd /mnt/SD\ card/Movies/Foo.mp4 | head -1
00000000  00 00 00 20 66 74 79 70  69 73 6f 6d 00 00 02 00  |... ftypisom....|

$ cp Qux.mp4 /mnt/SD\ card/Movies
cp: /mnt/SD card/Movies/Qux.mp4: Function not implemented

$ cp Qux.mp4 /mnt/SD\ card/Movies
cp: /mnt/SD card/Movies/Qux.mp4: Invalid argument

or if mounted with -o debug

unique: 73, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 1844
   Lookup 1009995 Qux.mp4
   unique: 73, error: -2 (No such file or directory), outsize: 16
unique: 74, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 1844
   Lookup 1009995 Qux.mp4
   unique: 74, error: -2 (No such file or directory), outsize: 16
unique: 75, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 1844
   Lookup 1009995 Qux.mp4
   unique: 75, error: -2 (No such file or directory), outsize: 16
unique: 76, opcode: CREATE (35), nodeid: 1009995, insize: 54, pid: 1844
   unique: 76, error: -78 (Function not implemented), outsize: 16

unique: 77, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 3550
   Lookup 1009995 Qux.mp4
   unique: 77, error: -2 (No such file or directory), outsize: 16
unique: 78, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 3550
   Lookup 1009995 Qux.mp4
   unique: 78, error: -2 (No such file or directory), outsize: 16
unique: 79, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 3550
   Lookup 1009995 Qux.mp4
   unique: 79, error: -2 (No such file or directory), outsize: 16

Originally posted by @ratchanonsuttawas in https://github.com/whoozle/android-file-transfer-linux/issues/137#issuecomment-2439975845

ratchanonsuttawas commented 4 hours ago
          > FreeBSD 12.0-CURRENT amd64 (host) with Android 6.0.1 RR 5.7.3 armv7l (device) here. Android File Transfer's FUSE helper appears to have broken write support. OTOH, simple-mtpfs works fine. Any clues?
$ aft-mtp-mount -o allow_other /mnt

$ ls /mnt/SD\ card/Movies
Foo.mp4
Bar.mp4

$ hd /mnt/SD\ card/Movies/Foo.mp4 | head -1
00000000  00 00 00 20 66 74 79 70  69 73 6f 6d 00 00 02 00  |... ftypisom....|

$ cp Qux.mp4 /mnt/SD\ card/Movies
cp: /mnt/SD card/Movies/Qux.mp4: Function not implemented

$ cp Qux.mp4 /mnt/SD\ card/Movies
cp: /mnt/SD card/Movies/Qux.mp4: Invalid argument

หรือหากติดด้วย-o debug

unique: 73, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 1844
   Lookup 1009995 Qux.mp4
   unique: 73, error: -2 (No such file or directory), outsize: 16
unique: 74, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 1844
   Lookup 1009995 Qux.mp4
   unique: 74, error: -2 (No such file or directory), outsize: 16
unique: 75, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 1844
   Lookup 1009995 Qux.mp4
   unique: 75, error: -2 (No such file or directory), outsize: 16
unique: 76, opcode: CREATE (35), nodeid: 1009995, insize: 54, pid: 1844
   unique: 76, error: -78 (Function not implemented), outsize: 16

unique: 77, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 3550
   Lookup 1009995 Qux.mp4
   unique: 77, error: -2 (No such file or directory), outsize: 16
unique: 78, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 3550
   Lookup 1009995 Qux.mp4
   unique: 78, error: -2 (No such file or directory), outsize: 16
unique: 79, opcode: LOOKUP (1), nodeid: 1009995, insize: 46, pid: 3550
   Lookup 1009995 Qux.mp4
   unique: 79, error: -2 (No such file or directory), outsize: 16

โพสต์ดั้งเดิมโดย@ratchanonsuttawasใน#137 (ความคิดเห็น)