MarFS provides a scalable near-POSIX file system by using one or more POSIX file systems as a scalable metadata component and one or more data stores (object, file, etc) as a scalable data component.
Other
96
stars
27
forks
source link
marfs_readdir() shouldn't call expand_path_info(), or check_perms() #104
It looks like the "path" given to readdir() will always be the same (i.e. the path to the directory). If so, then it is a waste to expand_path_info() and check access perms on every call.
It looks like the "path" given to readdir() will always be the same (i.e. the path to the directory). If so, then it is a waste to expand_path_info() and check access perms on every call.
This should be done once-only in marfs_opendir().