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

Main rfs #2079

Merged
merged 5 commits into from
Oct 19, 2023
Merged

Main rfs #2079

merged 5 commits into from
Oct 19, 2023

Conversation

rawdaGastan
Copy link
Contributor

@@ -12,6 +12,7 @@ import (
)

const (
fsTypeRfs = "fuse.rfs"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not correct, this require a change to rfs actually because it still identity itself as g8ufs (that's something that is hard coded in the code) of course we can change that in rfs itself but I don't see why would we do that right now.

the idea was to be able to tell rfs from overlay so as long as we can do that it's fine. so in other words there should be no difference in reading the rfs from g8ufs since they both use the pid as source mount

@@ -116,7 +117,7 @@ func (f *flistModule) resolve(path string) (g8ufsInfo, error) {
return g8ufsInfo{}, err
}

if info.FSType == fsTypeG8ufs {
if info.FSType == fsTypeG8ufs || info.FSType == fsTypeRfs {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this means this is not deeded since both are defined as fuse.g8ufs

@muhamadazmy
Copy link
Member

For testing the idea is that if u use zdb as a store the IP used while creating the flist must be reachable from ZOS. so if u are running zdb locally make sure:

  • zdb is listening on all IPs.
  • while creating the flist, u have to use the ip of the machine not localhost or 127.0.0.1

sublog.Info().Strs("args", args).Msg("starting rfs daemon")
args = append([]string{"mount"}, append(args, mountpoint)...)
cmd = f.commander.Command("rfs", args...)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add an else case here so we return an error if the url extension is unknown

@muhamadazmy muhamadazmy merged commit 5745b54 into main Oct 19, 2023
2 checks passed
@muhamadazmy muhamadazmy deleted the main_rfs branch October 19, 2023 08:24
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