summaryrefslogtreecommitdiff
path: root/pkg/devicemapper/devmapper_wrapper_deferred_remove.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix golint warningsAlexander Morozov2015-11-021-1/+1
| | | | Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* pkg: devicemapper: fix typo in function declarationAntonio Murdaca2015-09-091-2/+2
| | | | | | | 6990b76a696dd265674f4c2973f25755a6485f05 introduced a typo in function declaration, this patch fixes that. Signed-off-by: Antonio Murdaca <runcom@linux.com>
* Lint package pkg/devicemapperVincent Demeester2015-09-051-0/+1
| | | | Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* devicemapper: Create a method to get device info with deferred remove fieldVivek Goyal2015-04-211-0/+18
| | | | | | | | | | Deferred reove functionality was added to library later. So in old version of library it did not report deferred_remove field. Create a new function which also gets deferred_remove field and it will be called only on newer version of library. Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
* devicemapper: Add helper functions to allow deferred device removalVivek Goyal2015-04-211-0/+15
A lot of time device mapper devices leak across mount namespace which docker does not know about and when docker tries to deactivate/delete device, operation fails as device is open in some mount namespace. Create a mechanism where one can defer the device deactivation/deletion so that docker operation does not fail and device automatically goes away when last reference to it is dropped. Signed-off-by: Vivek Goyal <vgoyal@redhat.com>