]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rbd: add map information for clone images to rbd-encryption.rst 56160/head
authorN Balachandran <nibalach@redhat.com>
Wed, 13 Mar 2024 11:57:49 +0000 (17:27 +0530)
committerZac Dover <zac.dover@proton.me>
Wed, 13 Mar 2024 14:15:08 +0000 (00:15 +1000)
Add information on the arguments required when mapping the
formatted clone of an encrypted parent image.

Co-authored-by: Zac Dover <zac.dover@proton.me>
Signed-off-by: N Balachandran <nibalach@redhat.com>
doc/rbd/rbd-encryption.rst

index 3f37a8b1cf857680df6871251dc4190bc9bbe17d..a13839efe0776912b678f88192ad5fe75e6223f5 100644 (file)
@@ -240,6 +240,18 @@ The same applies to creating a formatted clone of an unformatted
 (plaintext) image since an unformatted image does not have a header at
 all.
 
+To map a formatted clone, provide encryption formats and passphrases
+for the clone itself and all of its explicitly formatted parent images.
+The order in which ``encryption-format`` and ``encryption-passphrase-file``
+options should be provided is based on the image hierarchy: start with
+that of the cloned image, then its parent and so on.
+
+Here is an example of a command that maps a formatted clone:
+
+.. prompt:: bash #
+
+   rbd device map -t nbd -o encryption-passphrase-file=clone-passphrase.bin -o encryption-passphrase-file=passphrase.bin mypool/myclone
+
 .. _journal feature: ../rbd-mirroring/#enable-image-journaling-feature
 .. _Supported Formats: #supported-formats
 .. _rbd-nbd: ../../man/8/rbd-nbd