online encryption progress

"Brian J. Murrell" <[email protected]> Mon, 16 Oct 2023 13:57:01 -0400
Newsgroups dev.linux.lists.cryptsetup
Message-ID <[email protected]>
Hi.

I used: 

# cryptsetup reencrypt --encrypt --init-only --reduce-device-size 32M /dev/md0 md0_encrypted
# cryptsetup reencrypt --resume-only /dev/md0

to encrypt a device online.

I can see that it's encrypting:

# cryptsetup status md0_encrypted                                                                                                                                   
/dev/mapper/md0_encrypted is active.
  type:    LUKS2
  reencryption:  in-progress
  cipher:  aes-xts-plain64
  keysize: 512 bits
  key location: dm-crypt
  device:  /dev/md0
  sector size:  512
  offset:  32768 sectors
  size:    7813643952 sectors
  mode:    read/write

Is there any way to know how far from complete it is?  I.e. percent
done, etc.?

Cheers,
b.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEE8B/A+mOVz5cTNBuZ2sHQNBbLyKAFAmUteW0ACgkQ2sHQNBbL
yKDg8Af/aQHE2iS1/vah5wFffCxH6mieZgKdcObNZCsiaXkUh2MnwqPvN1p/daZr
FMxJeP6WXM6cUJEtJUjS6Y/VOf169cDLxGYrN4u2YnKSuzN8FlgQo1GyDSpIHvRN
e4RnD+hXTgkykIo/mip/pTWnMKtcAOgZu4dks4H5Ug4I+6xoDUQT540UycmZ4NdM
AtUh6J62owuMMa5ACdbnp5UBNy5E+eY5AePzEjX18x1gCDZG5dkZnwIU3UYFaV6R
PBWlWv3xY27z/9RarmR/gS3zAXSTuD3Pw0qwF0d2OpsVNaQfH0zIsaGRew+sTT//
ahRSgtFgKDk0fp5Qh0tiJhcNu/THzw==
=bCXl
-----END PGP SIGNATURE-----