* Fix a bug in the use of asprintf. asprintf returns an error code and sets the buffer to NULL if it can't allocate memory. Handle that case gracefully. * Define _GNU_SOURCE globally since it seems that the stdlib includes in some Linux distributions (Gentoo, Ubuntu) are broken and don't work without giving warnings if _GNU_SOURCE isn't defined. * Reported-by: Cody Schafer (jmesmon) * Fixes-Issue: 1
* Make memory deallocation less lazy by cleaning up as much as possible on both normal and error paths. There is no strict requirement to do this as the memory will be properly cleaned up eventually anyway, but it does reduce the memory footprint. * Add first part of the backup header logic. Now backup headers are generated on volume creation, but not yet written.
* Make everything blksz agnostic, so that tcplay also works on disks with non-512-byte sectors. This hasn't been tested yet but *should* work. * Fix the volume size, which was 256 sectors too big before (as I wasn't considering the space at the end of the volume for the backup headers). * Change the /dev/random reader to read in smaller chunks and report progress. * Bump version to 0.9
* use the udev sync foo to make sure that nodes appear before continuing. This is particularly important when trying to create stacked volumes for the cascaded ciphers. * add a newline char to the "All Ok" printf. * don't mistakenly return that everything went ok in dm_setup when the only thing that went ok was the unrolling of changes after an error.