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

Can Starlight pull dynamic libraries as needed? #73

Open
PerseidMeteor opened this issue Apr 23, 2024 · 2 comments
Open

Can Starlight pull dynamic libraries as needed? #73

PerseidMeteor opened this issue Apr 23, 2024 · 2 comments

Comments

@PerseidMeteor
Copy link

Describe your question here

Assuming such a situation, program A needs to use a libhello.so, but libhello.so is in the remote registry and does not exist in the container, can Starlight pull this libhello.so?

As far as I know, it seems that the dynamic linker does not go through the FUSE file system.

@mc256
Copy link
Owner

mc256 commented May 4, 2024

Hi @PerseidMeteor , Starlight is not lazy pulling, all the files that does not exist in the local filesystem WILL be eventually pulled from the registry to the local filesystem. So a simple answer to this question is yes.

@mc256
Copy link
Owner

mc256 commented May 5, 2024

it seems that the dynamic linker does not go through the FUSE file system.
I think this is not true.

It depends on how you implement the FUSE API, you can see our implementation here:
https://github.com/mc256/starlight/blob/master/client/fs/fs.go#L169-L210

Other docs that you could perhaps refer to:
https://www.cs.hmc.edu/~geoff/classes/hmc.cs137.201601/homework/fuse/fuse_doc.html

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

No branches or pull requests

2 participants