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

Mtab reads #1498

Closed
wants to merge 3 commits into from
Closed

Mtab reads #1498

wants to merge 3 commits into from

Conversation

FransUrbo
Copy link
Contributor

I was hoping to find out a nice way to fix #1484, but I only got this far.

FransUrbo added 3 commits June 4, 2013 04:09
reading the file, but instead uses libzfs_mnttab_find() which does
any nessesary rewind() for us.
@behlendorf
Copy link
Contributor

@FransUrbo Where do these patches stand? It would be great if they could be refreshed with a clear explanation for why each one is needed and what the patch fixes.

@FransUrbo
Copy link
Contributor Author

The point was to improve mount speed (see #1484), but they really didn't help that much (cut a few minutes from several hours). So these three just fixes some obvious problems, which is explained quite clearly in the commit message. I'd call these a cleanup and removing some obvious double work on mtab.

behlendorf pushed a commit that referenced this pull request Aug 15, 2013
For the same reasons it's used in libzfs_init(), this was just
overlooked because zinject gets minimal use.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1498
behlendorf pushed a commit that referenced this pull request Aug 15, 2013
reading the file, but instead use libzfs_mnttab_find() which does
the nessesary freopen() for us.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1498
behlendorf pushed a commit that referenced this pull request Aug 15, 2013
a few lines further down and we can share the open file handle.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1498
@behlendorf
Copy link
Contributor

Merged

@behlendorf behlendorf closed this Aug 15, 2013
unya pushed a commit to unya/zfs that referenced this pull request Dec 13, 2013
For the same reasons it's used in libzfs_init(), this was just
overlooked because zinject gets minimal use.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#1498
unya pushed a commit to unya/zfs that referenced this pull request Dec 13, 2013
reading the file, but instead use libzfs_mnttab_find() which does
the nessesary freopen() for us.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#1498
unya pushed a commit to unya/zfs that referenced this pull request Dec 13, 2013
a few lines further down and we can share the open file handle.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#1498
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.

Mounting file system takes forever when there's a lot of file systems
2 participants