-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Detect FileSystem from File #267
Comments
I don't think that this should be in kiwix-lib. This is not really related to zim file/reading. It is not because that a thing takes time in java word that we have to push it in kiwix-lib. More over, as it is said on the link you gave, |
@mgautierfr Considering that this is a function which is really necessary for Kiwix Android but not only (we should have the same check on Kiwix Desktop for example), I'm really in favour to have this primitive in the Kiwix lib. The Kiwix lib is not only about zim file/reading, this is about sharing code base between multiple ports. What kind of concrete alternative you propose here as the problem we face is quite serious and needs to be tacle rather soon than later? |
I don't know for now :) |
There was the option of using the mount command but on implementation I found it to be deeply unreliable |
We could directly read the Why do you found it unreliable ? (I haven't read the whole algorithm you link, but we don't have to blindly copy it) |
I found what it was reporting inconsistent (file system info missing/in wrong place) if I remember correctly, it has been a good few months but I remember my distaste and abandoning it to pursue the 4GB files solution. |
@macgills @mgautierfr We should carry on this before 3.0 release. It is simpy not acceptable to have users waiting for one minute to know if a fs can support file over 4GB. I see a massive problem on 2.5.x from people simply not able to get the online catalog and I think this is part of the problem. |
It is not a universal problem. Only some devices are affected but I do not know the prevalence. |
@macgills Thank you for the update. This makes the whole topic a bit less urgent, but considering that @mgautierfr won't be available for a few months. I'm concerned if we can live with this until next year. In general, even if 2.5.3 has improved a lot the stability, the overall rating are not better and I try to understand why so many people complain about missing catalogue. Any other theory is welcome... but so far, this ticket is the only one I know about. |
That is a potential reason for the library taking a long time to load and will be resolved for 3.0. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
Hmm.. not really, because the problem is not only with Android, it is everywhere.We have still not good solution for other ports. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
In the android app we currently detect the filesystem of the users chosen storage device by writing a 4GB file to it and if it throws an exception deciding that it is FAT32.
This is achieved using
RandomAccessFile.setLength()
which is currently giving terrible performance when used on an sd card ,1 minute vs the usual 1ms on internal storage.setLength
should be using the most optimised C calls based on the OS it is running on but it seems like it is not in this scenario.An optimised call in kiwix-lib should hopefully alleviate this scenario.
The text was updated successfully, but these errors were encountered: