packagewclayerimport("github.com/Microsoft/hcsshim/internal/hcserror""github.com/sirupsen/logrus")// DeactivateLayer will dismount a layer that was mounted via ActivateLayer.funcDeactivateLayer(pathstring)(errerror){title:="hcsshim::DeactivateLayer"fields:=logrus.Fields{"path":path,}logrus.WithFields(fields).Debug(title)deferfunc(){iferr!=nil{fields[logrus.ErrorKey]=errlogrus.WithFields(fields).Error(err)}else{logrus.WithFields(fields).Debug(title+" - succeeded")}}()err=deactivateLayer(&stdDriverInfo,path)iferr!=nil{returnhcserror.New(err,title+"- failed","")}returnnil}