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) #295

Closed
wants to merge 1 commit into from

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 closed this Jan 13, 2025
@yocalebo yocalebo deleted the NAS-132988-24.10.2 branch January 13, 2025 19:15
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