-
Notifications
You must be signed in to change notification settings - Fork 39
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
Find a way to reduce # of fnodes when mounting filesystems #74
Comments
WARNING! Doesn't play nice with commands like 'ls' because fnode loading happens when fno_search() is called and readdir_r() bypass such call.
@danielinux @brabo what do you think? the problem here is obvious... any feedback on how to get around this? what does readdir_r() call behind the curtain? |
and opendir does call fno_search, so before readdir the loading has happened unless I am missing something. |
opendir() just does fno_search on the directory file, it doesn't look for the files inside the directory, that's why it doesn't work just like this. |
if lookup is called with a directory it would populate that on FS level. i am not sure i see any problem. |
WARNING! Doesn't play nice with commands like 'ls' because fnode loading happens when fno_search() is called and readdir_r() bypass such call. WIP
When a filesystem is mounted, frosted scans the whol content and creates fnodes accordingly.
Perhaps the fnodes should only be allocated during lookup (fno_search), or when opendir/readdir is called, in order to decrease the number of active fnodes, and the memory required.
The text was updated successfully, but these errors were encountered: