Idan Shaby has uploaded a new change for review.
Change subject: multipath: add a constant for the queue subpath
......................................................................
multipath: add a constant for the queue subpath
Change-Id: I2d0296c97a4f6bd8793c9172f3e413a2384c1e0d
Signed-off-by: Idan Shaby <ishaby(a)redhat.com>
---
M vdsm/storage/multipath.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/55/60855/1
diff --git a/vdsm/storage/multipath.py b/vdsm/storage/multipath.py
index 01ef27f..ecd4fd6 100644
--- a/vdsm/storage/multipath.py
+++ b/vdsm/storage/multipath.py
@@ -45,6 +45,7 @@
DEV_FCP = "FCP"
DEV_MIXED = "MIXED"
SYS_BLOCK = "/sys/block"
+QUEUE = "queue"
TOXIC_CHARS = '()*+?|^$.\\'
@@ -152,9 +153,9 @@
def getDeviceBlockSizes(dev):
devName = os.path.basename(dev)
logical = int(file(os.path.join(SYS_BLOCK, devName,
- "queue",
"logical_block_size")).read())
+ QUEUE, "logical_block_size")).read())
physical = int(file(os.path.join(SYS_BLOCK, devName,
- "queue",
"physical_block_size")).read())
+ QUEUE, "physical_block_size")).read())
return (logical, physical)
--
To view, visit
https://gerrit.ovirt.org/60855
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d0296c97a4f6bd8793c9172f3e413a2384c1e0d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Idan Shaby <ishaby(a)redhat.com>