-
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
add / update fstab entry with --update-fstab #2462
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2462 +/- ##
==========================================
- Coverage 61.52% 59.73% -1.79%
==========================================
Files 138 138
Lines 25698 23333 -2365
==========================================
- Hits 15810 13938 -1872
+ Misses 8030 7583 -447
+ Partials 1858 1812 -46
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
c03399c
to
7c03731
Compare
Could you also update the docs (command ref and how to mount on boot) |
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.
this should not fail the mount
I usually submit docs update after functionality has been confirmed, I'll work on them now. |
8ac9133
to
7eaaa20
Compare
I wish to resolve #2504 first, and work on docs for this feature later on, in a separate PR. |
7d11d4d
to
86cf44d
Compare
e6cebb0
to
6f0525a
Compare
failed tests passed without any code change, if things go poorly in the future, remember that current state is able to PASS. working on docs now, no code change will be introduced. |
6f0525a
to
e6cebb0
Compare
code change has been introduced since review, take another look at the follow-up commits? @davies |
docs/zh_cn/tutorials/qcloud.md
Outdated
|
||
```shell | ||
sudo cp juice/juicefs /sbin/mount.juicefs | ||
可以用 `juiefs mount --update-fstab` 直接设置出自动挂载,例如: |
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.
This will be available in 1.1 release, but user still read the latest docs, so we should add docs for new feature without replacing the old ways.
For these tutorials, we don't need to change them (keep them simple).
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.
the old ways are preserved in guide/mount_at_boot.md, I can add minimum version requirements here (and remove after 1.1 has been widely adopted), would this suffice?
I think putting "the old way" here might just be too much content, after all, there's a dedicated chapter on this topic.
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.
For these tutorials, we don't need to change them (keep them simple).
--update-fstab
is the simplest way to approach auto-mount, shouldn't we recommend its usage in all tutorials? if version inconsistency is the main issue here, can I postpone this docs update until after 1.1 release?
docs/en/guide/mount_at_boot.md
Outdated
|
||
## Linux | ||
|
||
Copy `juicefs` as `/sbin/mount.juicefs`, then edit `/etc/fstab` with following line: | ||
Using `--update-fstab` flag with the mount command should automatically set things up for you: |
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.
This requires 1.1+
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.
Since 1.1 is not released, we should put this new feature at the end of this section.
can I create a separate PR for docs update? review suggestions so far are all concerning release planning & version inconsistency, which won't be an issue if we update docs only after 1.1 release, am I correct? @davies |
If you prefer to have another PR, please revert the changes in docs, and we can merge the feature first. |
758b57c
to
97f35f2
Compare
97f35f2
to
f77b909
Compare
docs part has been moved to #2554 |
juicefs mount
yetPR code will produce the following result:
permission denied behavior:
closes #2432