1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

devmapper: debug messages

This commit is contained in:
Solomon Hykes 2013-10-16 23:27:33 +00:00
parent f3e6d34df2
commit c688e9b5a6
2 changed files with 5 additions and 0 deletions

View file

@ -690,9 +690,12 @@ func (devices *DeviceSetDM) MountDevice(hash, path string) error {
}
func (devices *DeviceSetDM) UnmountDevice(hash, path string, deactivate bool) error {
utils.Debugf("[devmapper] UnmountDevice(hash=%s path=%s)", hash, path)
defer utils.Debugf("[devmapper] UnmountDevice END")
devices.Lock()
defer devices.Unlock()
utils.Debugf("[devmapper] Unmount(%s)", path)
if err := syscall.Unmount(path, 0); err != nil {
utils.Debugf("\n--->Err: %s\n", err)
return err

View file

@ -611,6 +611,8 @@ func deleteDevice(poolName string, deviceId int) error {
}
func removeDevice(name string) error {
utils.Debugf("[devmapper] removeDevice START")
defer utils.Debugf("[devmapper] removeDevice END")
task, err := createTask(DeviceRemove, name)
if task == nil {
return err