From: Eric Wheeler Date: Tue, 1 Aug 2017 17:20:42 +0000 (UTC) Subject: Batch/queue LVM operations In-Reply-To: References: Message-ID: List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Mon, 31 Jul 2017, Zdenek Kabelac wrote: > Dne 31.7.2017 v 11:01 Germano Percossi napsal(a): > > Hi, > > > > Not sure if it an option for you but the Python bindings > > allow you to instantiate a VG object that will hold the > > lock and then issue all the commands you want before > > flushing the metadata at the very end. > > > Hi > > Please avoid using these Python binding or lvm2app. > Those 2 things are not being developed and are mostly left > there purely for backward compatibility reasons. So no new APP should ever use > it - and old APPs will simple face lots of troubles.... > > It's in general unsupportable to lvm2 this way (API was badly designed and > we even figured later we really can't support it ). > And it's even less usable to workaround locking across bunch of commands... > > What is now being tested is dBus integration - but this has still long way to > go. So whenever you can - please use lvm2 commands with is documented > and well tested API. Neat! Will dbus support better batch processing times? -- Eric Wheeler > > > Regards > > Zdenek > >