mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4986ce7cfb
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>
14 lines
293 B
Go
14 lines
293 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
|
|
}
|
|
|
|
func dmTaskGetInfoWithDeferredFct(task *CDmTask, info *Info) int {
|
|
return -1
|
|
}
|