From 8ee512219e2f4849ebe420bb0f2f74fc1eab735e Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Wed, 30 May 2018 20:35:59 +0200 Subject: [PATCH] doc/lvol: add inflate doc Change-Id: I21139603dce30a242e49b2fcc8c4152613369f44 Signed-off-by: Tomasz Kulasek Reviewed-on: https://review.gerrithub.io/413255 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris Reviewed-by: John Kariuki Reviewed-by: Maciej Szwed Reviewed-by: Tomasz Zawadzki --- doc/img/lvol_inflate_clone_snapshot.svg | 3 +++ doc/lvol.md | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 doc/img/lvol_inflate_clone_snapshot.svg diff --git a/doc/img/lvol_inflate_clone_snapshot.svg b/doc/img/lvol_inflate_clone_snapshot.svg new file mode 100644 index 000000000..85c85b4eb --- /dev/null +++ b/doc/img/lvol_inflate_clone_snapshot.svg @@ -0,0 +1,3 @@ + + +image/svg+xmlsnapshotInflatedcloneclone00000...00000...00000...00000...00000...00000...zeroes_devAllocate and copyInflate diff --git a/doc/lvol.md b/doc/lvol.md index ba5b6ea9a..3b0f59d02 100644 --- a/doc/lvol.md +++ b/doc/lvol.md @@ -55,6 +55,12 @@ The write operation is performed as shown in the diagram below: User may also create clone of existing snapshot that will be thin provisioned and it will behave in the same way as logical volume from which snapshot is created. There is no limit of clones and snapshots that may be created as long as there is enough space on logical volume store. Snapshots are read only. Clones may be created only from snapshots. +## Inflation {#lvol_inflation} + +Blobs can be inflated to copy data from backing devices (e.g. snapshots) and allocate all remaining clusters. As a result of this operation all dependencies for the blob are removed. + +![Removing backing blob and bdevs relations using inflate call](lvol_inflate_clone_snapshot.svg) + # Configuring Logical Volumes There is no static configuration available for logical volumes. All configuration is done trough RPC. Information about logical volumes is kept on block devices. @@ -127,4 +133,8 @@ resize_lvol_bdev [-h] name size Resize existing lvol bdev optional arguments: -h, --help show help +inflate_lvol_bdev [-h] name + Inflate lvol bdev + optional arguments: + -h, --help show help ```