isieo / adbFS

A Proof of concept fuse filesystem for android debugger
Other
123 stars 99 forks source link

Input/output error #23

Open knezi opened 7 years ago

knezi commented 7 years ago

Hi, I'm running Lineage OS 7.1.1 and I'm getting this error:

ls: reading directory 'point/': Input/output error

I guess the problem is in on of the methods open/read/releasedir. I've tried to debug it and in the queue in method readdir there are stored all directories of root. Furthermore, fuse says all methods were successful:

[knezi@holly adbFS]$ ./adbfs point/ -d
--*-- exec_command: rm -rf /tmp/adbfs
FUSE library version: 2.9.7
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.26
flags=0x001ffffb
max_readahead=0x00020000
   INIT: 7.19
   flags=0x00000011
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 1, success, outsize: 40
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 27938
getattr /
stat -t "/"
--*-- exec_command: adb shell busybox stat -t "/"
   unique: 2, success, outsize: 120
unique: 3, opcode: GETXATTR (22), nodeid: 1, insize: 72, pid: 27938
   unique: 3, error: -38 (Function not implemented), outsize: 16
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 27957
getattr /
stat -t "/"
--*-- exec_command: adb shell busybox stat -t "/"
   unique: 4, success, outsize: 120
unique: 5, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 27957
   unique: 5, success, outsize: 32
unique: 6, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 27957
readdir[0] from 0
--*-- exec_command: adb shell busybox ls -1a --color\=none "/"
   unique: 6, success, outsize: 1520
unique: 7, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 7, success, outsize: 16

I've tried it both adb with root/non-root access. If you need more debugging, tell me what. I'll try to look at it once more later if I figure something out.

And I want to ask if it is really necessary to use busybox? All needed commands are present on my phone. If so, please state it to the dependencies - it took me quite a while to find out.

rzr commented 6 years ago

It looks like this projects is orphaned, this PR was not reviewed in a year: https://github.com/isieo/adbFS/pull/22

knezi commented 6 years ago

That's a pity. This is a great project. I'd love to fork it and try to maintain it, but I can't even fix this problem. Are you knowledgeable enough for maintaining it? I will try to help as much as I can. Have you got any ideas how to fix this?