|
@@ -16,11 +16,6 @@ func (daemon *Daemon) ContainerCopy(name string, res string) (io.ReadCloser, err
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
|
|
|
|
- // Make sure an online file-system operation is permitted.
|
|
|
|
- if err := daemon.isOnlineFSOperationPermitted(ctr); err != nil {
|
|
|
|
- return nil, errdefs.System(err)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
data, err := daemon.containerCopy(ctr, res)
|
|
data, err := daemon.containerCopy(ctr, res)
|
|
if err == nil {
|
|
if err == nil {
|
|
return data, nil
|
|
return data, nil
|
|
@@ -40,11 +35,6 @@ func (daemon *Daemon) ContainerStatPath(name string, path string) (stat *types.C
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
|
|
|
|
- // Make sure an online file-system operation is permitted.
|
|
|
|
- if err := daemon.isOnlineFSOperationPermitted(ctr); err != nil {
|
|
|
|
- return nil, errdefs.System(err)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
stat, err = daemon.containerStatPath(ctr, path)
|
|
stat, err = daemon.containerStatPath(ctr, path)
|
|
if err == nil {
|
|
if err == nil {
|
|
return stat, nil
|
|
return stat, nil
|
|
@@ -65,11 +55,6 @@ func (daemon *Daemon) ContainerArchivePath(name string, path string) (content io
|
|
return nil, nil, err
|
|
return nil, nil, err
|
|
}
|
|
}
|
|
|
|
|
|
- // Make sure an online file-system operation is permitted.
|
|
|
|
- if err := daemon.isOnlineFSOperationPermitted(ctr); err != nil {
|
|
|
|
- return nil, nil, errdefs.System(err)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
content, stat, err = daemon.containerArchivePath(ctr, path)
|
|
content, stat, err = daemon.containerArchivePath(ctr, path)
|
|
if err == nil {
|
|
if err == nil {
|
|
return content, stat, nil
|
|
return content, stat, nil
|
|
@@ -93,11 +78,6 @@ func (daemon *Daemon) ContainerExtractToDir(name, path string, copyUIDGID, noOve
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
|
|
|
|
- // Make sure an online file-system operation is permitted.
|
|
|
|
- if err := daemon.isOnlineFSOperationPermitted(ctr); err != nil {
|
|
|
|
- return errdefs.System(err)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
err = daemon.containerExtractToDir(ctr, path, copyUIDGID, noOverwriteDirNonDir, content)
|
|
err = daemon.containerExtractToDir(ctr, path, copyUIDGID, noOverwriteDirNonDir, content)
|
|
if err == nil {
|
|
if err == nil {
|
|
return nil
|
|
return nil
|