code: func TaskCreate(tasktype TaskType) *Task {
  	Ctask := DmTaskCreate(int(tasktype))
  	if Ctask == nil {
  		return nil
  	}
  	task := &Task{unmanaged: Ctask}
  	runtime.SetFinalizer(task, (*Task).destroy)
  	return task
  }
docs: // TaskCreate initializes a devicemapper task of tasktype