-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Mtab reads #1498
Conversation
a few lines further down.
reading the file, but instead uses libzfs_mnttab_find() which does any nessesary rewind() for us.
@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. |
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. |
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
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
a few lines further down and we can share the open file handle. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1498
Merged |
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
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
a few lines further down and we can share the open file handle. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#1498
I was hoping to find out a nice way to fix #1484, but I only got this far.