summaryrefslogtreecommitdiff
path: root/pkg/devicemapper/devmapper_log.go
Commit message (Collapse)AuthorAgeFilesLines
* gofmt GoDoc comments with go1.19Sebastiaan van Stijn2022-07-081-0/+1
| | | | | | | | Older versions of Go don't format comments, so committing this as a separate commit, so that we can already make these changes before we upgrade to Go 1.19. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Update to Go 1.17.0, and gofmt with Go 1.17Sebastiaan van Stijn2021-08-241-0/+1
| | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Add canonical import commentDaniel Nephin2018-02-051-1/+1
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Devicemapper: ignore Nodata errors when delete thin deviceLiu Hua2018-01-021-0/+3
| | | | | | | | if thin device is deteled and the metadata exists, you can not delete related containers. This patch ignore Nodata errors for thin device deletion Signed-off-by: Liu Hua <sdu.liu@huawei.com>
* Optimize some wrong usage and spellingwangguoliang2017-09-071-1/+1
| | | | Signed-off-by: wgliang <liangcszzu@163.com>
* Add unconvert linterDaniel Nephin2017-08-241-1/+1
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Update logrus to v1.0.1Derek McGowan2017-07-311-1/+1
| | | | | | Fixes case sensitivity issue Signed-off-by: Derek McGowan <derek@mcgstyle.net>
* devicemapper: change LogInit and move all callbacks to pkgAleksa Sarai2017-07-041-3/+89
| | | | | | | | | | | | | | | | | | | | LogInit used to act as a manual way of registering the *necessary* pkg/devicemapper logging callbacks. In addition, it was used to split up the logic of pkg/devicemapper into daemon/graphdriver/devmapper (such that some things were logged from libdm). The manual aspect of this API was completely non-sensical and was just begging for incorrect usage of pkg/devicemapper, so remove that semantic and always register our own libdm callbacks. In addition, recombine the split out logging callbacks into pkg/devicemapper so that the default logger is local to the library and also shown to be the recommended logger. This makes the code substantially easier to read. Also the new DefaultLogger now has configurable upper-bound for the log level, which allows for dynamically changing the logging level. Signed-off-by: Aleksa Sarai <asarai@suse.de>
* Make pkg/devicemapper and pkg/loopback depend on cgo in build tagsAaron Lehmann2017-03-291-1/+1
| | | | Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
* Remove (?) from comments in pkg/devicemapperVincent Demeester2015-09-301-1/+1
| | | | | | Got merged with it, removing it as it doesn't add anything. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Update validate-lint to find go files by itselfVincent Demeester2015-09-081-2/+3
| | | | | | … and fixes the last bits that were missing :3. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* devicemapper: Create helpers to cancel deferred deactivationVivek Goyal2015-04-211-0/+4
| | | | | | | | | | If a device has been scheduled for deferred deactivation and container is started again and we need to activate device again, we need to cancel the deferred deactivation which is already scheduled on the device. Create a method for the same. Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
* devicemapper: split out devicemapper bindingsVincent Batts2014-11-051-0/+30
This is a first pass at splitting out devicemapper into separate, usable bindings. Signed-off-by: Vincent Batts <vbatts@redhat.com>