-
Notifications
You must be signed in to change notification settings - Fork 55
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
Can't see all files or folders #125
Comments
Which version of uMTPrd are you using ? |
This has been a long standing issue that I've received multiple complaints about, with multiple versions. Most recently, I tested this with commit 7d7d099 and just now I pulled the latest commits from the repo and tried with the latest version, and the same thing happens. So in the example above, the Here's a debug log with the newest version of umtprd: |
This might be an access right issue. Can try to do a "stat .cache" from the same folder ? Which "user" run the umtp daemon ? Also please have a look to the configuration file:
|
Can you try to disable the inotify support in the config file ?
( uncomment the "no_inotify" line) |
I have already tried it both with inotify on and off, and it is currently off in both of those logs. As for the symlink, it is valid, but it doesn't matter if the file is a symlink or not. The .cache folder for instance isn't a link, and neither is the .fonts.conf file. I have already setup the config with the correct UIDs:
As for
And folders which can be seen over MTP such as Documents:
And there's also no difference between files as well. .fonts.conf which can't be seen over MTP:
And .bashrc which can be seen:
|
The fact that some files are not seen, doesn't mean that they are the problem, this just mean that the folder listing loop was stopped by something else before the end : The waning message come from fs_entry_stat. And it stop the file listing process with fs_find_first_file/fs_find_next_file functions. A new check need to be added in the code : if the error come from a link, just skip / ignore it - The target file/folder is probably not present or umtprd doesn't has enough rights to stat/read it. |
Hmm yeah I see what you mean. It's not a valid link, you're right, that's my bad. There's two symlinks with a similar name and I checked the other one accidentally earlier. |
Thank you for confirming my hypothesis :) . Don't remove the link yet, i will fix the code to manage this kind of error. |
@dafta Please get the latest main branch and let me know if the issue is fixed for you. |
It seems to be fixed for me. I'll be sure to tell my users to try again and see if it's fixed completely. |
uMTPrd doesn't detect all files and folders. I'm attaching two files, one is a
ls -la
output of the home folder, and the other is uMTPrd's debug log.file-list.txt
umtprd.log
I'm using FunctionFS, and I tried with and without inotify support.
The text was updated successfully, but these errors were encountered: