From 457a35ba4729cabd7cc5cf8ac788f5aa4a25f61e Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 19 Jan 2015 15:52:39 -0500 Subject: [PATCH 1/2] devicemapper: define the fallback flag DM_UDEV_DISABLE_LIBRARY_FALLBACK is disabled by most applications today when using device-mapper, and ensuring that device-mapper is in sync with udev. This flag instructs devicemapper to not fallback to creating the device nodes itself. In the case of udev sync not being supported, devicemapper will attempt to create the devices in a timely manner, regardless of udev. Signed-off-by: Vincent Batts --- devicemapper/devmapper_wrapper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/devicemapper/devmapper_wrapper.go b/devicemapper/devmapper_wrapper.go index aff8446..63c55d9 100644 --- a/devicemapper/devmapper_wrapper.go +++ b/devicemapper/devmapper_wrapper.go @@ -86,6 +86,7 @@ const ( DmUdevDisableSubsystemRulesFlag = C.DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG DmUdevDisableDiskRulesFlag = C.DM_UDEV_DISABLE_DISK_RULES_FLAG DmUdevDisableOtherRulesFlag = C.DM_UDEV_DISABLE_OTHER_RULES_FLAG + DmUdevDisableLibraryFallback = C.DM_UDEV_DISABLE_LIBRARY_FALLBACK ) var ( From ffc90a8fbfcea5f9e9532950d6361c927a91ceee Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 19 Jan 2015 16:40:50 -0500 Subject: [PATCH 2/2] devicemapper: debug output specifics moar information for the information gods Signed-off-by: Vincent Batts --- devicemapper/devmapper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicemapper/devmapper.go b/devicemapper/devmapper.go index 486ec15..c0caec5 100644 --- a/devicemapper/devmapper.go +++ b/devicemapper/devmapper.go @@ -341,8 +341,8 @@ func UdevSetSyncSupport(enable bool) bool { // Useful helper for cleanup func RemoveDevice(name string) error { - log.Debugf("[devmapper] RemoveDevice START") - defer log.Debugf("[devmapper] RemoveDevice END") + log.Debugf("[devmapper] RemoveDevice START(%s)", name) + defer log.Debugf("[devmapper] RemoveDevice END(%s)", name) task, err := TaskCreateNamed(DeviceRemove, name) if task == nil { return err