[lvm-devel] Suggested changes to lvm command line tools

Tony Asleson tasleson at redhat.com
Tue Feb 10 22:01:08 UTC 2015


The following changes would be helpful for projects that are writing
wrappers for the lvm command line tools.

* Have an option to output JSON or XML for all operations
* When creating/modifying something, if it is successful, output all the
information about the newly created/modified object so that the user
doesn't need to turn around and query what they just created/changed.
Optionally if the change causes other objects in the system to change,
output those objects too if possible.  Otherwise the client needs to
'know' what side effects a change has and then query those affected
objects.  Not sure how easy or feasible this change would be.
* A mechanism for a client to know that a change has been made without
having to poll for changes.  For a lvm dbus daemon we could provide a
dbus method that can be used to signal the daemon that one or more
things have changed.

Thanks!

Regards,
Tony




More information about the lvm-devel mailing list