Set deactivation

Phillip Susi psusi at
Fri Dec 5 16:49:51 UTC 2008

Heinz Mauelshagen wrote:
> Because "type = DM_DEVICE_REMOVE" is passed via dm_remove().
> See the dm_task_create(type) call in run_task, which hence receives a
> DM_REMOVE_DEVICE as the type.

But in rc14 run_task() is not called for DM_DEVICE_REMOVE.

> Code you reference in rc15 has been added for mapped device UUID
> support. It only creates and sets a UUID on DM_DEVICE_CREATE for obvious
> reasons.

They both call dmraid_uuid for DM_DEVICE_CREATE.  The difference is that 
rc14 only calls dm_task_run for DM_DEVICE_CREATE, and rc15 calls it no 
matter what the type is.  This looks to me like in rc14 it sets up a 
task to remove the device, but never actually executes it since 
dm_task_run is never called.

More information about the Ataraid-list mailing list