-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Improve FileSystem detection #1663
Comments
See also kiwix/libkiwix#267 |
@macgills How would that work exactly? |
like this but a bit more complicated. |
@macgills So the mount command gives you the list of mounted devices and for each devices the type of the filesystem and you will the be able to know which one are fat32. Questions:
|
When I implemented an experiment it didn't give me an immediately easy answer say for example we have mount output like so
when I iterated through the list the entry I matched on for the directory I was looking for |
@macgills I'm not super confident on relying on a system command execution, but if we rely on a Linux Kernel |
It'll take experimentation to figure out which is most reliable, mount probably just reads |
And to clarify I will be keeping the old implementation, just trying this one first and on failure falling back. Commonsware back in 2014 was warning of these apis when android introduced support for sd cards |
@macgills OK, seems worth the effort. |
Logs extracted on Nexus 8.
Output of
Output of
output of mount command
All 3 outputs are much the same
It gives us a useless value for the filesystem
which gives us the useful value of ext4 which is a real filesystem and does support 4gb files. I'll probably read from |
…moving visited entries - add vfat to <4GB filesystems
…detection #1663 Improve FileSystem detection - read from mount and fallback to …
Is your feature request related to a problem? Please describe.
Currently filesystem detection can take upwards of 1min and cause problems for users #1662 . This is because we write a file 4GB in size and see if it throws an exception or not.
Describe the solution you'd like
Use the mount command and do some string processing to extract the filesystem
Another ticket proposing a cache system #1664
The text was updated successfully, but these errors were encountered: