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

tap-clt: Improve list output filtering #377

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

jandryuk
Copy link
Contributor

tap-ctl list is returning the allocated but unattached tapdevs when used with -t and -f. We want to skip those since they don't match.

Full output:
$ tap-ctl list
334529 1 0 vhd /home/user/test.vhd
334534 2 0 aio /home/user/test.aio
- 0 - - -

Filtered before this change:
$ tap-ctl list -t vhd -f /home/user/test.vhd
334529 1 0 vhd /home/user/test.vhd
- 0 - - -

Filtered after this change:
$ tap-ctl list -t vhd -f /home/user/test.vhd
334529 1 0 vhd /home/user/test.vhd

MarkSymsCtx
MarkSymsCtx previously approved these changes Apr 25, 2023
@MarkSymsCtx
Copy link
Contributor

Minor niggle of a typo in the commit message tapclt

tap-ctl list is returning the allocated but unattached tapdevs when used
with -t and -f.  We want to skip those since they don't match.

Full output:
$ tap-ctl list
  334529    1    0        vhd /home/user/test.vhd
  334534    2    0        aio /home/user/test.aio
       -    0    -          - -

Filtered before this change:
$ tap-ctl list -t vhd -f /home/user/test.vhd
  334529    1    0        vhd /home/user/test.vhd
       -    0    -          - -

Filtered after this change:
$ tap-ctl list -t vhd -f /home/user/test.vhd
  334529    1    0        vhd /home/user/test.vhd

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
@jandryuk
Copy link
Contributor Author

Thanks, @MarkSymsCtx . Fixed the typo.

@MarkSymsCtx MarkSymsCtx merged commit 27c5a9d into xapi-project:master Nov 23, 2023
@jandryuk jandryuk deleted the list-filtering branch November 27, 2023 12:46
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.

3 participants