[PATCH] New API: list-mddevices
Return a list of Linux MD devices detected in the guest. --- appliance/packagelist.in | 2 + daemon/Makefile.am | 4 +- daemon/daemon.h | 1 + daemon/guestfsd.c | 23 ++++++--- daemon/md.c | 95 ++++++++++++++++++++++++++++++++++++ generator/generator_actions.ml | 16 ++++++ regressions/test-list-mddevices.sh | 43 ++++++++++++++++ src/MAX_PROC_NR | 2 +- 8 files changed, 177 insertions(+), 9 deletions(-) create mode 100644 daemon/md.c create mode 100755 regressions/test-list-mddevices.sh
Return a list of Linux MD devices detected in the guest. --- appliance/packagelist.in | 2 + daemon/Makefile.am | 4 +- daemon/daemon.h | 1 + daemon/guestfsd.c | 23 ++++++--- daemon/md.c | 95 ++++++++++++++++++++++++++++++++++++ generator/generator_actions.ml | 10 ++++ regressions/test-list-mddevices.sh | 43 ++++++++++++++++ src/MAX_PROC_NR | 2 +- 8 files changed, 171 insertions(+), 9 deletions(-) create mode 100644 daemon/md.c create mode 100755 regressions/test-list-mddevices.sh
Return a list of Linux MD devices detected in the guest. --- daemon/Makefile.am | 1 + daemon/daemon.h | 1 + daemon/guestfsd.c | 23 ++++++++--- daemon/md.c | 75 ++++++++++++++++++++++++++++++++++++ generator/generator_actions.ml | 10 +++++ regressions/Makefile.am | 1 + regressions/test-list-mddevices.sh | 59 ++++++++++++++++++++++++++++ src/MAX_PROC_NR | 2 +- 8 files changed, 164 insertions(+), 8 deletions(-) create mode 100644 daemon/md.c create mode 100755 regressions/test-list-mddevices.sh
On Wed, Nov 09, 2011 at 04:40:48PM +0000, Matthew Booth wrote:
Return a list of Linux MD devices detected in the guest.
I think generally this is the right approach. You need to modify list-filesystems too. I wonder if the new API call should be "list-md" instead of "list-mddevices"? The former is slightly more consistent with other calls (eg. "list-9p"). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
participants (2)
-
Matthew Booth -
Richard W.M. Jones