Commit b6fdf8b8 authored by Iustin Pop's avatar Iustin Pop
Browse files

Show disk access mode in gnt-instance info

The mode parameter needs to be exported and shown in the info output.

Reviewed-by: imsnah
parent e2a65344
......@@ -4602,6 +4602,7 @@ class LUQueryInstanceData(NoHooksLU):
"pstatus": dev_pstatus,
"sstatus": dev_sstatus,
"children": dev_children,
"mode": dev.mode,
}
return data
......
......@@ -913,6 +913,7 @@ def _FormatBlockDevInfo(buf, dev, indent_level, static):
data = " - %s, " % dev["iv_name"]
else:
data = " - "
data += "access mode: %s, " % dev["mode"]
data += "type: %s" % dev["dev_type"]
if dev["logical_id"] is not None:
data += ", logical_id: %s" % (dev["logical_id"],)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment