Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
8d519422
Commit
8d519422
authored
Aug 30, 2007
by
Iustin Pop
Browse files
Fix mdadm -D output compatibility issues.
Also add some debugging output.
parent
2a710df1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bdev.py
View file @
8d519422
...
...
@@ -573,7 +573,7 @@ class MDRaid1(BlockDev):
kv
=
line
.
split
(
" : "
,
1
)
if
kv
:
if
kv
[
0
]
==
"UUID"
:
retval
[
"uuid"
]
=
kv
[
1
]
retval
[
"uuid"
]
=
kv
[
1
]
.
split
()[
0
]
elif
kv
[
0
]
==
"State"
:
retval
[
"state"
]
=
kv
[
1
].
split
(
", "
)
return
retval
...
...
@@ -799,7 +799,8 @@ class MDRaid1(BlockDev):
self
.
unique_id
,
"/dev/md%d"
%
free_minor
]
+
[
bdev
.
dev_path
for
bdev
in
self
.
_children
])
if
result
.
failed
:
logger
.
Error
(
"Can't assemble MD array: %s"
%
result
.
fail_reason
)
logger
.
Error
(
"Can't assemble MD array: %s: %s"
%
(
result
.
fail_reason
,
result
.
output
))
self
.
minor
=
None
else
:
self
.
minor
=
free_minor
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment