Merge pull request #5655 from kzys/dm-log
snapshot/devmapper: log exported methods correctly
This commit is contained in:
commit
0bd2a86b1b
@ -204,7 +204,7 @@ func (s *Snapshotter) Prepare(ctx context.Context, key, parent string, opts ...s
|
||||
|
||||
// View creates readonly thin device for the given snapshot key
|
||||
func (s *Snapshotter) View(ctx context.Context, key, parent string, opts ...snapshots.Opt) ([]mount.Mount, error) {
|
||||
log.G(ctx).WithFields(logrus.Fields{"key": key, "parent": parent}).Debug("prepare")
|
||||
log.G(ctx).WithFields(logrus.Fields{"key": key, "parent": parent}).Debug("view")
|
||||
|
||||
var (
|
||||
mounts []mount.Mount
|
||||
@ -490,6 +490,8 @@ func (s *Snapshotter) withTransaction(ctx context.Context, writable bool, fn fun
|
||||
|
||||
// Cleanup cleans up all removed and unused resources
|
||||
func (s *Snapshotter) Cleanup(ctx context.Context) error {
|
||||
log.G(ctx).Debug("cleanup")
|
||||
|
||||
var removedDevices []*DeviceInfo
|
||||
|
||||
if !s.config.AsyncRemove {
|
||||
|
Loading…
Reference in New Issue
Block a user