From da09835b6ceb36f1d99c6469056c18a7435e8b68 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Tue, 13 Aug 2024 09:14:00 +0200 Subject: [PATCH] Document reencryption process status callbak return code. --- lib/libcryptsetup.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h index 5748f07c..1932e202 100644 --- a/lib/libcryptsetup.h +++ b/lib/libcryptsetup.h @@ -3021,6 +3021,8 @@ __attribute__((deprecated)); * @param usrptr progress specific data * * @return @e 0 on success or negative errno value otherwise. + * + * @note A @e progress callback can interrupt reencryption process by returning non-zero code. */ int crypt_reencrypt_run(struct crypt_device *cd, int (*progress)(uint64_t size, uint64_t offset, void *usrptr),