Description of problem: cryptosetup luksClose returns 0 on error. Should return 1 (or another nonzero value) to allow error detection in scripts. Version-Release number of selected component (if applicable): cryptsetup-luks 1.0.3-rc2 How reproducible: Always Steps to Reproduce: 1. Run luksClose on a mounted partition Actual results: [root@vault niels]# /sbin/cryptsetup luksClose sdd Command failed: Device or resource busy [root@vault niels]# echo $? 0 Expected results: [root@vault niels]# /sbin/cryptsetup luksClose sdd Command failed: Device or resource busy [root@vault niels]# echo $? 1 Additional info:
Niels, have you notified Clemens Fruhwirth, the upsteam maintainer of cryptsetup? He has a website at endorphin.org.
According to http://luks.endorphin.org/dm-crypt this has been fixed in 1.0.3, which is in Fedora Core 6, but not in Fedora Core 5. The return values for luksOpen are broken, too. So this bug can either be fixed by upgrading (1.0.4 is out there, too, btw.) or closed, if you don't want to fix this, since it is open now for more than a half year. I would prefer an upgrade. :-)
FC5 will be End Of Life, soon. Since here was no response from the maintainer and fixing this now in FC5 will hardly help anyone anymore, I close this bug. :-(