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-131711 / 25.04 / Change snapdir type to str #288

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

ixhamza
Copy link
Contributor

@ixhamza ixhamza commented Oct 10, 2024

The commit openzfs/zfs@d34d4f9 added a new disabled value to the snapdir property. Since it can now return three possible strings, update its type to str, similar to other properties like compression and acltype. Additionally, the parsing of the snapdir property in py-libzfs was already broken before the zfs-2.3 update. It was supposed to return True when set to hidden and False when set to visible, but instead, it returned None for both states.

Scale Build: http://jenkins.eng.ixsystems.net:8080/job/master/job/custom/607/
API Test Run: http://jenkins.eng.ixsystems.net:8080/job/tests/job/api_tests/1280/

The commit openzfs/zfs@d34d4f9 added a new
`disabled` value  to the `snapdir` property. Since it can now return
three possible strings, update its type to `str`, similar to other
properties like `compression` and `acltype`.
@ixhamza ixhamza requested review from amotin and anodos325 October 10, 2024 19:57
@bugclerk bugclerk changed the title Change snapdir type to str NAS-131711 / 25.04 / Change snapdir type to str Oct 10, 2024
@bugclerk
Copy link

@amotin amotin merged commit cf04e20 into master Oct 11, 2024
1 check passed
@amotin amotin deleted the NAS-131711 branch October 11, 2024 12:46
@bugclerk
Copy link

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 Oct 11, 2024
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.

4 participants