mirror of
https://github.com/containers/podman.git
synced 2025-12-11 17:27:19 +08:00
Update common, image, and storage deps
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
committed by
Paul Holzinger
parent
32d96f40c3
commit
444f19cb2a
6
vendor/github.com/containers/storage/pkg/chunked/cache_linux.go
generated
vendored
6
vendor/github.com/containers/storage/pkg/chunked/cache_linux.go
generated
vendored
@@ -48,8 +48,10 @@ type layersCache struct {
|
||||
created time.Time
|
||||
}
|
||||
|
||||
var cacheMutex sync.Mutex
|
||||
var cache *layersCache
|
||||
var (
|
||||
cacheMutex sync.Mutex
|
||||
cache *layersCache
|
||||
)
|
||||
|
||||
func (c *layersCache) release() {
|
||||
cacheMutex.Lock()
|
||||
|
||||
6
vendor/github.com/containers/storage/pkg/chunked/compressor/compressor.go
generated
vendored
6
vendor/github.com/containers/storage/pkg/chunked/compressor/compressor.go
generated
vendored
@@ -15,8 +15,10 @@ import (
|
||||
"github.com/vbatts/tar-split/archive/tar"
|
||||
)
|
||||
|
||||
const RollsumBits = 16
|
||||
const holesThreshold = int64(1 << 10)
|
||||
const (
|
||||
RollsumBits = 16
|
||||
holesThreshold = int64(1 << 10)
|
||||
)
|
||||
|
||||
type holesFinder struct {
|
||||
reader *bufio.Reader
|
||||
|
||||
12
vendor/github.com/containers/storage/pkg/chunked/compressor/rollsum.go
generated
vendored
12
vendor/github.com/containers/storage/pkg/chunked/compressor/rollsum.go
generated
vendored
@@ -25,11 +25,15 @@ import (
|
||||
"math/bits"
|
||||
)
|
||||
|
||||
const windowSize = 64 // Roll assumes windowSize is a power of 2
|
||||
const charOffset = 31
|
||||
const (
|
||||
windowSize = 64 // Roll assumes windowSize is a power of 2
|
||||
charOffset = 31
|
||||
)
|
||||
|
||||
const blobBits = 13
|
||||
const blobSize = 1 << blobBits // 8k
|
||||
const (
|
||||
blobBits = 13
|
||||
blobSize = 1 << blobBits // 8k
|
||||
)
|
||||
|
||||
type RollSum struct {
|
||||
s1, s2 uint32
|
||||
|
||||
2
vendor/github.com/containers/storage/pkg/chunked/internal/compression.go
generated
vendored
2
vendor/github.com/containers/storage/pkg/chunked/internal/compression.go
generated
vendored
@@ -134,7 +134,7 @@ func WriteZstdChunkedManifest(dest io.Writer, outMetadata map[string]string, off
|
||||
Entries: metadata,
|
||||
}
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
json := jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
// Generate the manifest
|
||||
manifest, err := json.Marshal(toc)
|
||||
if err != nil {
|
||||
|
||||
6
vendor/github.com/containers/storage/pkg/chunked/storage_linux.go
generated
vendored
6
vendor/github.com/containers/storage/pkg/chunked/storage_linux.go
generated
vendored
@@ -558,7 +558,7 @@ func openFileUnderRootFallback(dirfd int, name string, flags uint64, mode os.Fil
|
||||
func openFileUnderRootOpenat2(dirfd int, name string, flags uint64, mode os.FileMode) (int, error) {
|
||||
how := unix.OpenHow{
|
||||
Flags: flags,
|
||||
Mode: uint64(mode & 07777),
|
||||
Mode: uint64(mode & 0o7777),
|
||||
Resolve: unix.RESOLVE_IN_ROOT,
|
||||
}
|
||||
return unix.Openat2(dirfd, name, &how)
|
||||
@@ -636,7 +636,7 @@ func openOrCreateDirUnderRoot(name string, dirfd int, mode os.FileMode) (*os.Fil
|
||||
|
||||
baseName := filepath.Base(name)
|
||||
|
||||
if err2 := unix.Mkdirat(int(pDir.Fd()), baseName, 0755); err2 != nil {
|
||||
if err2 := unix.Mkdirat(int(pDir.Fd()), baseName, 0o755); err2 != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -1384,7 +1384,7 @@ func (c *chunkedDiffer) ApplyDiff(dest string, options *archive.TarOptions) (gra
|
||||
filesToWaitFor := 0
|
||||
for i, r := range mergedEntries {
|
||||
if options.ForceMask != nil {
|
||||
value := fmt.Sprintf("%d:%d:0%o", r.UID, r.GID, r.Mode&07777)
|
||||
value := fmt.Sprintf("%d:%d:0%o", r.UID, r.GID, r.Mode&0o7777)
|
||||
r.Xattrs[containersOverrideXattr] = base64.StdEncoding.EncodeToString([]byte(value))
|
||||
r.Mode = int64(*options.ForceMask)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user