mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![Vivek Goyal](/assets/img/avatar_default.png)
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>
10 lines
212 B
Go
10 lines
212 B
Go
// +build linux,libdm_no_deferred_remove
|
|
|
|
package devicemapper
|
|
|
|
const LibraryDeferredRemovalSupport = false
|
|
|
|
func dmTaskDeferredRemoveFct(task *CDmTask) int {
|
|
// Error. Nobody should be calling it.
|
|
return -1
|
|
}
|