-
Notifications
You must be signed in to change notification settings - Fork 997
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
Conversation
Codecov ReportAttention: Patch coverage is
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. |
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" |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
mount.juicefs
support graceful upgrade
Finish with another pr #4487 |
mount.juicefs
mount.juicefs
is a symlink eg:ln -s /usr/local/bin/juicefs /sbin/mount.juicefs