Skip to content
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

sys_fs: Integrated the function of get_vfs() into get_mp() to avoid unnecessary iteration #13030

Merged
merged 2 commits into from
Dec 8, 2022

Conversation

brian218
Copy link
Contributor

@brian218 brian218 commented Dec 8, 2022

Given that get_vfs(), which calls get_mp() inside to determine the mount point, is usually called along with get_mp(), I integrated the function of get_vfs() into get_mp() so as to avoid unnecessary iteration.
get_mp("/device_path") still works as usual, and in case you need the associated vfs path as well, simply pass a pointer to a string to it like get_mp("/device_path", &a_string).

@Megamouse
Copy link
Contributor

Just pass mp as argument to get_vfs and you can drop most of your changes

@brian218
Copy link
Contributor Author

brian218 commented Dec 8, 2022

Just pass mp as argument to get_vfs and you can drop most of your changes

But the mp of g_mp_sys_dev_usb doesn't discriminate dev_usbXXX.
I think we still need the original device path in this case.

@Megamouse Megamouse merged commit 6d43790 into RPCS3:master Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants