mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix Put without Get in aufs
this Patch is ported from 3916561619
Signed-off-by: Liu Hua <sdu.liu@huawei.com>
This commit is contained in:
parent
f7bdb97357
commit
451f751773
1 changed files with 8 additions and 0 deletions
|
@ -332,6 +332,14 @@ func (a *Driver) Put(id string) error {
|
|||
|
||||
m := a.active[id]
|
||||
if m == nil {
|
||||
// but it might be still here
|
||||
if a.Exists(id) {
|
||||
path := path.Join(a.rootPath(), "mnt", id)
|
||||
err := Unmount(path)
|
||||
if err != nil {
|
||||
logrus.Debugf("Failed to unmount %s aufs: %v", id, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if count := m.referenceCount; count > 1 {
|
||||
|
|
Loading…
Add table
Reference in a new issue