mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-13 06:34:42 -05:00
virsh-volume: add support for --reflink
Add support for --reflink to the virsh 'vol-create-from' and 'vol-clone' commands to signify usage of the VIR_STORAGE_VOL_CREATE_REFLINK flag in the ensuing virStorageVolCreateXMLFrom API call. Updated the man page to describe the new flag. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
committed by
John Ferlan
parent
47dd6c4335
commit
219ea41d8d
+8
-1
@@ -3160,6 +3160,7 @@ B<Example>
|
||||
|
||||
=item B<vol-create-from> I<pool-or-uuid> I<FILE> [I<--inputpool>
|
||||
I<pool-or-uuid>] I<vol-name-or-key-or-path> [I<--prealloc-metadata>]
|
||||
[I<--reflink>]
|
||||
|
||||
Create a volume, using another volume as input.
|
||||
I<pool-or-uuid> is the name or UUID of the storage pool to create the volume in.
|
||||
@@ -3171,6 +3172,9 @@ I<vol-name-or-key-or-path> is the name or key or path of the source volume.
|
||||
support full allocation). This option creates a sparse image file with metadata,
|
||||
resulting in higher performance compared to images with no preallocation and
|
||||
only slightly higher initial disk space usage.
|
||||
When I<--reflink> is specified, perform a COW lightweight copy,
|
||||
where the data blocks are copied only when modified.
|
||||
If this is not possible, the copy fails.
|
||||
|
||||
=item B<vol-create-as> I<pool-or-uuid> I<name> I<capacity>
|
||||
[I<--allocation> I<size>] [I<--format> I<string>] [I<--backing-vol>
|
||||
@@ -3205,7 +3209,7 @@ resulting in higher performance compared to images with no preallocation and
|
||||
only slightly higher initial disk space usage.
|
||||
|
||||
=item B<vol-clone> [I<--pool> I<pool-or-uuid>] I<vol-name-or-key-or-path>
|
||||
I<name> [I<--prealloc-metadata>]
|
||||
I<name> [I<--prealloc-metadata>] [I<--reflink>]
|
||||
|
||||
Clone an existing volume. Less powerful, but easier to type, version of
|
||||
B<vol-create-from>.
|
||||
@@ -3217,6 +3221,9 @@ I<name> is the name of the new volume.
|
||||
support full allocation). This option creates a sparse image file with metadata,
|
||||
resulting in higher performance compared to images with no preallocation and
|
||||
only slightly higher initial disk space usage.
|
||||
When I<--reflink> is specified, perform a COW lightweight copy,
|
||||
where the data blocks are copied only when modified.
|
||||
If this is not possible, the copy fails.
|
||||
|
||||
=item B<vol-delete> [I<--pool> I<pool-or-uuid>] I<vol-name-or-key-or-path>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user