Merge "Replace manual dm ioctls with libdm."