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

Fix automount for root filesystems #9384

Merged
merged 1 commit into from
Oct 4, 2019
Merged

Conversation

behlendorf
Copy link
Contributor

Motivation and Context

Issue #9381

Description

Commit 093bb64 resolved an automount failures for chroot'd processes
but inadvertently broke automounting for root filesystems where the
vfs_mntpoint is NULL. Resolve the issue by checking for NULL in order
to generate the correct path.

How Has This Been Tested?

Manually tested by @janlam7 in issue #9381.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

Commit 093bb64 resolved an automount failures for chroot'd processes
but inadvertently broke automounting for root filesystems where the
vfs_mntpoint is NULL.  Resolve the issue by checking for NULL in order
to generate the correct path.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#9381
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Sep 30, 2019
@codecov
Copy link

codecov bot commented Oct 1, 2019

Codecov Report

Merging #9384 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9384      +/-   ##
==========================================
- Coverage   79.07%   79.06%   -0.01%     
==========================================
  Files         404      404              
  Lines      122539   122540       +1     
==========================================
  Hits        96892    96892              
- Misses      25647    25648       +1
Flag Coverage Δ
#kernel 79.77% <100%> (ø) ⬆️
#user 66.77% <ø> (+0.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3283f13...d5a4951. Read the comment docs.

@tcaputi
Copy link
Contributor

tcaputi commented Oct 4, 2019

LGTM

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Oct 4, 2019
@behlendorf behlendorf merged commit 6bd4f45 into openzfs:master Oct 4, 2019
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Dec 26, 2019
Commit 093bb64 resolved an automount failures for chroot'd processes
but inadvertently broke automounting for root filesystems where the
vfs_mntpoint is NULL.  Resolve the issue by checking for NULL in order
to generate the correct path.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#9381
Closes openzfs#9384
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Dec 27, 2019
Commit 093bb64 resolved an automount failures for chroot'd processes
but inadvertently broke automounting for root filesystems where the
vfs_mntpoint is NULL.  Resolve the issue by checking for NULL in order
to generate the correct path.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#9381
Closes openzfs#9384
tonyhutter pushed a commit that referenced this pull request Jan 23, 2020
Commit 093bb64 resolved an automount failures for chroot'd processes
but inadvertently broke automounting for root filesystems where the
vfs_mntpoint is NULL.  Resolve the issue by checking for NULL in order
to generate the correct path.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9381
Closes #9384
@behlendorf behlendorf deleted the issue-9381 branch April 19, 2021 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants