Francesco Romani has posted comments on this change.

Change subject: hostdev: implement numvfs changing
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.ovirt.org/#/c/36216/3/vdsm/supervdsmServer
File vdsm/supervdsmServer:

Line 203:     def changeNumvfs(self, device_name, numvfs):
Line 204:         with open('/sys/bus/pci/devices/{}/sriov_numvfs'.format(
Line 205:                 device_name), 'w', 0) as f:
Line 206:             f.write('0')
Line 207:             f.write(str(numvfs))
question: there is any risk of races here?
For my understanding, what happens if you just wrote the new number?

Also, do we want to catch IOError here?
Line 208: 
Line 209:     def _runAs(self, user, groups, func, args=(), kwargs={}):
Line 210:         def child(pipe):
Line 211:             res = ex = None


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I110972fa12ffb7f5996fe46135644b5c0a11743b
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <mpoled...@redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <dan...@redhat.com>
Gerrit-Reviewer: Francesco Romani <from...@redhat.com>
Gerrit-Reviewer: Martin Betak <mbe...@redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skriva...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to