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

NAS-132988 / 24.10.2 / Do not retrieve hidden zpool properties (by usaleem-ix) #296

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

bugclerk
Copy link

zprop_iter provides an interface to iterate over all available zpool properties. To iterate over hidden zpool properties, show_all parameter should be set to true.

Recently, dedupcached property was added as part of fast dedup support in ZFS. This property is quite expensive since it needs to calculate the total size of dedup table loaded into the ARC.

This commit updates the show_all parameter passed to zprop_iter, and sets it to False, since we don't want to retrieve the dedupcached property. All other hidden zpool properties will not be retrieved either as part of zprop_iter. These properties include name, tname, maxblocksize, maxdnodesize, dedupditto and dedupcached.

Original PR: #293
Jira URL: https://ixsystems.atlassian.net/browse/NAS-132988

zprop_iter provides an interface to iterate over all available
zpool properties. To iterate over hidden zpool properties,
show_all parameter should be set to true.

Recently, dedupcached property was added as part of fast dedup
support in ZFS. This property is quite expensive since it needs
to calculate the total size of dedup table loaded into the ARC.

This commit updates the show_all parameter passed to zprop_iter,
and sets it to False, since we don't want to retrieve the
dedupcached property. All other hidden zpool properties will
not be retrieved either as part of zprop_iter. These properties
include name, tname, maxblocksize, maxdnodesize, dedupditto and
dedupcached.

Signed-off-by: Umer Saleem <[email protected]>
(cherry picked from commit 8c66fcc)
@yocalebo yocalebo merged commit 182b9f4 into release/24.10.2 Jan 14, 2025
1 check failed
@yocalebo yocalebo deleted the NAS-132988-24.10.2 branch January 14, 2025 13:27
@bugclerk
Copy link
Author

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants