Skip to content

Conversation

@ahrens
Copy link
Contributor

@ahrens ahrens commented Feb 22, 2020

The dbuf command can select dbufs that match certain parameters (e.g.
'-l 1' for level-1 dbufs). This works when dbuf is the first command
in the pipeline, and when it is used as a locator with a dnode_t* as
input. But it doesn't work in other circumstances, for example
when it's being used only as a pretty-printer (with the list of dbufs
piped in), or when it's used in the middle of a pipeline.

This change adds the filter calls to this use cases, and adds
corresponding test cases

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build was run locally and any changes were pushed
  • Lint has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

The dbuf command can select dbufs that match certain parameters (e.g.
'-l 1' for level-1 dbufs).  This works when `dbuf` is the first command
in the pipeline, and when it is used as a locator with a dnode_t* as
input.  But it doesn't work in other circumstances, for example
when it's being used only as a pretty-printer (with the list of dbufs
piped in), or when it's used in the middle of a pipeline.

This change adds the filter calls to this use cases, and adds
corresponding test cases
Copy link
Contributor

@sdimitro sdimitro left a comment

Choose a reason for hiding this comment

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

LGTM. In order to not lose track of the actual issue that was raised during our discussions I created #189 and #188.

@ahrens ahrens merged commit bf5de5c into delphix:master Feb 25, 2020
@ahrens ahrens deleted the dbuf branch February 25, 2020 19:00
sdimitro pushed a commit that referenced this pull request Mar 27, 2020
The dbuf command can select dbufs that match certain parameters (e.g.
'-l 1' for level-1 dbufs).  This works when `dbuf` is the first command
in the pipeline, and when it is used as a locator with a dnode_t* as
input.  But it doesn't work in other circumstances, for example
when it's being used only as a pretty-printer (with the list of dbufs
piped in), or when it's used in the middle of a pipeline.

This change adds the filter calls to this use cases, and adds
corresponding test cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants