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

Avoid running exportfs on each zfs/zpool command invocation #952

Closed
wants to merge 1 commit into from

Conversation

imp
Copy link
Contributor

@imp imp commented Sep 10, 2012

Delay executing exportfs command until its results are actually
required.

@behlendorf
Copy link
Contributor

@gunnarbeutner Since you originally wrote this code can you comment on this patch.

@gunnarbeutner
Copy link
Contributor

The change itself makes perfect sense (and should fix some of the problems when running zfs/zpool as a non-root user) and the patch looks sane. I'm all for merging it into the master branch.

@behlendorf
Copy link
Contributor

The fundamental change looks good to me as well. Although, I think we'll want to rework a few bits here and there. I'll make comments inline.

Delay executing exportfs command until its results are actually
required.

Signed-off-by: Cyril Plisko <[email protected]>
@imp
Copy link
Contributor Author

imp commented Sep 11, 2012

I have reworked the commit a bit as requested. Although I've implemented nfs_available() function a little bit differently. I hope it is somewhat more clear that way that nfs_export_temp_fd value is focal point for nfs availability decision.

@behlendorf
Copy link
Contributor

Thank you, this is much better. I'll get it merged.

@behlendorf
Copy link
Contributor

Merged as commit 27ccd41

@behlendorf behlendorf closed this Sep 11, 2012
gunnarbeutner pushed a commit to gunnarbeutner/zfs that referenced this pull request Oct 30, 2012
… iostat' output

Reviewed by: Adam Leventhal <[email protected]>
Reviewed by: Matt Ahrens <[email protected]>
Reviewed by: Eric Schrock <[email protected]>
Reviewed by: Dan McDonald <[email protected]>
Reviewed by: Garrett D'Amore <[email protected]>
Approved by: Eric Schrock <[email protected]>

Refererce to Illumos issue:
  https://www.illumos.org/issues/952

Ported-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#607
pcd1193182 pushed a commit to pcd1193182/zfs that referenced this pull request Sep 26, 2023
…s#952)

Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.10.5 to 0.11.0.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](rust-itertools/itertools@v0.10.5...v0.11.0)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

3 participants