Fix vitastor-cli ls --tree hiding layers whose parent is filtered out #101
Reference in New Issue
Block a user
No description provided.
Delete Branch "koolkhel/vitastor:cli-ls-tree"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
ls --tree built the tree starting from the roots of the selected layers,
so a layer whose parent was left out by a glob, -p or -n was never
reached and not printed at all: ls --tree testimg printed nothing when
testimg had a parent. Show such a layer as a root; its parent is still
shown in the PARENT column.
Tested: new tests/test_ls_tree.sh (
testimg@snap1with children testimg, testclone and testclone2 in another pool;ls --tree testimg,-n 1,-p testpool2), fails without the fix and passes with it.Contributor Name
Yury Luneff (MIND Software LLC, https://mindsw.io)
CLA