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

Ignore non DMU_OST_ZFS and DMU_OST_ZVOL types #538

Closed
wants to merge 1 commit into from
Closed

Ignore non DMU_OST_ZFS and DMU_OST_ZVOL types #538

wants to merge 1 commit into from

Conversation

prakashsurya
Copy link
Member

If a dataset is successfully opened with the zpool or zfs commands, and
it is found to have a dds_type of neither DMU_OST_ZFS nor DMU_OST_ZVOL,
the command will abort(). This patch changes that behavior. Rather than
calling abort(), now, the dataset in question is simply ignored.

Signed-off-by: Prakash Surya surya1@llnl.gov
Closes #536

@prakashsurya
Copy link
Member Author

Or maybe I should be more specific and only return -1 when dds_type == DMU_OST_OTHER? Still abort-ing on anything else?

@behlendorf
Copy link
Contributor

I'd suggest the latter, only return -1 on dds_type == DMU_OST_OTHER. It would also be worth adding a comment that zpios dataset are of type DMU_OST_OTHER and are used for testing. This preserves the error behavior in the case where we get something truly unexpected.

Since the zpios and potentially other ZFS tests use the DMU_OST_OTHER
type to label their datasets, the zpool and zfs commands should
gracefully handle this type when it is encountered. This patch modifies
the commands' behavior to ignore any datasets with a dds_type of
DMU_OST_OTHER.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Closes #536
@prakashsurya
Copy link
Member Author

I agree, that sounds like a better approach. I've updated the branch and this pull request.

@behlendorf
Copy link
Contributor

Merged as commit ff998d8

@behlendorf behlendorf closed this Jan 19, 2012
pcd1193182 pushed a commit to pcd1193182/zfs that referenced this pull request Sep 26, 2023
…aster

Merge remote-tracking branch '6.0/stage' into 'master'
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.

zpool core dump
2 participants