Idan Shaby has posted comments on this change.
Change subject: multipath: getDeviceDiscardMaxBytes return type
......................................................................
Patch Set 3: Verified+1
(3 comments)
https://gerrit.ovirt.org/#/c/62799/2//COMMIT_MSG
Commit Message:
Line 8:
Line 9: Since /sys/block/dm-X/queue/discard_max_bytes may return more than 4GB,
Line 10: uint might not be enough.
Line 11: Thus, this patch fixes the schema to state on a ulong instead of uint
Line 12: value for discard_max_bytes.
This should only fix the schema, the code is already returning long
value w
Done
Line 13:
Line 14: Change-Id: Icc45c708df0e93ddf94165eb6f3e3630ce8430a4
https://gerrit.ovirt.org/#/c/62799/2/lib/api/vdsm-api.yml
File lib/api/vdsm-api.yml:
Line 220: - description: The maximal number of bytes that can be trimmed or
Line 221: unmapped in a single discard operation. 0 means that the device
Line 222: does not support discard functionality.
Line 223: name: discard_max_bytes
Line 224: type: ulong
Should be ulong, unless you think the old type should have been int.
Done
Line 225:
Line 226: - description: Indicates whether or not the device deterministically
Line 227: returns zeroes when a discarded area is read.
Line 228: 1 means it does, 0 mesans that the result is undefined (can be
https://gerrit.ovirt.org/#/c/62799/2/vdsm/storage/multipath.py
File vdsm/storage/multipath.py:
Line 185: def getScsiSerial(physdev):
Line 186: blkdev = os.path.join("/dev", physdev)
Line 187: cmd = [_SCSI_ID.cmd,
Line 188: "--page=0x80",
Line 189: "--whitelisted",
int() and long() are the same since Python 2.4, and there is no need
to cre
Done, thanks for the explanation, Nir.
Line 190: "--export",
Line 191: "--replace-whitespace",
Line 192: "--device=" + blkdev]
Line 193: (rc, out, err) = misc.execCmd(cmd)
--
To view, visit
https://gerrit.ovirt.org/62799
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Icc45c708df0e93ddf94165eb6f3e3630ce8430a4
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Idan Shaby <ishaby(a)redhat.com>
Gerrit-Reviewer: Adam Litke <alitke(a)redhat.com>
Gerrit-Reviewer: Ala Hino <ahino(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Idan Shaby <ishaby(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Liron Aravot <laravot(a)redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>
Gerrit-HasComments: Yes