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

zfs: Allow space in dataset name #3186

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

khafatech
Copy link

@khafatech khafatech commented Nov 18, 2024

@discordianfish

The zfs dataset name now gets parsed properly if it has spaces in it.

An ascii space character is allowed in a dataset according to entity_namecheck() in zfs code.

I also added a unit test to test for this case.

For unit and end-to-end tests, I added a new zpool fixture, "pool3", a copy of "pool1" but with dataset name "pool3/dataset with space".

Fixes #3170

Signed-off-by: Mustafa Khafateh <[email protected]>
@khafatech khafatech force-pushed the zfs-space-in-dataset branch from d9a566b to f4b1f02 Compare November 18, 2024 03:27
@khafatech
Copy link
Author

The e2e tests need updating; will fix.

@khafatech khafatech changed the title zfs: Allow space in dataset name [WIP] zfs: Allow space in dataset name Nov 20, 2024
@khafatech khafatech changed the title [WIP] zfs: Allow space in dataset name zfs: Allow space in dataset name Nov 21, 2024
Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

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.

ZFS Collector does not handle spaces in dataset names
2 participants