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
fcb1f331
Commit
fcb1f331
authored
Nov 14, 2007
by
Michael Hanselmann
Browse files
Give more details on errors when trying to run “lvdisplay”.
Reviewed-by: schreiberal
parent
2fa9f1dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bdev.py
View file @
fcb1f331
...
...
@@ -400,8 +400,8 @@ class LogicalVolume(BlockDev):
"""
result
=
utils
.
RunCmd
([
"lvdisplay"
,
self
.
dev_path
])
if
result
.
failed
:
logger
.
Error
(
"Can't find LV %s: %s"
%
(
self
.
dev_path
,
result
.
fail_reason
))
logger
.
Error
(
"Can't find LV %s:
%s,
%s"
%
(
self
.
dev_path
,
result
.
fail_reason
,
result
.
output
))
return
False
match
=
re
.
compile
(
"^ *Block device *([0-9]+):([0-9]+).*$"
)
for
line
in
result
.
stdout
.
splitlines
():
...
...
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