summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-11-24 16:27:36 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-11-24 16:27:36 +0000
commit2d5841133a199619d56d026ad9ea4e97791f4a8f (patch)
treeaed8fc38cf1b482a9722ec91c33bb594656d759d /daemon
parentc55bad93fbde03a3daa6058913f02098c45e55f5 (diff)
downloadlibguestfs-2d5841133a199619d56d026ad9ea4e97791f4a8f.tar.gz
libguestfs-2d5841133a199619d56d026ad9ea4e97791f4a8f.tar.xz
libguestfs-2d5841133a199619d56d026ad9ea4e97791f4a8f.zip
debian: Use mdadm -D --export instead of mdadm -DY.
For compatibility with mdadm on Debian Squeeze.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/md.c b/daemon/md.c
index 43bb64ed..5a4d8154 100644
--- a/daemon/md.c
+++ b/daemon/md.c
@@ -243,7 +243,7 @@ do_md_detail(const char *md)
char **ret = NULL;
int size = 0, alloc = 0;
- const char *mdadm[] = { "mdadm", "-DY", md, NULL };
+ const char *mdadm[] = { "mdadm", "-D", "--export", md, NULL };
r = commandv(&out, &err, mdadm);
if (r == -1) {
reply_with_error("%s", err);
@@ -257,7 +257,7 @@ do_md_detail(const char *md)
goto error;
}
- /* Parse the output of mdadm -DY:
+ /* Parse the output of mdadm -D --export:
* MD_LEVEL=raid1
* MD_DEVICES=2
* MD_METADATA=1.0