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

docs: add mount change detection design #594

Merged
merged 3 commits into from
Jul 14, 2021

Conversation

z0marlin
Copy link
Contributor

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests


## Design

The mount-points and filesystem info of a block device are found by the probe - *mountprobe*.
Copy link
Contributor

Choose a reason for hiding this comment

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

I checked the findmnt manual page and it says it looks for mount points in /etc/fstab , /etc/mtab and /proc/self/mountinfo . Just wondering if there's a reason NDM should look at fstab or mtab too.

Copy link
Contributor Author

@z0marlin z0marlin Jun 6, 2021

Choose a reason for hiding this comment

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

Not sure if we should be watching fstab/mtab. I took a look at findmnt though. It provides an option to watch for changes (-p). To implement this, it also uses the linux polling api and by default watches for changes in /proc/self/mountinfo.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, that's good validation. We can add watching fstab/mtab if the need ever arises I suppose. Right now, don't see a reason we need it

@akhilerm akhilerm added this to Pre-commits and Designs - Due: May 31 2021 in 2.10 Release Tracker - Due June 15th. Jun 1, 2021
@z0marlin z0marlin changed the title [WIP] docs: add mount change detection design docs: add mount change detection design Jun 1, 2021
Copy link
Contributor

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

Provide a note in the design:
filesystem changes can be detected only once the device is mounted. If just format a filesystem on the device and does not mount it, it wont be updated.

@z0marlin Have one comment on using the existing mountprobe itself. everything else looks good. Can proceed with implementation

@nsathyaseelan nsathyaseelan moved this from Pre-commits and Designs - Due: May 31 2021 to RC2 - Due: Jun 8 2021 in 2.10 Release Tracker - Due June 15th. Jun 4, 2021
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
RealHarshThakur
RealHarshThakur previously approved these changes Jun 6, 2021
akhilerm
akhilerm previously approved these changes Jun 7, 2021
Copy link
Contributor

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

LGTM

@kmova kmova added the pr/hold-merge The PR should not be merged now label Jun 9, 2021
@kmova kmova moved this from RC2 - Due: Jun 8 2021 to Pushed to Next release due to WIP in 2.10 Release Tracker - Due June 15th. Jun 9, 2021
@kmova kmova added this to Pre-commits and Designs - Due: May 31 2021 in 2.11 Release Tracker - Due July 15th. Jun 17, 2021
@prateekpandey14 prateekpandey14 moved this from Pre-commits and Designs - Due: June 30 2021 to RC1 - Due: Jul 3 2021 in 2.11 Release Tracker - Due July 15th. Jul 6, 2021
@prateekpandey14 prateekpandey14 moved this from RC1 - Due: Jul 3 2021 to RC2 - Due: Jul 8 2021 in 2.11 Release Tracker - Due July 15th. Jul 8, 2021
@prateekpandey14 prateekpandey14 moved this from RC2 - Due: Jul 8 2021 to RC1 - Due: Jul 3 2021 in 2.11 Release Tracker - Due July 15th. Jul 8, 2021
@prateekpandey14 prateekpandey14 moved this from RC1 - Due: Jul 3 2021 to RC2 - Due: Jul 8 2021 in 2.11 Release Tracker - Due July 15th. Jul 8, 2021
@z0marlin z0marlin dismissed stale reviews from akhilerm and RealHarshThakur via 20a48e1 July 9, 2021 14:39
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>
akhilerm
akhilerm previously approved these changes Jul 11, 2021
Copy link
Contributor

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

LGTM.

@z0marlin Please fix the typo.

@akhilerm akhilerm removed the pr/hold-merge The PR should not be merged now label Jul 11, 2021
@prateekpandey14 prateekpandey14 moved this from RC2 - Due: Jul 8 2021 to Release Items in 2.11 Release Tracker - Due July 15th. Jul 12, 2021
Signed-off-by: Aditya Jain <aditya.jainadityajain.jain@gmail.com>

Co-authored-by: Akhil Mohan <akhilerm@gmail.com>
@z0marlin z0marlin dismissed stale reviews from akhilerm and RealHarshThakur via cec7580 July 14, 2021 09:19
@akhilerm akhilerm self-requested a review July 14, 2021 09:29
Copy link
Contributor

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

LGTM

@akhilerm akhilerm merged commit 1626320 into openebs-archive:master Jul 14, 2021
2.11 Release Tracker - Due July 15th. automation moved this from Release Items to Done Jul 14, 2021
@z0marlin z0marlin deleted the mountch-docs branch October 12, 2021 05:17
@Abhinandan-Purkait Abhinandan-Purkait removed this from Pushed to Next release due to WIP in 2.10 Release Tracker - Due June 15th. Apr 29, 2024
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.

None yet

4 participants