Skip to contentSkip to conversation

cryptsetup remove

dm-crypt shyam prasad 2 participants 2 messages Oct 30, 2013 – Nov 2, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

I am using cryptsetup-1.2 without luks and I have noticed that while removing the mapped device using 'cryptsetup remove', cryptsetup does a read operation. I have found that this is not true in cryptsetup-1.5.1. Is this a side effect of a change or was this explicitly modified. If it was intentional, could someone point me to the patch.

Thanks

#1 lore raw
Quoted 8 lines · shyam prasad

Hello,

I am using cryptsetup-1.2 without luks and I have noticed that while removing the mapped device using 'cryptsetup remove', cryptsetup does a read operation. I have found that this is not true in cryptsetup-1.5.1. Is this a side effect of a change or was this explicitly modified. If it was intentional, could someone point me to the patch.

Can you be more specific? Which read operation, how did you see it
- strace? And what's the real problem?

I do not see any explicit read for removal of plain device.

Note that a lot of scanning can happen through udev rules when some device is created, modified (it scans device after close for write) etc.

Milan