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

Print paths for unmounted intermediate datasets #7

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

Freaky
Copy link
Collaborator

@Freaky Freaky commented Jan 15, 2022

Fixes #5

This finds the longest common prefix of path segments since the last and
current dataset and prints any up to the final segment that have been
missed.

For example, a root mount at rpool/ROOT/default would previously be
displayed thus:

dataset
      default ...

This ensures the path leading up to it have their own lines:

dataset
rpool
   ROOT
      default ...

I believe this to be a more consistent fix than the one proposed in #6
where intermediates are formatted on a single line.

Fixes jimsalterjrs#5

This finds the longest common prefix of path segments since the last and
current dataset and prints any up to the final segment that have been
missed.

For example, a root mount at rpool/ROOT/default would previously be
displayed thus:

dataset
        default ...

This ensures the path leading up to it have their own lines:

dataset
rpool
    ROOT
        default ...

I believe this to be a more consistent fix than the one proposed in jimsalterjrs#6
where intermediates are formatted on a single line.
@jimsalterjrs jimsalterjrs merged commit 99884a9 into jimsalterjrs:main Jan 19, 2022
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.

Unmounted datasets lead to confusing gaps in output
2 participants