Re: Set deactivation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


_______________________________________________
Ataraid-list mailing list
Ataraid-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ataraid-list

[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux