Ayal Baron has posted comments on this change.
Change subject: Make getRepoStats() a hsm method. ......................................................................
Patch Set 4: (1 inline comment)
.................................................... File vdsm/storage/hsm.py Line 2474: se.StoragePoolActionError("spUUID=%s" % spUUID)) Line 2475: vars.task.getSharedLock(STORAGE, spUUID) Line 2476: pool = self.getPool(spUUID) Line 2477: poolInfo = pool.getInfo() Line 2478: doms = pool.getDomains() this call is redundant, take the list from poolInfo Line 2479: domInfo = self._getDomsStats(pool.domainMonitor, doms) Line 2480: for sdUUID in doms.iterkeys(): Line 2481: if 'isoprefix' in domInfo[sdUUID] and domInfo[sdUUID]['isoprefix']: Line 2482: poolInfo['isoprefix'] = domInfo[sdUUID]['isoprefix']