git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c55bad9
)
debian: Use mdadm -D --export instead of mdadm -DY.
author
Richard W.M. Jones
<rjones@redhat.com>
Thu, 24 Nov 2011 16:27:36 +0000
(16:27 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 24 Nov 2011 16:27:36 +0000
(16:27 +0000)
For compatibility with mdadm on Debian Squeeze.
daemon/md.c
patch
|
blob
|
history
diff --git
a/daemon/md.c
b/daemon/md.c
index
43bb64e
..
5a4d815
100644
(file)
--- 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", "-D
Y
", 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 -D
Y
:
+ /* Parse the output of mdadm -D
--export
:
* MD_LEVEL=raid1
* MD_DEVICES=2
* MD_METADATA=1.0