Skip to content

Commit

Permalink
overlay: honor DisableShifting
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed May 18, 2021
1 parent cd673d5 commit e11d2aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,10 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
}
readWrite := true

if !d.SupportsShifting() || options.DisableShifting {
disableShifting = true
}

optsList := options.Options
if len(optsList) == 0 {
optsList = strings.Split(d.options.mountOptions, ",")
Expand Down

0 comments on commit e11d2aa

Please sign in to comment.