You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
decomposedfs metadata: --node help says "Path to or ID", but only an ID is supported #4110
The help of --node of opencloud decomposedfs metadata dump|get|set says "Path to or ID of the node to inspect", but getNode only handles an ID (storagespace.ParseID, then NodeFromID).
Possible fixes
Help text: describe what is accepted, i.e. <spaceid>!<nodeid>, or <spaceid> for the root of a space.
Code: make getNode accept a path too, e.g. a path inside a space (<spaceid>!<nodeid>/<path>) via storagespace.ParseReference and lookup.NodeFromResource.
Details
opencloud/pkg/command/decomposedfs.go: --node in metadataCmd, and getNode
A path isn't rejected: ParseID only fails on an empty value, so /foo/bar is taken as a space ID and the node is looked up in the wrong place under --root.
Activity