Skip to content

Commit

Permalink
Merge pull request #1688 from vrothberg/fix-podman-19467
Browse files Browse the repository at this point in the history
overlay: Diffsize: avoid naive diff
  • Loading branch information
rhatdan authored Aug 14, 2023
2 parents 7a27553 + 7618ac8 commit ceef178
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -2164,10 +2164,6 @@ func (d *Driver) getLowerDiffPaths(id string) ([]string, error) {
// and its parent and returns the size in bytes of the changes
// relative to its base filesystem directory.
func (d *Driver) DiffSize(id string, idMappings *idtools.IDMappings, parent string, parentMappings *idtools.IDMappings, mountLabel string) (size int64, err error) {
if d.options.mountProgram == "" && (d.useNaiveDiff() || !d.isParent(id, parent)) {
return d.naiveDiff.DiffSize(id, idMappings, parent, parentMappings, mountLabel)
}

p, err := d.getDiffPath(id)
if err != nil {
return 0, err
Expand Down

0 comments on commit ceef178

Please sign in to comment.