-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat(probe): add mount change detection to mount probe #595
Conversation
Codecov Report
@@ Coverage Diff @@
## master #595 +/- ##
==========================================
- Coverage 48.71% 48.44% -0.28%
==========================================
Files 73 79 +6
Lines 3377 3720 +343
==========================================
+ Hits 1645 1802 +157
- Misses 1576 1758 +182
- Partials 156 160 +4
Continue to review full report at Codecov.
|
|
||
if isAllBlockDevices(msg.Devices) { | ||
for _, bd := range pe.Controller.BDHierarchy { | ||
err = pe.updateBlockDevice(&bd) |
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.
G601: Implicit memory aliasing in for loop.
(at-me in a reply with help
or ignore
)
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.
ignore
a4c6a56
to
0583c80
Compare
|
||
func (e *Epoll) Close() { | ||
e.Stop() | ||
syscall.Close(e.epfd) |
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.
G104: Errors unhandled.
(at-me in a reply with help
or ignore
)
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.
@z0marlin Provided some initial comments on the PR
@z0marlin Can you make this available via a feature gate, so epoll related code is not executed in normal workflow. |
de8fc09
to
608d7a0
Compare
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
- add nil pointer checks - update mount file format constant names - return appropriate errors in `MounTab.AddFilesystem()` - handle err returned by options in `NewMountTab()` - remove unused fields in `Filesystem` Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
- add additional filters to filter out unnecessary changes in mount tab diff - don't clear `FileSystem` when updating an unmounted blockdevices Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
rename functions in mount-change-tests to avoid confusion and conflicts with existing functions in the package Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
- add changelog - update ndm yaml with the new feature gate ("MountChangeDetection") Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
remove FIXME since openebs-archive#602 was merged Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
This pull request introduces 1 alert when merging 596f40b into e9ce0d7 - view on LGTM.com new alerts:
|
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.
LGTM.
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
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.
LGTM
This pull request introduces 1 alert when merging e2cf87a into e9ce0d7 - view on LGTM.com new alerts:
|
Detect mount point and filesystem changes.
The corresponding design document for this PR can be found in #594
Signed-off-by: Aditya Jain aditya.jainadityajain.jain@gmail.com
Checklist:
<type>(<scope>): <subject>