Change in vdsm[master]: Added getDevicePartedInfo function in supervdsm.

danken at redhat.com danken at redhat.com
Mon Apr 23 20:56:13 UTC 2012


Dan Kenigsberg has submitted this change and it was merged.

Change subject: Added getDevicePartedInfo function in supervdsm.
......................................................................


Added getDevicePartedInfo function in supervdsm.

This function accepts device path and returns its information as
dictionary.  Sample return value is,

{'model': 'Virtio Block Device',
 'sectorSize': 512L,
 'type': 'gpt',
 'freeSpaceRegions': [(34L, 2047L, 2014L, 1031168L),
                      (16775168L, 16777182L, 2015L, 1031680L)],
 'partitions': {'/dev/vda1': (['bios_grub'], 2048L, 4095L),
                '/dev/vda2': (['boot'], 4096L, 16285695L),
                '/dev/vda3': ([], 16285696L, 16775167L)}}

Change-Id: I6388d6c112abf106471223101be495f20f157c66
Signed-off-by: Bala.FA <barumuga at redhat.com>
---
M Makefile.am
M tests/Makefile.am
A tests/parted_utils_tests.py
M vdsm.spec.in
M vdsm/Makefile.am
A vdsm/parted_utils.py
M vdsm/supervdsmServer.py
7 files changed, 176 insertions(+), 0 deletions(-)

Approvals:
  Timothy Asir: Looks good to me, but someone else must approve
  Dan Kenigsberg: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/3386
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6388d6c112abf106471223101be495f20f157c66
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Bala.FA <barumuga at redhat.com>
Gerrit-Reviewer: Bala.FA <barumuga at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Mark Wu <wudxw at linux.vnet.ibm.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Timothy Asir <tjeyasin at redhat.com>


More information about the vdsm-patches mailing list