Add ability to report warnings to terminal

Report warnings to terminal when unrecognized generic attributes are found in the repository.
This commit is contained in:
Aneesh Nireshwalia
2024-02-22 17:52:26 -07:00
parent 0962917974
commit eeb1aa5388
9 changed files with 26 additions and 22 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ func Setxattr(path, name string, data []byte) error {
}
// restoreGenericAttributes is no-op on openbsd.
func (node *Node) restoreGenericAttributes(_ string) error {
return node.handleAllUnknownGenericAttributesFound()
func (node *Node) restoreGenericAttributes(_ string, warn func(msg string)) error {
return node.handleAllUnknownGenericAttributesFound(warn)
}
// fillGenericAttributes is a no-op on openbsd.