-
Notifications
You must be signed in to change notification settings - Fork 6k
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
rbd: fix rbd children listing when child is in trash and add rbd_list_children2 method #18483
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,7 +144,7 @@ Skip test on FreeBSD as it generates different output there. | |
--io-type arg IO type (read , write, or readwrite(rw)) | ||
|
||
rbd help children | ||
usage: rbd children [--pool <pool>] [--image <image>] [--snap <snap>] | ||
usage: rbd children [--pool <pool>] [--image <image>] [--snap <snap>] [--all] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These (related) changes seem to be mixing and matching between commits. The title of this commit is to fix a bug re: listing children for trashed images so it should be limited to handling that fix. The next commit can add the new API methods and expand the rbd CLI to list trashed images. |
||
[--format <format>] [--pretty-format] | ||
<snap-spec> | ||
|
||
|
@@ -158,6 +158,7 @@ Skip test on FreeBSD as it generates different output there. | |
-p [ --pool ] arg pool name | ||
--image arg image name | ||
--snap arg snapshot name | ||
-a [ --all ] list all children of snapshot (include trash) | ||
--format arg output format (plain, json, or xml) [default: plain] | ||
--pretty-format pretty formatting (json and xml) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be nicer to switch to an iterator style and return a dict for each child.