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

mount.juicefs support graceful upgrade #4461

Closed
wants to merge 6 commits into from

Conversation

zhijian-pro
Copy link
Contributor

@zhijian-pro zhijian-pro commented Mar 7, 2024

  • supprot mount.juicefs
  • supprot mount.juicefs is a symlink eg: ln -s /usr/local/bin/juicefs /sbin/mount.juicefs

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 55.36%. Comparing base (eeac617) to head (6957588).
Report is 3 commits behind head on main.

Files Patch % Lines
cmd/main.go 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4461      +/-   ##
==========================================
- Coverage   55.37%   55.36%   -0.02%     
==========================================
  Files         157      157              
  Lines       41207    41224      +17     
==========================================
+ Hits        22819    22824       +5     
- Misses      15859    15873      +14     
+ Partials     2529     2527       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhijian-pro zhijian-pro marked this pull request as draft March 8, 2024 02:18
@zhijian-pro zhijian-pro marked this pull request as ready for review March 8, 2024 06:23
cmd/main.go Outdated
if errno, ok := err.(syscall.Errno); ok && errno == 0 {
err = nil
}
return err
}

func calledViaMount(args []string) bool {
return strings.HasSuffix(args[0], "/mount.juicefs")
return strings.HasSuffix(args[0], "/mount.juicefs") && args[1] != "mount"
Copy link
Contributor

Choose a reason for hiding this comment

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

What if the volume is called mount?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

handleSysMountArgs cannot handle correctly /mount.juicefs mount -d redis://127.0.0.1 /tmp/jfs
We previously thought that mount.juicefs should be used without the mount subcommand.

@zhijian-pro zhijian-pro changed the title hide passwords from parent process meta url mount.juicefs support graceful upgrade Mar 11, 2024
@zhijian-pro
Copy link
Contributor Author

Finish with another pr #4487

@zhijian-pro zhijian-pro deleted the fix-parent-process-password branch October 21, 2024 02:39
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