[lvm-devel] master - python-lvm: Make second lv.snapshot() argument optional
Andy Grover
agrover at redhat.com
Sun Dec 16 02:27:01 UTC 2012
On 12/15/2012 01:34 PM, Zdenek Kabelac wrote:
> Dne 14.12.2012 23:11, Andy Grover napsal(a):
>> If no size is given, size defaults to 0, which in lvm_lv_snapshot will
>> allocate extents equal to the original LV be allocated for the new
>> snapshot.
>>
>
>
> Possibly not the ideal solution here.
>
> 1) we have some clash with command line 'API'
> user creates snapshot of thin volume
> - without giving size he get thin volume snaphost.
> lvcreate -s
> - with size specified he gets 'old' snapshot
> (snapshot outside of the pool)
> lvcreate -s -l|-L
Makes sense. So should we do the same for the Python API -- size = None
-> thin snap, size = >=0 -> 'old' snap with the given size? OR might we
even be OK with just supporting 'new' snaps, and get rid of the size
parameter altogether?
Regards -- Andy
More information about the lvm-devel
mailing list