mirror of
https://github.com/containers/podman.git
synced 2025-12-14 02:48:35 +08:00
vendor in containers/storage v1.29.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
12
vendor/github.com/containers/storage/pkg/archive/archive.go
generated
vendored
12
vendor/github.com/containers/storage/pkg/archive/archive.go
generated
vendored
@@ -20,6 +20,7 @@ import (
|
||||
"github.com/containers/storage/pkg/pools"
|
||||
"github.com/containers/storage/pkg/promise"
|
||||
"github.com/containers/storage/pkg/system"
|
||||
"github.com/containers/storage/pkg/unshare"
|
||||
gzip "github.com/klauspost/pgzip"
|
||||
rsystem "github.com/opencontainers/runc/libcontainer/system"
|
||||
"github.com/pkg/errors"
|
||||
@@ -1489,3 +1490,14 @@ func TarPath(uidmap []idtools.IDMap, gidmap []idtools.IDMap) func(path string) (
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// GetOverlayXattrName returns the xattr used by the overlay driver with the
|
||||
// given name.
|
||||
// It uses the trusted.overlay prefix when running as root, and user.overlay
|
||||
// in rootless mode.
|
||||
func GetOverlayXattrName(name string) string {
|
||||
if unshare.IsRootless() {
|
||||
return fmt.Sprintf("user.overlay.%s", name)
|
||||
}
|
||||
return fmt.Sprintf("trusted.overlay.%s", name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user