-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
refactor: implement volume mount controller #10062
Conversation
cf9f600
to
0e5b013
Compare
926253e
to
ec65b58
Compare
This PR implements only the first part of the volume mount flow, but I would like to split up things a bit to make it easier to get other changes in. The image cache config controller never did proper unmount of the volumes, so the same state here for now - we don't actually unmount anything, but simply using new controller to mount image cache volumes. The follow-up PR is planned to support first mounting STATE & EPHEMERAL, and that will include proper refactoring of the volume subsystem to support full unmount flow. |
ec65b58
to
e530e41
Compare
c93c481
to
312556d
Compare
|
||
// RemountReadWrite remounts the mount point as read-write. | ||
func (p *Point) RemountReadWrite() error { | ||
p.flags &^= unix.MS_RDONLY |
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.
Is this equivalent to &= ~unix.MS_RDONLY
?
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.
I think that should be exactly it.
312556d
to
060059a
Compare
Fixes siderolabs#9602 Aggregate incoming volume mount requests, reconcile them with volume status, perform actual mounting, and produce mount status. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
060059a
to
5dbf9e3
Compare
/m |
Fixes #9602
Aggregate incoming volume mount requests, reconcile them with volume status, perform actual mounting, and produce mount status.